An unofficial reversed-engineered client for the pkge.net API
Project description
pkge-client
Unofficial Python client for the pkge.net API.
Installation
pip install pkge-client
Usage
import asyncio
from pkge import PkgeClient
async def main():
client = PkgeClient()
# 1. Fetch initial tracking payload
data = await client.get_tracking_initial("00340434694908615482")
print(data)
# 2. Trigger an update
update_res = await client.request_update("00340434694908615482")
print(update_res)
# 3. Poll for status using the hash from the initial data
if "hash" in data:
status_data = await client.get_tracking_status("00340434694908615482", data["hash"])
print(status_data)
await client.close()
asyncio.run(main())
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
pkge_client-0.1.0.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pkge_client-0.1.0.tar.gz.
File metadata
- Download URL: pkge_client-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
522aaa672155b0e59274014af171c5effb2ef34cebaa27596c3dc99cb2617cf6
|
|
| MD5 |
209c350f98f9218409559a2688ff50f4
|
|
| BLAKE2b-256 |
53421cefa89d0cd5a3fac993c2dd2204259b1df3f2e6f2e4bbacf4ecb684eca1
|
File details
Details for the file pkge_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pkge_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81a45f9b164b318f1889c2d3b22b22045f17b77ae988173e28156a38d8a623db
|
|
| MD5 |
90cc062916b67d811827f887e81920cf
|
|
| BLAKE2b-256 |
352281c9372fdc05c8884509b1c52536670f218dadb5754c7da43c493de13284
|