SignWell Python SDK
Python SDK for the SignWell API.
This package is generated from the SignWell OpenAPI spec by
Bidsketch/signwell-sdk-generator. Do not edit generated SDK runtime files
directly; make durable changes in the generator repo.
Installation
pip install signwell-sdk-python
With uv:
uv add signwell-sdk-python
Retries and future API values
Explicit HTTP 429 responses retry up to twice, including JSON POST requests and
downloads. Retry-After seconds or HTTP dates are honored; absent or invalid
headers use one then two seconds of backoff. A requested wait above 60 seconds
returns the rate-limit error immediately. Network failures and other status codes
are not retried by default. Disable SDK retries with Configuration(max_rate_limit_retries=0).
An explicitly supplied Configuration.retries retains control of the underlying urllib3 policy.
Unknown enum strings returned by the API remain readable as unknown_default_open_api.
Known enum values keep their existing API strings.
Quick Start
import os
import signwell_sdk
from signwell_sdk.api.document_api import DocumentApi
configuration = signwell_sdk.Configuration(
api_key={"api_key": os.environ["SIGNWELL_API_KEY"]}
)
with signwell_sdk.ApiClient(configuration) as api_client:
documents = DocumentApi(api_client)
document = documents.get_document("document-id")
print(document.id)
The SDK sends the API key in the X-Api-Key header. The default host is
https://www.signwell.com.
Resources, Models, And Errors
The generated resource clients are available from their generated modules and from the parity namespace:
documents = signwell_sdk.Resources.DocumentApi(api_client)
model_cls = signwell_sdk.Models.DocumentResponse
not_found_cls = signwell_sdk.Errors.NotFoundError
Status-specific errors inherit from signwell_sdk.ApiException:
try:
documents.get_document("missing")
except signwell_sdk.Errors.NotFoundError as exc:
print(exc.status)
print(exc.data or exc.body)
Binary And JSON Responses
Some endpoints can return either JSON or binary data. The SDK selects the
correct Accept header from the mode parameters.
from signwell_sdk.api.bulk_send_api import BulkSendApi
from signwell_sdk.api.regional_api import RegionalApi
bulk_send = BulkSendApi(api_client)
csv_bytes = bulk_send.get_bulk_send_csv_template(
["00000000-0000-0000-0000-000000000000"]
)
csv_json = bulk_send.get_bulk_send_csv_template(
["00000000-0000-0000-0000-000000000000"],
var_base64=True,
)
documents = DocumentApi(api_client)
pdf_bytes = documents.get_completed_pdf("doc_123")
pdf_url = documents.get_completed_pdf("doc_123", url_only=True)
regional = RegionalApi(api_client)
certificate_bytes = regional.get_nom151_certificate("doc_123")
certificate_url = regional.get_nom151_certificate("doc_123", url_only=True)
certificate_object = regional.get_nom151_certificate("doc_123", object_only=True)
Embedded Helpers
doc = signwell_sdk.Embedded.create_signing_document(
name="NDA",
files=[{"name": "nda.pdf", "file_base64": "JVBERi0xLjQK"}],
recipients=[{"name": "Jane Doe", "email": "jane@example.com"}],
fields=[[{"x": 20, "y": 60, "page": 1, "type": "signature"}]],
options={"api_client": api_client},
)
url = signwell_sdk.Embedded.embedded_signing_url(doc)
Embedded signing documents must include fields for every recipient, set
with_signature_page=True, or set text_tags=True.
Webhook Verification
payload = request.json()
event = payload["event"]
signwell_sdk.Webhook.verify_event_or_raise(
event=event,
webhook_id=os.environ["SIGNWELL_WEBHOOK_ID"],
tolerance_seconds=300,
)
For side-effecting handlers, use replay-aware verification with an atomic store:
store = signwell_sdk.Webhook.MemoryReplayStore()
signwell_sdk.Webhook.verify_event_once_or_raise(
event=event,
webhook_id=os.environ["SIGNWELL_WEBHOOK_ID"],
tolerance_seconds=300,
replay_store=store,
)
MemoryReplayStore is intended for local development and single-process apps.
Production apps should use a shared atomic store such as Redis or a database
table with a uniqueness constraint.
Local Package Build
uv sync --dev
uv run pytest
uv build --no-sources
uv build --no-sources verifies that the source distribution and wheel can be
built from publishable package metadata.
Metadata
Release files for signwell-sdk-python 0.2.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 | Actions |
|---|---|---|---|---|
| signwell_sdk_python-0.2.0.tar.gz | 119.5 kB | With provenance | Details for signwell_sdk_python-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| signwell_sdk_python-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for signwell_sdk_python-0.2.0-py3-none-any.whl |
Total release size: 383.2 kB
Release files / signwell_sdk_python-0.2.0.tar.gz
| Download URL | signwell_sdk_python-0.2.0.tar.gz |
|---|---|
| Size | 119.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0026be759277ddce21ecbf3f4c618e9c504d1bf10e9c76f91ba7e04df4d0a87c
|
|
BLAKE2b-256 checksum How to use checksums |
81885f33e683ebafd5b7b13cb8e5b4e7c35d35d8a5091dc3e924d06a8c75c769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / signwell_sdk_python-0.2.0-py3-none-any.whl
| Download URL | signwell_sdk_python-0.2.0-py3-none-any.whl |
|---|---|
| Size | 263.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ace658bfb033a9a2919a480a31c0b472dd1734415a1fc8a18b5331293aaf91a5
|
|
BLAKE2b-256 checksum How to use checksums |
f3cf78c67fe7ab7b24444bf3f2441273a36f5d39a9caef529f9b0bc041e8350e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for signwell-sdk-python 0.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for signwell_sdk_python-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA 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.