Official Python client for InkPDF — the developer-first PDF API. HTML, URLs, Markdown, and JSON templates in; pixel-perfect PDFs out.
Project description
inkpdf-client
Official Python client for InkPDF — the developer-first PDF API. Zero dependencies (stdlib only), Python 3.9+.
pip install inkpdf-client
(The PyPI name is inkpdf-client; the import is still inkpdf.)
from inkpdf import InkPDF
client = InkPDF("ink_live_...") # free key at inkpdf.dev
# HTML → PDF
open("hello.pdf", "wb").write(client.html("<h1>Hello!</h1>", format="Letter"))
# JSON → invoice (totals & tax computed for you)
pdf = client.invoice({
"brand": {"name": "Acme Studio", "color": "#0f766e"},
"invoiceNumber": "INV-2043",
"currency": "USD",
"to": {"name": "Northwind Traders"},
"items": [{"description": "Design work", "quantity": 10, "unitPrice": 95}],
"taxRate": 8.5,
})
# Markdown → styled PDF
client.markdown("# Q2 Report\n\nRevenue grew **12%**.", theme="serif")
# Check your quota
print(client.usage()) # {'plan': ..., 'used': ..., 'remaining': ...}
Get a free API key (50 PDFs/month) at inkpdf.dev. Full API reference: inkpdf.dev/docs.
Publishing (maintainer note)
cd clients/python
python -m pip install build twine
python -m build
python -m twine upload dist/* # requires a PyPI account/token
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
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 inkpdf_client-0.1.0.tar.gz.
File metadata
- Download URL: inkpdf_client-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
208bbb5fd5c2bcb107e59c0370b31b47d603e0c1b7b4ab07b5032344144c1d80
|
|
| MD5 |
8bd156d017f690dd5c2b12e286e3ae31
|
|
| BLAKE2b-256 |
24074d55b92e5e5697a6c85534f9d6e6be7b67b80f2fa1b9f4d662042c3a6aa6
|
File details
Details for the file inkpdf_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: inkpdf_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
966c6ab93c439a630ccb234b11bcd8e1bcf990fd55eeeca76f95b06273966424
|
|
| MD5 |
4a08c6a16cc0a2818f6413697a2b97e7
|
|
| BLAKE2b-256 |
9c382900ac291a12956e3dbf8329c1e483b43c60c425e54df58db70bce526dd5
|