The-Odds-APi.com Client (unofficial).
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
the_odds-1.0.2.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file the_odds-1.0.2.tar.gz.
File metadata
- Download URL: the_odds-1.0.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4691b89e5c727f8bc999ceb638191a56a659909edf6e4080f371ea53cb01aad7
|
|
| MD5 |
8256ec8e270629550342fd69c25026f2
|
|
| BLAKE2b-256 |
9ecff03c34d43be5519a21c5de50b2841403f32e3e4dff8eaca45189c17af649
|
File details
Details for the file the_odds-1.0.2-py3-none-any.whl.
File metadata
- Download URL: the_odds-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61042ffe12ece65ec76bc3549b93eede8f665576520ecc5e6515704c65b5e657
|
|
| MD5 |
9ab4c90082d721f1a383bec23b43f8f2
|
|
| BLAKE2b-256 |
8eaf267c7f4979e47ab9bc6f9ec92abeb4e27b4973f19403814f09d5ad0e873a
|