Metadata-Version: 2.5
Name: datasportsapi
Version: 0.0.1
Summary: Official client for the DataSportsAPI sports data API (pre-release: a minimal client; the full SDK arrives with 0.1).
Project-URL: Homepage, https://datasportsapi.com/sdks/python/
Project-URL: Documentation, https://datasportsapi.com/docs/sdks/
Author: Noventra Software Ltd
License-Expression: MIT
License-File: LICENSE
Keywords: api client,football,live scores,sports,sports api,sports data
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# datasportsapi

The official Python client for [DataSportsAPI](https://datasportsapi.com), a sports data API:
live scores, fixtures, lineups, statistics and standings for 24 sports.

> **Pre-release.** The API opens at launch; until then requests do not get an answer.
> This 0.0.x release is a minimal client: one authenticated `get()` with typed errors and no
> dependencies. The full SDK (a typed method for every endpoint, paging, retries, asyncio and
> the WebSocket stream) arrives with 0.1. Docs: <https://datasportsapi.com/docs/sdks/>

```bash
pip install datasportsapi
```

```python
from datasportsapi import DataSportsAPI, DataSportsAPIError

client = DataSportsAPI()  # reads DATASPORTSAPI_API_KEY

try:
    res = client.get("/v2/livescores", sport="football")
    print(res["data"])
except DataSportsAPIError as e:
    print(e.status, e.code, e.retry_after)
```

- `api_key` defaults to `DATASPORTSAPI_API_KEY`; `base_url` to `DATASPORTSAPI_BASE_URL`, then
  `https://api.datasportsapi.com`.
- Python 3.10+.
- Get a key at <https://datasportsapi.com/signup/>.

MIT licensed. © Noventra Software Ltd.
