Metadata-Version: 2.5
Name: hanafubuki-extension
Version: 0.4.16
Summary: Python SDK for Hanafubuki extension backends
Project-URL: Homepage, https://github.com/licyk/Hanafubuki
Requires-Python: >=3.10
Requires-Dist: pykardia==0.6.0
Description-Content-Type: text/markdown

# Hanafubuki extension SDK for Python

Declare `hanafubuki-extension` in the extension's `requirements.txt` and reference that file from the manifest's `[backend]` table. Hanafubuki installs the SDK and its Kardia process guest dependency before starting the backend.

With `useBundledSdk = true` in the manifest’s `[backend]` table, the host puts its bundled SDK and Kardia runtime first on the backend’s `PYTHONPATH`. Omit the SDK from requirements in this mode. The switch defaults to false and applies only to this Python backend.

```python
from hanafubuki_extension import Handler, run_guest

if __name__ == "__main__":
    run_guest(Handler())
```

The distribution version follows the desktop release. Declare compatible application versions separately in `engines.hanafubuki`.

To install the standalone SDK from this source directory, run `python -m pip install .`. The documentation archive includes the guest tests; run `python -m unittest discover -s tests` after installation.
