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.8.0
darkhunt_api.workflow_manager workflow-manager 0.32.1

License

Apache-2.0

Metadata

Release files for darkhunt-api 0.1.12

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.12
File Size Uploaded Provenance Actions
darkhunt_api-0.1.12.tar.gz 83.2 kB With provenance Details for darkhunt_api-0.1.12.tar.gz

Built distribution (wheel)

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

Total release size: 262.9 kB

Release files / darkhunt_api-0.1.12.tar.gz

Download URL darkhunt_api-0.1.12.tar.gz
Size 83.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82a161a1267d86d2b947b17dcb7e95e40502c724014ffe156458167cda6d57d8
BLAKE2b-256 checksum
How to use checksums
bd7b60860d5897cff352e8575cea77b60e631f18bbc3813e7332b1d676fd8e16
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 27, 2026.

Transparency log

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

Download URL darkhunt_api-0.1.12-py3-none-any.whl
Size 179.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99f9d488cb833cb3ca0e29ba32fa7c6309cdfa2730a64539edbe6a8ff759525f
BLAKE2b-256 checksum
How to use checksums
6ff97774d8d6782b8128d00c095512e5193ca4773ba9e16e2ec4402e6a9ba4c1
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 27, 2026.

Transparency log

Security for darkhunt-api 0.1.12

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.12.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 27, 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