The Odds API (Unofficial) Client for the-odds-api.com
(This is basically a rough draft. Kinda quick and dirty for now)
You will need to acquire an API KEY from The Odds API to use this client.
pip install the-odds
Contact
Im available on Bluesky for any questions or just general chats about enhancements.
Installation and Setup
pip install the-odds
from the_odds import OddsApiClient
client = OddsApiClient(api_key='your_key')
# for debug logging and request logging
client = OddsApiClient(api_key='your_key', debug=True)
Available Endpoints
Get Sports
API Endpoint Info
Endpoint: /v4/sports
Method: GET
Formats: JSON
| Param | Type | Ex | Note |
|---|---|---|---|
| all | bool | True / False | Optional - if this parameter is set to true (all=true), a list of both in and out of season sports will be returned |
sports = client.v4.get_sports()
Metadata
Release files for the-odds 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| the_odds-1.0.2.tar.gz | 6.4 kB | Without provenance | Details for the_odds-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| the_odds-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for the_odds-1.0.2-py3-none-any.whl |
Total release size: 14.3 kB
Release files / the_odds-1.0.2.tar.gz
| Download URL | the_odds-1.0.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4691b89e5c727f8bc999ceb638191a56a659909edf6e4080f371ea53cb01aad7
|
|
BLAKE2b-256 checksum How to use checksums |
9ecff03c34d43be5519a21c5de50b2841403f32e3e4dff8eaca45189c17af649
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/24.0.0
|
Release files / the_odds-1.0.2-py3-none-any.whl
| Download URL | the_odds-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61042ffe12ece65ec76bc3549b93eede8f665576520ecc5e6515704c65b5e657
|
|
BLAKE2b-256 checksum How to use checksums |
8eaf267c7f4979e47ab9bc6f9ec92abeb4e27b4973f19403814f09d5ad0e873a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/24.0.0
|
Security for the-odds 1.0.2
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.