Skip to main content

Python Wrapper around The Odds-Api

Reason this release was yanked:

bugs

Project description

Python-The-Odds-Api-Wrapper

Python wrapper around The Odds-Api.

Description & Implementation

A full Python Wrapper around The Odds-API which provides sports odds data for loads of sports from bookmakers around the world. Get your free API key at https://the-odds-api.com/.

Usage

Please refer to https://the-odds-api.com/liveapi/guides/v3/ for detailed instructions for The Odds-Api. Below is a simple example of the usage.

from oddsapi import OddsClient

client = OddsClient(api_key="your api key")
sports = client.retrieve_sports()
odds = client.retrieve_odds(
    sport_key='americanfootball_ncaaf',
    region='us',
    mkt='spreads'
)
print(f"Requests Remaining: {client.requests_remaining}")
print(f"Requests Used: {client.requests_used}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oddsapi-0.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

oddsapi-0.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page