Skip to main content

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

darkhunt_api-0.1.3.tar.gz (71.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

darkhunt_api-0.1.3-py3-none-any.whl (148.5 kB view details)

Uploaded Python 3

File details

Details for the file darkhunt_api-0.1.3.tar.gz.

File metadata

  • Download URL: darkhunt_api-0.1.3.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

Hashes for darkhunt_api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 520485dc4e55472effdfd0cbaadc9db7262cfbf1a48e42efc0d06c58ef52f483
MD5 9e06bba1505eacc808e4c12724192eea
BLAKE2b-256 1c303f8b0b89f3f6f2d07e9c951e5fee8979c6a60aa7745e60b5ff82a9e1ae47

See more details on using hashes here.

Provenance

The following attestation bundles were made for darkhunt_api-0.1.3.tar.gz:

Publisher: publish-sdks.yml on darkhunt-security/docs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file darkhunt_api-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: darkhunt_api-0.1.3-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

Hashes for darkhunt_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aed9eb6cac70b8fa83b526fc2ba326c20e1e42031d2de25b0089b2e1896537fc
MD5 2b06bdf588aad7494d7afeb2ea9f00d3
BLAKE2b-256 f2167a4dee9ea4d6fffff74c91cc6b0405b8e77c020e2def435d1ab0453bc162

See more details on using hashes here.

Provenance

The following attestation bundles were made for darkhunt_api-0.1.3-py3-none-any.whl:

Publisher: publish-sdks.yml on darkhunt-security/docs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 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