Skip to main content

Async PoE API client with rate limit support (upcoming)

Reason this release was yanked:

Does not comply with API rules

Project description

poe-client

Build Status codecov Python Version wemake-python-styleguide

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

MIT

Credits

This project was generated with wemake-python-package. Current template version is: 6cb0736bbc9cb53ee126e2297b8ed7029b5e1380. See what is updated since then.

Project details


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)

Uploaded Source

Built Distribution

poe_client-0.1.1-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page