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.9.0 |
darkhunt_api.workflow_manager |
workflow-manager |
0.33.0 |
License
Apache-2.0
Metadata
Release files for darkhunt-api 0.1.13
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 |
|---|---|---|---|---|
| darkhunt_api-0.1.13.tar.gz | 84.1 kB | With provenance | Details for darkhunt_api-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darkhunt_api-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for darkhunt_api-0.1.13-py3-none-any.whl |
Total release size: 265.3 kB
Release files / darkhunt_api-0.1.13.tar.gz
| Download URL | darkhunt_api-0.1.13.tar.gz |
|---|---|
| Size | 84.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
987e381d310d63fd14621521dfa833a50290fa3f9f7f5e1f398dce7252d8cf55
|
|
BLAKE2b-256 checksum How to use checksums |
d529e15a92d043cb8130e0eb61ef3c14525b899e8085d6c2a06d743d1c6fd393
|
| 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 Oct 4, 2026.
Transparency logRelease files / darkhunt_api-0.1.13-py3-none-any.whl
| Download URL | darkhunt_api-0.1.13-py3-none-any.whl |
|---|---|
| Size | 181.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
063e1d7ddae02fc11c8a295add10bbd55e50d505c1f827dbc4b08c435c44b846
|
|
BLAKE2b-256 checksum How to use checksums |
9c5908387b9a61896b654b24ad26fba0aacabaf49eabc6da5a41b2fc9fed609c
|
| 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 Oct 4, 2026.
Transparency logSecurity for darkhunt-api 0.1.13
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.
Attestation for darkhunt_api-0.1.13.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 4, 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.