Metadata-Version: 2.4
Name: pkge-client
Version: 0.1.0
Summary: An unofficial reversed-engineered client for the pkge.net API
Author-email: Pkge Reverse Engineer <example@example.com>
Project-URL: Homepage, https://github.com/Bluscream/pkge-client
Project-URL: Bug Tracker, https://github.com/Bluscream/pkge-client/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.24.0
Requires-Dist: pycryptodome>=3.18.0

# pkge-client

Unofficial Python client for the pkge.net API.

## Installation

```bash
pip install pkge-client
```

## Usage

```python
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())
```
