Async PoE API client with rate limit support (upcoming)
Reason this release was yanked:
Does not comply with API rules
Project description
poe-client
Async PoE API client with rate limit support (upcoming)
Features
- Asynchronous HTTP client based on aiohttp
- Up-to-date with all PoE API endpoints
- All PoE API types defined as Pydantic schemas (Can generate OpenAPI Specifications)
- 100% test coverage and style enforced with wemake's flake8
- Fully typed with pydantic and checked with mypy, PEP561 compatible
Installation
pip install poe-client
Example
Showcase how your project can be used:
from typing import List
import os
from poe_client.client import Client, PoEClient
from poe_client.schemas.league import League
async def list_leagues():
"""List leagues."""
access_token: str = os.environ["POE_CLIENT_TOKEN"]
client = PoEClient(access_token)
leagues: List[League] = []
async with client:
leagues = await client.list_leagues()
logging.info(leagues)
License
Credits
This project was generated with wemake-python-package
. Current template version is: 6cb0736bbc9cb53ee126e2297b8ed7029b5e1380. See what is updated since then.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poe-client-0.1.1.tar.gz
(9.0 kB
view hashes)
Built Distribution
poe_client-0.1.1-py3-none-any.whl
(10.1 kB
view hashes)
Close
Hashes for poe_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98abeb6fd6713ba18cda599748f5b8a2c603f76f93277d03c3e7e5eb6926e41 |
|
MD5 | f73f1d12af6e98197f8ebaf6ce787aab |
|
BLAKE2b-256 | 1b6d227bfd8a22c0646db2715ac0f257ea97c08cb26bd8adfa177902c1297e9a |