Skip to main content

elo-system

An Elo rating system for fantasy sports leagues. It scrapes weekly scoreboards from a fantasy platform, converts them into per-week Elo ratings, and supports multi-season dynasty ratings with an offseason regression-to-mean adjustment.

  • Platforms: Fantrax (NBA, head-to-head categories) is implemented. A Sleeper backend is planned.
  • Outputs: per-season and combined-dynasty rating frames, written to CSV (a Postgres backend is scaffolded but not yet wired up).

Installation

The project depends on a fork of fantraxapi (the PyPI release is broken for H2H-rotisserie leagues), so it installs from source rather than from PyPI:

python -m venv .venv
source .venv/bin/activate
pip install -e .            # add [dev] for the test/lint tooling

requirements.frozen holds the exact, reproducible dependency pins (including the fantraxapi fork commit) used during development.

Layout

elo_system/
  elo_system.py            EloSystem orchestrator (config + reader/writer wiring)
  tools/
    elo_league.py          EloLeague: season management + run/dynasty pipeline
    elo_data.py            EloCSV / EloSQL persistence backends
    basics/                LeagueBase/DataBase, Elo math, config IO, constants
    helpers/               scraper, league, formatter, calculator, frame_manager

Tests

python -m pytest          # run from the repo root

See CONTRIBUTING.md for development notes and conventions, and CHANGELOG.md for release history.

Metadata

Release files for elo-system 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elo-system 1.1.0
File Size Uploaded Provenance Actions
elo_system-1.1.0.tar.gz 80.9 kB Without provenance Details for elo_system-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for elo-system 1.1.0
File Interpreter ABI Platform Actions
elo_system-1.1.0-py3-none-any.whl Python 3 none any Details for elo_system-1.1.0-py3-none-any.whl

Total release size: 141.3 kB

Release files / elo_system-1.1.0.tar.gz

Download URL elo_system-1.1.0.tar.gz
Size 80.9 kB
Tags Source
SHA-256 checksum
How to use checksums
48d47223a47b471745128278486cc1b3ef455fcb05b2ce78d79cea4597cc6ee4
BLAKE2b-256 checksum
How to use checksums
2d4d8f27219d59cabd92a680009e82f6c3ae86e34578e43bd6db9c25ec0f2fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / elo_system-1.1.0-py3-none-any.whl

Download URL elo_system-1.1.0-py3-none-any.whl
Size 60.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
915d9a0f4fc0484a6d29667f64891dd7ff791f4e6613353930dcd83284c9f739
BLAKE2b-256 checksum
How to use checksums
c0bd546bb9feb77466137fc2de002253615576af0fb6af712a57fead2b4a30dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for elo-system 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page