harryprayiv / baseballScraper

Python web scraper for baseball statistics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nix Flake Python Example

TODO

  • Checks:
    • black
    • flake8
    • isort
    • mypy
    • pytest

Requires

  • nix
  • direnv

Or without nix using virtualenv:

  • python39
  • virtualenv

Usage

Run:

nix run . -- --example foo --example bar

Shell:

nix develop

Shell using direnv:

direnv allow .

Run from shell:

python src/mypackage/__init__py --example foo --example bar

Build and run prod:

nix build
./result/bin/mypackage

Usage without Nix using virtualenv

Setup:

source ./scripts/venv

Run:

mypackage

Setup with fresh virtualenv:

source ./scripts/venv true

Update

Update flake, rebuild requirements.txt and requirements-dev.txt:

./scripts/update

About

Python web scraper for baseball statistics.

License:MIT License


Languages

Language:Nix 57.8%Language:Shell 22.9%Language:Python 19.3%