syncanix-sdk
Python intent verification SDK for Syncanix (Django, Flask, FastAPI).
Install: pip install syncanix-sdk[django] or [flask] or [fastapi].
See the Syncanix docs for usage.
v2 (act-as-user) binds
The per-route helpers — syncanix_verify_intent (Flask/Django) and
require_syncanix_intent (FastAPI) — accept optional keyword args to enforce the
v2 argsHash / audience / single-use-nonce binds (omit them and only the v1
coordinate is checked, unchanged):
@syncanix_verify_intent(
secret=SECRET,
# CANONICAL args — NOT the raw body. Reconstruct from every source
# (ADR-0138): REST → {**view_args, **query, **body}; GraphQL → variables.
get_args=lambda request: canonical_args(request),
expected_audience="syncanix:tenant:<tenantId>", # or omit to skip
nonce_store=InMemoryNonceStore(), # or omit to skip
)
def refund(request): ...
Each bind is opt-in. Replay protection needs a nonce_store
(InMemoryNonceStore is single-instance only — use a shared store for a
horizontally scaled API). The v2 sub is surfaced on the verified payload's
.sub. Passing the bare request body as get_args would falsely reject
path-param / GET / GraphQL calls — reconstruct the canonical args.
Release files for syncanix-sdk 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 | |
|---|---|---|---|
| syncanix_sdk-0.1.0.tar.gz | 24.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syncanix_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.0 kB
Release files / syncanix_sdk-0.1.0.tar.gz
| Download URL | syncanix_sdk-0.1.0.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a326445727d48e21c94a8914d2e702797673b30e5ec7d987c2feaf8f1173f574
|
|
BLAKE2b-256 checksum How to use checksums |
be2011015072f6baedc84ebb08ac5a08141e62bd240d169897227bce8a87d177
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / syncanix_sdk-0.1.0-py3-none-any.whl
| Download URL | syncanix_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
732d581b8a9cd3fa895a308953cd4c9ee1d4f7c05e261276ea79bf36f965ce4d
|
|
BLAKE2b-256 checksum How to use checksums |
fd1344d94a311c821eea8a716d9766a7999413f4f3fd1bf21c0a8a66674d4029
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|