Metadata-Version: 2.4
Name: endfield-hub-api
Version: 0.3.2
Summary: Async Endfield Hub client with offline website Canvas rendering
Project-URL: Homepage, https://wuwahub.onrender.com/endfield/home
Project-URL: Documentation, https://github.com/DEViantUA/endfield-hub-api/blob/main/docs/API.md
Project-URL: Repository, https://github.com/DEViantUA/endfield-hub-api
Project-URL: HTTP API, https://wuwahub.onrender.com/endfield/api
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: NOTICE.md
Requires-Dist: Pillow>=11.3
Requires-Dist: httpx<1,>=0.28
Requires-Dist: playwright<2,>=1.52
Dynamic: license-file

# Endfield Hub API

Async Python SDK for **Arknights: Endfield**. Look up public showcases by UID and render operator cards as PNG bytes or Pillow images. If the site cannot return a PNG, the SDK uses the bundled site Canvas templates and artwork in a local browser.

```python
import asyncio
from endfield_hub_api import AsyncEndfieldClient

async def main():
    async with AsyncEndfieldClient(renderer="remote", hide_uid=True, hide_nickname=True,
                                   timeout=90, png_timeout=60) as client:
        files = await client.download_uid_cards("4727743200", "cards")
        print(files)

asyncio.run(main())
```

Use `renderer="local"` to read public profiles from Enka directly and render on your machine. An already available build can be rendered with `await client.render_card_image(build, renderer="local")` without a network connection. The older synchronous `EndfieldClient` remains available.

With `renderer="remote"`, bulk UID methods use the site's paginated ZIP export. Older deployments remain compatible and return individual PNGs.

Python 3.10+. Local rendering uses Chrome, Edge, or Playwright Chromium
(`python -m playwright install --only-shell chromium`). For API methods and
examples, see `docs/API.md` and `examples/` in the source distribution.
See also the [Endfield Hub HTTP API reference](https://wuwahub.onrender.com/endfield/api).
