Skip to main content

yfpy-nhl-sqlite

Create a SQLite database from your Yahoo NHL fantasy league data in minutes.

View the schema to see what data is stored.

Installation

The supported installation method is with pipx. Install with pipx install yfpy-nhl-sqlite.

Authentication

Authentication is required with the Yahoo API to retrieve private league data. To obtain a Yahoo consumer key and consumer secret, you must set up a Yahoo Developer Network App. See the Setup section of the yfpy docs for details.

Once you have obtained a consumer key and secret, yfpy-nhl-sqlite provides two ways to authenticate:

  1. Provide --yahoo-consumer-key and --yahoo-consumer-secret as command-line arguments.
  2. Create an .env file in the directory yfpy-nhl-sqlite will be invoked with the variables YAHOO_CONSUMER_KEY and YAHOO_CONSUMER_SECRET set.

Usage

Run the script with the following command, substituting in your Yahoo league's id:

yfpy-nhl-sqlite LEAGUE_ID

A SQLite database will be created in the directory the script is invoked from. Your Yahoo league's id can be found in league settings in the Yahoo fantasy web or mobile app.

Limitations

  • Any changes to the NHL and Yahoo APIs will likely cause breaking changes to this library.
  • Not all data is ported that is available through the Yahoo API. If you'd like some data to be included that is missing, open an issue.
  • The schema has only been tested with head-to-head private leagues. Other league types may work but are not officially supported, though there is desire to support them in the future.

Acknowledgements

This package is just a small script that wraps the yfpy library. Thanks to uberfastman for the great work there.

Metadata

Release files for yfpy-nhl-sqlite 1.0.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 yfpy-nhl-sqlite 1.0.0
File Size Uploaded Provenance Actions
yfpy_nhl_sqlite-1.0.0.tar.gz 2.8 MB Without provenance Details for yfpy_nhl_sqlite-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yfpy-nhl-sqlite 1.0.0
File Interpreter ABI Platform Actions
yfpy_nhl_sqlite-1.0.0-py3-none-any.whl Python 3 none any Details for yfpy_nhl_sqlite-1.0.0-py3-none-any.whl

Total release size: 2.8 MB

Release files / yfpy_nhl_sqlite-1.0.0.tar.gz

Download URL yfpy_nhl_sqlite-1.0.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
16a6331f84fb9d1420bf86387b4a580989ff2616387bfd928023373aed8162d9
BLAKE2b-256 checksum
How to use checksums
95ef2b6ad124054e7c95dd9b55ee86fa427c0056dca7fe1309e43edae4059c41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / yfpy_nhl_sqlite-1.0.0-py3-none-any.whl

Download URL yfpy_nhl_sqlite-1.0.0-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
808afc3e3b6505b71ea62e39278fbf7a8e2fafac20c039b737649fb9770bdbc4
BLAKE2b-256 checksum
How to use checksums
32f798012c8d39d227084ad653d03abeaf606fb92add86a80821d90938552344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for yfpy-nhl-sqlite 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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