Registry / devops / teamhack-dns

teamhack-dns

JSON →
library0.0.1398pypypi✓ verified 80d ago

Hack the Box Team Support Services library for managing DNS records and team infrastructure. Currently at version 0.0.1398 with rapid, frequent releases; no stable release schedule yet.

pip install teamhack-dns
INSTALL
IMPORT
SIG · TEAMHACK-DNS
T
teamhack-dns
devopspythonv0.0.1398
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TeamHackDNS
import teamhack_dns
from teamhack_dns import TeamHackDNS

Initialize the client with your API key and list DNS records.

from teamhack_dns import TeamHackDNS import os client = TeamHackDNS( api_key=os.environ.get('TEAMHACK_API_KEY', '') ) # List all DNS records records = client.list_records() print(records)
Debug
Known issues
gotchaPackage name uses hyphens (teamhack-dns) but the Python import uses underscores (teamhack_dns). A common mistake is to import with hyphens.
fix
Use `from teamhack_dns import ...` (underscores).
affects: all
breakingThe API key parameter name changed from 'key' to 'api_key' in v0.0.1300. Old code passing `key=` will fail with TypeError.
fix
Use `api_key=your_key` instead of `key=your_key`.
affects: >=0.0.1300
deprecatedThe `add_record()` method is deprecated in favor of `create_record()`. It still works but will be removed in a future release.
fix
Replace `client.add_record(...)` with `client.create_record(...)`.
affects: >=0.0.1350
Upgrade
Version history
0.0.1398latest on PyPI · released Oct 18, 2023
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
5 hits · last 30 days
node
4
Resources
teamhack-dns — pip install teamhack-dns · libregistry