Python SDK for the NexBasira public API — sessions, evidence, whiteboards, webhooks, branding, custom domains.
Project description
certivisio — Python SDK
Python 3.10+ client for the NexBasira public API. Mirrors the Node SDK's resource surface for ERP/CRM backends written in Python (Odoo, Django, FastAPI).
Install
pip install certivisio
Quickstart
import os
from nexbasira import NexBasira
nb = NexBasira(
public_key="nb_pub_...",
secret=os.environ["NB_SECRET"],
)
# Create a session + mint a field-join URL.
session = nb.sessions.create(notes="Roof inspection — 14 Rue de Lille")
invite = nb.sessions.create_participant_invite(
session["id"],
role="field",
recipient_email="field-tech@acme.com",
)
print(invite["join_url"])
# Iterate evidence (auto-paginated).
for ev in nb.evidence.list(session["id"]):
print(ev["kind"], ev["sha256"])
# List saved whiteboards.
for wb in nb.whiteboards.list(session["id"]):
print(wb["id"], wb["byte_size"])
Webhook verification
from nexbasira import construct_event, InvalidSignatureError
@app.post("/nb-webhook")
def handle_webhook(request):
try:
event = construct_event(
request.body,
request.headers["nb-signature"],
os.environ["NB_WEBHOOK_SECRET"],
)
except InvalidSignatureError:
return 400
if event["type"] == "session.completed":
...
Errors
NexBasiraError and its subclasses AuthenticationError (401),
PermissionError (403), NotFoundError (404), RateLimitError (429,
.retry_after_seconds), InvalidSignatureError (webhook).
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 nexbasira-0.1.0.tar.gz.
File metadata
- Download URL: nexbasira-0.1.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f67e8ffe72f432b8fe66f64d39784e503868a06df4408fd63cc8c3a581bc88a3
|
|
| MD5 |
1c69470d47df50e2d787a2a45e6fa045
|
|
| BLAKE2b-256 |
c7c6453a03f4f82919969534fb0b21aa37a24c9875ed183d0e507a5b853cc556
|
Provenance
The following attestation bundles were made for nexbasira-0.1.0.tar.gz:
Publisher:
sdk-publish-python.yml on codelounge-io/certivisiopro_backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexbasira-0.1.0.tar.gz -
Subject digest:
f67e8ffe72f432b8fe66f64d39784e503868a06df4408fd63cc8c3a581bc88a3 - Sigstore transparency entry: 1927811385
- Sigstore integration time:
-
Permalink:
codelounge-io/certivisiopro_backend@efb5acf3e7f381116804281ea2d070536f69ff30 -
Branch / Tag:
refs/tags/sdk-python-v0.1.0 - Owner: https://github.com/codelounge-io
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish-python.yml@efb5acf3e7f381116804281ea2d070536f69ff30 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nexbasira-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nexbasira-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154e5fd459eed0a7982683c62db7987860b83efae2586abb8569b0407484f7a7
|
|
| MD5 |
087a739ee53404ad5254b298418b4461
|
|
| BLAKE2b-256 |
6e6b65d9dd22cd46137e0826d656d62ebcfb50086903e454e07d56c6d9841745
|
Provenance
The following attestation bundles were made for nexbasira-0.1.0-py3-none-any.whl:
Publisher:
sdk-publish-python.yml on codelounge-io/certivisiopro_backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexbasira-0.1.0-py3-none-any.whl -
Subject digest:
154e5fd459eed0a7982683c62db7987860b83efae2586abb8569b0407484f7a7 - Sigstore transparency entry: 1927811684
- Sigstore integration time:
-
Permalink:
codelounge-io/certivisiopro_backend@efb5acf3e7f381116804281ea2d070536f69ff30 -
Branch / Tag:
refs/tags/sdk-python-v0.1.0 - Owner: https://github.com/codelounge-io
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish-python.yml@efb5acf3e7f381116804281ea2d070536f69ff30 -
Trigger Event:
push
-
Statement type: