Darwin Python SDK
The primary client covers the same eleven live operations exposed through Darwin MCP: Search, account context, Search history, and the complete Start/Get/List/Continue/Authenticate/Pay/Approve/End Action flow. It also includes the bounded developer account, application, and API-key endpoints documented in the public OpenAPI contract.
pip install darwin-sdk
import os
from darwin_sdk import Darwin
darwin = Darwin(api_key=os.environ["DARWIN_API_KEY"])
found = darwin.search(query="OCR that handles handwriting and tables")
outcome = darwin.start_action(
capability_id=found.results[0].capability_id,
capability_revision=found.results[0].capability_revision,
inputs={"file": "https://example.com/invoice.pdf"},
request_id="req_123",
)
The client is generated from Darwin's public /api/v2 OpenAPI contract and defaults to https://api.darwin.so/api/v2. Treat each Action's available_actions and typed interaction as the mutation authority. See the API guide for authentication, payment, approval, continuation, and closure examples.
Release files for darwin-sdk 0.4.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 | |
|---|---|---|---|
| darwin_sdk-0.4.0.tar.gz | 78.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| darwin_sdk-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 235.2 kB
Release files / darwin_sdk-0.4.0.tar.gz
| Download URL | darwin_sdk-0.4.0.tar.gz |
|---|---|
| Size | 78.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0846d84addb77c610d42bec2b6f6309f9f79c068dcd5efb1b94226d9723261dc
|
|
BLAKE2b-256 checksum How to use checksums |
8be01c43dd4f804c92674f617c7ffb427d695f74bf543ceedbd99cc1b0d59d40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency logRelease files / darwin_sdk-0.4.0-py3-none-any.whl
| Download URL | darwin_sdk-0.4.0-py3-none-any.whl |
|---|---|
| Size | 156.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
846c227df5cd4bc494a57ac3467dbfeddfc9776f662003f3807b29624b2e7414
|
|
BLAKE2b-256 checksum How to use checksums |
4110a0bbb8fb3f1670c1da9ab5ea3a76e0ea8e2ed782c8319389c272ea8e92c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 25, 2026.
Transparency log