darkhunt-api
Python client for the Darkhunt public API.
Generated from the public OpenAPI contracts served at docs.darkhunt.ai/openapi/. 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.5.0 |
darkhunt_api.workflow_manager |
workflow-manager |
0.29.0 |
License
Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file darkhunt_api-0.1.4.tar.gz.
File metadata
- Download URL: darkhunt_api-0.1.4.tar.gz
- Upload date:
- Size: 71.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d488b96af71475a4d66d061e3dfb0a050d71d0c4c27d511c9e6e63196145edc
|
|
| MD5 |
f30c8db8539bd0c0e8fbf0ffd2c3d2ea
|
|
| BLAKE2b-256 |
927f4d5dcce15e68fce03069f89da6caf8930d5bc375b842fc8e786d4fb483b5
|
Provenance
The following attestation bundles were made for darkhunt_api-0.1.4.tar.gz:
Publisher:
publish-sdks.yml on darkhunt-security/docs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
darkhunt_api-0.1.4.tar.gz -
Subject digest:
9d488b96af71475a4d66d061e3dfb0a050d71d0c4c27d511c9e6e63196145edc - Sigstore transparency entry: 2619726266
- Sigstore integration time:
-
Permalink:
darkhunt-security/docs@31d7b674ac3d54f8a6d0b7b0e377a0c0839592dc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/darkhunt-security
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@31d7b674ac3d54f8a6d0b7b0e377a0c0839592dc -
Trigger Event:
push
-
Statement type:
File details
Details for the file darkhunt_api-0.1.4-py3-none-any.whl.
File metadata
- Download URL: darkhunt_api-0.1.4-py3-none-any.whl
- Upload date:
- Size: 148.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0e9c3472f4467988e47e53ff52d9c9569ec888793a6ce8f2d63d3f401bf3cf
|
|
| MD5 |
015e38090d615c7d696e6f95f2fb1a59
|
|
| BLAKE2b-256 |
0cf99c3d569fbe79e9526e8e4ef3ffaffb142cda330fd4ecf0aec97c914a8d23
|
Provenance
The following attestation bundles were made for darkhunt_api-0.1.4-py3-none-any.whl:
Publisher:
publish-sdks.yml on darkhunt-security/docs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
darkhunt_api-0.1.4-py3-none-any.whl -
Subject digest:
9a0e9c3472f4467988e47e53ff52d9c9569ec888793a6ce8f2d63d3f401bf3cf - Sigstore transparency entry: 2619727076
- Sigstore integration time:
-
Permalink:
darkhunt-security/docs@31d7b674ac3d54f8a6d0b7b0e377a0c0839592dc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/darkhunt-security
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@31d7b674ac3d54f8a6d0b7b0e377a0c0839592dc -
Trigger Event:
push
-
Statement type: