Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexbasira-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexbasira-0.1.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

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

Hashes for nexbasira-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f67e8ffe72f432b8fe66f64d39784e503868a06df4408fd63cc8c3a581bc88a3
MD5 1c69470d47df50e2d787a2a45e6fa045
BLAKE2b-256 c7c6453a03f4f82919969534fb0b21aa37a24c9875ed183d0e507a5b853cc556

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexbasira-0.1.0.tar.gz:

Publisher: sdk-publish-python.yml on codelounge-io/certivisiopro_backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for nexbasira-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 154e5fd459eed0a7982683c62db7987860b83efae2586abb8569b0407484f7a7
MD5 087a739ee53404ad5254b298418b4461
BLAKE2b-256 6e6b65d9dd22cd46137e0826d656d62ebcfb50086903e454e07d56c6d9841745

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page