Skip to main content

The-Odds-API

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)

Source distribution for the-odds 1.0.2
File Size Uploaded
the_odds-1.0.2.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for the-odds 1.0.2
File Interpreter ABI Platform
the_odds-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

0.1.0

2 release files

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