suwar
Client for the Suwar API: render a template in all its formats, render datasets, add rows, verify signed callbacks. Python 3.8+, standard library only.
pip install suwar
import os
from suwar import Suwar, verify_signature
suwar = Suwar(api_key=os.environ["SUWAR_KEY"])
job = suwar.renders.create("tpl_7Hq2Lk9d", formats="all", variables={"titre": "L’été sous le store"})
result = job.wait() # {"status": "done", "renders": [{"format": ..., "url": ...}]}
# Callback (callback_url): check the X-Suwar-Signature header against the raw body.
verify_signature(raw_body, headers["X-Suwar-Signature"], os.environ["SUWAR_CALLBACK_SECRET"])
API keys: Suwar › Développeurs › Clés API. Full reference: https://suwar.app/api/openapi.json
Metadata
Release files for suwar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| suwar-0.1.0.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| suwar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / suwar-0.1.0.tar.gz
| Download URL | suwar-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4010ce2d338f550559d2b8a5f29c886a6f75fb5f250622142d81a3e08d9b3cd3
|
|
BLAKE2b-256 checksum How to use checksums |
1d5b351366ba5080c352d91842b39c5a561afc893bb554d6854b890564028000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / suwar-0.1.0-py3-none-any.whl
| Download URL | suwar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c3df2f9fc7e92598722ce0ff14baa8bd86e93e00e52cc6949e7914be395eb58
|
|
BLAKE2b-256 checksum How to use checksums |
de0a9b753b02ff011e4002f4b25a114fcd8982ee3add78f4572498699e4a080c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for suwar 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.