PoEClient
Async client to run simultaneous requests against the Path of Exile API without triggering rate limiting
Installation
pip install poe-async-client
Example usage
import asyncio
from poe_async_client.poe_client import PoEClient
async def fetch_stash_changes_simultaneously():
client = PoEClient(
max_requests_per_second=5,
user_agent="OAuth myapp/1.0.0 (Contact: Liberatorist@gmail.com)"
)
async with client:
token_response = await client.get_client_credentials(
client_id="myapp",
client_secret="super secret",
scope="service:psapi"
)
token = token_response["access_token"]
simultaneous_requests = [
client.get_public_stashes(token=token)
for _ in range(10)
]
responses = await asyncio.gather(*simultaneous_requests)
Release files for poe-async-client 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poe_async_client-0.0.6.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poe_async_client-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / poe_async_client-0.0.6.tar.gz
| Download URL | poe_async_client-0.0.6.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9298612c472dcdb5974d14fc7dea9baca389766e71b7599fc7065b9ed459be76
|
|
BLAKE2b-256 checksum How to use checksums |
24fc28a880e100abb3527e31588cbadd14ea1f315a7823e227b9771d7d527ea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / poe_async_client-0.0.6-py3-none-any.whl
| Download URL | poe_async_client-0.0.6-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f5018053b5f8e6a2f13d426955b5cabfb902fb1b77992e8ed02155089d230da
|
|
BLAKE2b-256 checksum How to use checksums |
be5235a993885cf104621661cfbbc12cf36a9956d8b468952f53692c7de6b2b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|