Async PoE API client with rate limit support (upcoming)
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.2.tar.gz
(9.1 kB
view hashes)
Built Distribution
poe_client-0.1.2-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for poe_client-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aee2031847c89c00eddea90b8f88f1ec5b8ad0d7967ae41b4570a3d73c749b0 |
|
MD5 | 868dd786db541bbafca8e4f8f0e60e5a |
|
BLAKE2b-256 | 78260010e18a75d742f496abcba101ae9ad9914705b39005378b2cddd637d309 |