Skip to main content

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)

Source distribution for darwin-sdk 0.4.0
File Size Uploaded
darwin_sdk-0.4.0.tar.gz 78.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for darwin-sdk 0.4.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page