Metadata-Version: 2.5
Name: leaguedispatcher
Version: 1.0.146
Summary: Official Python client for the League Dispatcher API (experimental: releases may include breaking changes), generated from its OpenAPI description with Microsoft Kiota.
Project-URL: Homepage, https://leaguedispatcher.com/en/developers
License-Expression: MIT
License-File: LICENSE
Keywords: api,kiota,league,league-dispatcher,sdk,sports
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: microsoft-kiota-bundle<2,>=1.17.0
Description-Content-Type: text/markdown

# leaguedispatcher

Official Python client for the [League Dispatcher](https://leaguedispatcher.com) API. Generated from the public
OpenAPI description with [Microsoft Kiota](https://learn.microsoft.com/openapi/kiota/), on top of `httpx`. Async,
typed, Python 3.9+.

> **Experimental.** The SDK and the public API are experimental: any release may include breaking changes,
> without a deprecation period. Keep the package you tested with in your project and read the release notes before upgrading. The SDK is
> released with every League Dispatcher release and carries its version.

Download the package from the [developer page](https://leaguedispatcher.com/en/developers), which shows the
install commands: it is not published to npm, PyPI or NuGet, and only the latest version is online.

```python
import asyncio, os
from kiota_abstractions.authentication.api_key_authentication_provider import ApiKeyAuthenticationProvider, KeyLocation
from kiota_bundle.default_request_adapter import DefaultRequestAdapter
from leaguedispatcher.league_dispatcher_client import LeagueDispatcherClient

async def main():
    auth = ApiKeyAuthenticationProvider(KeyLocation.Header, os.environ["LEAGUE_DISPATCHER_API_TOKEN"],
                                        "X-Api-Key", ["api.leaguedispatcher.com"])
    client = LeagueDispatcherClient(DefaultRequestAdapter(auth))
    state = await client.game_day.get()

asyncio.run(main())
```

A league admin creates API tokens in **Setup > API access** (paid plans). Keep tokens on the server side; never ship
them in a browser or mobile app. Guide and samples: https://leaguedispatcher.com/en/developers. Every operation and model: https://leaguedispatcher.com/api-reference/
