Metadata-Version: 2.1
Name: theoddsapi
Version: 1.1.0
Summary: A Python wrapper around The Odds-Api V4
Project-URL: Homepage, https://github.com/MidpriceDog/the-odds-api-client
Project-URL: Bug Tracker, https://github.com/MidpriceDog/the-odds-api-client/issues
Author: MidpriceDog
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: attr>=0.3.2
Requires-Dist: attrs>=22.1.0
Requires-Dist: brotli>=1.0.9
Requires-Dist: brotlicffi>=1.0.9.2
Requires-Dist: configparser>=5.3.0
Requires-Dist: cryptography>=39.0.1
Requires-Dist: cython>=0.29.33
Requires-Dist: diff>=0.6.1
Requires-Dist: dl>=0.1.0
Requires-Dist: docutils>=0.17.1
Requires-Dist: flake8>=6.0.0
Requires-Dist: htmlparser>=0.0.2
Requires-Dist: ipython>=8.10.0
Requires-Dist: ipywidgets>=8.0.4
Requires-Dist: jinja2>=3.1.2
Requires-Dist: jnius>=1.1.0
Requires-Dist: keyring>=23.9.1
Requires-Dist: lockfile>=0.12.2
Requires-Dist: mock>=5.0.1
Requires-Dist: multiprocess>=0.70.14
Requires-Dist: mypy-extensions>=1.0.0
Requires-Dist: numpy>=1.23.2
Requires-Dist: pandas>=1.4.4
Requires-Dist: pillow>=9.4.0
Requires-Dist: pip-api>=0.0.30
Requires-Dist: pox>=0.3.2
Requires-Dist: protobuf>=4.22.0
Requires-Dist: pyenchant>=3.2.2
Requires-Dist: pylama>=8.4.1
Requires-Dist: pyopenssl>=23.0.0
Requires-Dist: pytest>=7.2.1
Requires-Dist: python-dotenv>=0.21.1
Requires-Dist: railroad>=0.5.0
Requires-Dist: read-env-keys>=0.0.3
Requires-Dist: requirementslib>=2.2.3
Requires-Dist: simplejson>=3.18.3
Requires-Dist: sphinx>=6.1.3
Requires-Dist: sympy>=1.11.1
Requires-Dist: toml>=0.10.2
Requires-Dist: tornado>=6.2
Requires-Dist: trove-classifiers>=2023.2.20
Requires-Dist: truststore>=0.5.0
Requires-Dist: typed-ast>=1.5.4
Requires-Dist: urllib3-secure-extra>=0.1.0
Requires-Dist: xmlrpclib>=1.0.1
Description-Content-Type: text/markdown

# the-odds-api-client
Python wrapper for The Odds API V4

## Getting Started

Run

```
pip install -r requirements.txt
```

## Example Usage

Instantiate an instance of `theOddsAPI` by passing in an API key, which you 
should receive via email upon signing up for a subscription plan [here](!https://the-odds-api.com/).

```python
client = theOddsAPI('YOUR_KEY_HERE')
```

Let's say you want to find out what the spread odds were on Fanduel's sportbook for games played on the 1st of January in the year 2023 around 12:00 UTC. Then, you would run the following:

```python
self._test_get_historical_odds(
            sport='basketball_nba',
            regions='us',
            markets='spreads',
            date='2023-01-01T12:00:00Z',
            bookmakers='fanduel',
            oddsFormat='american')
```


## Documentation

You can find the documentation for the Odds API Client hosted [here](https://midpricedog.github.io/the-odds-api-client/#header-classes).

## Testing

A test of this package can be done by running the following command

```
python tests/test.py
```

<b>Note:</b> As a wrapper for The Odds API which requires the use of an API key,
testing this package requires using part of your the request quota associated
with the API key supplied. The usage quota for running the various tests suites
in `tests.py` can be found in the schedule below. 

| Test Suite | Usage Quota |
| -------- | -------- |
| odds_suite | 3 |
| event_odds_suite | 2 |
| historical_odds_suite |  30 |
| usage_suite | 0 |
| scores_suite | 5 |
