{"id":18626151,"url":"https://github.com/specterops/bloodhound-python-sdk","last_synced_at":"2026-02-06T15:36:24.408Z","repository":{"id":252824862,"uuid":"841549942","full_name":"SpecterOps/bloodhound-python-sdk","owner":"SpecterOps","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-27T18:55:37.000Z","size":291,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-11-30T10:40:01.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpecterOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-12T16:19:17.000Z","updated_at":"2025-11-27T18:55:40.000Z","dependencies_parsed_at":"2025-04-11T13:22:36.235Z","dependency_job_id":"902e8d95-0d91-4c82-8c9e-432f87a981fc","html_url":"https://github.com/SpecterOps/bloodhound-python-sdk","commit_stats":null,"previous_names":["specterops/bloodhound-python-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SpecterOps/bloodhound-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbloodhound-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbloodhound-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbloodhound-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbloodhound-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpecterOps","download_url":"https://codeload.github.com/SpecterOps/bloodhound-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpecterOps%2Fbloodhound-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29167106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T14:37:12.680Z","status":"ssl_error","status_checked_at":"2026-02-06T14:36:22.973Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T04:37:04.218Z","updated_at":"2026-02-06T15:36:24.402Z","avatar_url":"https://github.com/SpecterOps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blood-hound-api-client\nA client library for accessing BloodHound API\n\n## Installing\nThe sdk can be installed from pypi with:\n\n```\npip install blood-hound-python-client\n```\n\n## Usage\nFor HMAC authentication, create and copy your API Token id and key.\n\nCreate an HMACAuthenticationClient using your API Token id and key::\n\n```python\nimport auth\nfrom auth.hmac_authenticated_client import HMACAuthenticatedClient\n\ntoken_key = \"CAuAwLgPag3xpjfx5gYt3mEpRpK5DXkL1LGVK+utqMLTnlakVmjeZw==\"\ntoken_id = \"5f538a38-fd90-4228-b17b-ee09056c6ade\"\nclient = HMACAuthenticatedClient(base_url=base_url, token_key=token_key, token_id=token_id)\n\n```\n\nNow you can call your endpoint and use the model objects\n\nNow call your endpoint and use your models:\n\n```python\n\nfrom blood_hound_api_client import AuthenticatedClient\nfrom blood_hound_api_client.api.api_info import get_api_version\nfrom blood_hound_api_client.models import GetApiVersionResponse200\nfrom blood_hound_api_client.types import Response\n\n\nwith client as client:\n    version: GetApiVersionResponse200 = get_api_version.sync(client=client)\n    response: Response[GetApiVersionResponse200] = get_api_version.sync_detailed(client=client)\n    print(f\"version: {version.data.api}\")\n    print(f\"response: {response}\")\n```\n\nOr do the same thing with an async version:\n\n```python\nfrom blood_hound_api_client import AuthenticatedClient\nfrom blood_hound_api_client.api.api_info import get_api_version\nfrom blood_hound_api_client.models import GetApiVersionResponse200\nfrom blood_hound_api_client.types import Response\n\n\nasync with client as client:\n    version: GetApiVersionResponse200 = await get_api_version.asyncio(client=client)\n    response: Response[GetApiVersionResponse200] = await get_api_version.asyncio_detailed(client=client)\n    print(f\"version: {version.data.api}\")\n    print(f\"response: {response}\")\n\n```\n\nThings to know:\n1. Every path/method combo becomes a Python module with four functions:\n    1. `sync`: Blocking request that returns parsed data (if successful) or `None`\n    1. `sync_detailed`: Blocking request that always returns a `Request`, optionally with `parsed` set if the request was successful.\n    1. `asyncio`: Like `sync` but async instead of blocking\n    1. `asyncio_detailed`: Like `sync_detailed` but async instead of blocking\n\n1. All path/query params, and bodies become method arguments.\n1. If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)\n1. Any endpoint which did not have a tag will be in `blood_hound_api_client.api.default`\n\n## Advanced customizations\n\nThere are more settings on the generated `Client` class which let you control more runtime behavior, check out the docstring on that class for more info. You can also customize the underlying `httpx.Client` or `httpx.AsyncClient` (depending on your use-case):\n\n\n# Or get the underlying httpx client to modify directly with client.get_httpx_client() or client.get_async_httpx_client()\n\nYou can even set the httpx client directly, but beware that this will override any existing settings (e.g., base_url):\n\n## Building / publishing this package\n\n\nThis project uses [Poetry](https://python-poetry.org/) to manage dependencies  and packaging.  Here are the basics:\n1. Update the metadata in pyproject.toml (e.g. authors, version)\n1. If you're using a private repository, configure it with Poetry\n    1. `poetry config repositories.\u003cyour-repository-name\u003e \u003curl-to-your-repository\u003e`\n    1. `poetry config http-basic.\u003cyour-repository-name\u003e \u003cusername\u003e \u003cpassword\u003e`\n1. Publish the client with `poetry publish --build -r \u003cyour-repository-name\u003e` or, if for public PyPI, just `poetry publish --build`\n\nIf you want to install this client into another project without publishing it (e.g. for development) then:\n1. If that project **is using Poetry**, you can simply do `poetry add \u003cpath-to-this-client\u003e` from that project\n1. If that project is not using Poetry:\n    1. Build a wheel with `poetry build -f wheel`\n    1. Install that wheel from the other project `pip install \u003cpath-to-wheel\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecterops%2Fbloodhound-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspecterops%2Fbloodhound-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspecterops%2Fbloodhound-python-sdk/lists"}