Skip to main content

darkhunt-api

Python client for the Darkhunt public API.

Generated from the public OpenAPI contracts. The full API reference, including request and response schemas, is at docs.darkhunt.ai.

Install

pip install darkhunt-api

Usage

Each service is a submodule with its own client, configuration and models.

from darkhunt_api.workflow_manager import ApiClient, Configuration, WorkspacesApi

config = Configuration(
    host="https://api.darkhunt.ai/workflow-manager",
    access_token="dh-...",           # API key, or an OAuth access token
)

with ApiClient(config) as client:
    workspaces = WorkspacesApi(client).list_workspaces(tenant_id="...")
from darkhunt_api.guardrail_manager import ApiClient, Configuration, GuardrailRulesApi

config = Configuration(
    host="https://api.darkhunt.ai/guardrail-manager",
    access_token="dh-...",
)

with ApiClient(config) as client:
    rules = GuardrailRulesApi(client).list_guardrail_rules(tenant_id="...")

Create and revoke API keys under Settings → Security → API Keys. A key carries the same privileges as the account that created it — treat it like a password.

Versioning

This package has its own version, independent of the API contracts it wraps — it ships several services, and they version separately. The contract revision each module was generated from is recorded in the package:

import darkhunt_api
darkhunt_api.CONTRACT_VERSIONS
# {'guardrail_manager': '0.5.0', 'workflow_manager': '0.29.0'}

from darkhunt_api import workflow_manager
workflow_manager.__version__      # the workflow-manager contract version
Module Contract Version
darkhunt_api.guardrail_manager guardrail-manager 0.7.1
darkhunt_api.workflow_manager workflow-manager 0.32.1

License

Apache-2.0

Metadata

Release files for darkhunt-api 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for darkhunt-api 0.1.11
File Size Uploaded Provenance Actions
darkhunt_api-0.1.11.tar.gz 78.8 kB With provenance Details for darkhunt_api-0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for darkhunt-api 0.1.11
File Interpreter ABI Platform Actions
darkhunt_api-0.1.11-py3-none-any.whl Python 3 none any Details for darkhunt_api-0.1.11-py3-none-any.whl

Total release size: 243.5 kB

Release files / darkhunt_api-0.1.11.tar.gz

Download URL darkhunt_api-0.1.11.tar.gz
Size 78.8 kB
Tags Source
SHA-256 checksum
How to use checksums
da49f422667454ea14f29203f24d756033ef7f98b2da4b0ed61d2b6e8a0c53a3
BLAKE2b-256 checksum
How to use checksums
0a8a61628c9c2ad852b35f477440c2723ccb71b9e0c36ab4303ba66c90174d63
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 12, 2026.

Transparency log

Release files / darkhunt_api-0.1.11-py3-none-any.whl

Download URL darkhunt_api-0.1.11-py3-none-any.whl
Size 164.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83587622b1bb2547955efcf75f6f07231b9362914891470da77dcd91199d7b37
BLAKE2b-256 checksum
How to use checksums
06b9c3548f4cfc23a4018f462b35c30e0e7cc431b2146670666b3994945cf63d
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 12, 2026.

Transparency log

Security for darkhunt-api 0.1.11

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for darkhunt_api-0.1.11.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 Sep 12, 2026.

Transparency log

A 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.

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