Metadata-Version: 2.4
Name: docuhook-client
Version: 1.0.0
Summary: Official DocuHook Python client — merge JSON into HTML templates via the DocuHook API
Author: DocuHook
License: MIT
Project-URL: Homepage, https://docuhook.com
Project-URL: Repository, https://github.com/rustemas/docuhook-python
Project-URL: Issues, https://github.com/rustemas/docuhook-python/issues
Keywords: docuhook,pdf,webhook,html,template
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# docuhook-client

Official [DocuHook](https://docuhook.com) Python client (stdlib only — no third-party deps).

> PyPI name is `docuhook-client` because `docuhook` was already taken.

```bash
pip install docuhook-client
```

```python
from docuhook import Client

client = Client(api_key="dh_...")
result = client.render(
    {"invoice": {"number": "INV-1"}},
    "<h1>{{invoice.number}}</h1>",
)
print(result["html"])
```

## Async

```python
job = client.render(data, html, mode="async")
status = client.job_status(job["job_id"])
done = client.job_result(job["job_id"])
```
