Registry / devops / dnsimple

dnsimple

JSON →
library8.0.0pypypi✓ verified 85d ago

Python client for the DNSimple API v2. Current version: 8.0.0. Released frequently with API updates.

pip install dnsimple
INSTALL
IMPORT
SIG · DNSIMPLE
D
dnsimple
devopspythonv8.0.0
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.

Client
from dnsimple import Client
from dnsimple.client import Client
Client is exported at package level since v8.
dnsimple
import dnsimple
Direct import of the module for accessing constants or utilities.

Initialize the client with environment variables and list accounts.

import os from dnsimple import Client client = Client( access_token=os.environ.get('DNSIMPLE_ACCESS_TOKEN', ''), sandbox=os.environ.get('DNSIMPLE_SANDBOX', 'false').lower() == 'true' ) # List accounts accounts = client.accounts.list() print(accounts)
Debug
Known issues
breakingSDK v8 requires Python 3.12+. v7 supported Python 3.7+.
fix
Upgrade Python to 3.12+ or pin dnsimple < 8.0.0.
affects: >=8.0.0
breakingRemoved support for 'token' parameter; use 'access_token' instead.
fix
Replace `Client(token='...')` with `Client(access_token='...')`.
affects: >=8.0.0
deprecatedUse of sandbox parameter as positional argument is deprecated; use keyword argument.
fix
Pass sandbox as keyword argument: `Client(..., sandbox=True)`
affects: >=7.0.0 <9.0.0
gotchaClient is not thread-safe. Create a new Client instance per thread.
fix
Instantiate a separate Client for each thread.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'dnsimple'
Package not installed or wrong environment.
fix
Run `pip install dnsimple` and ensure the correct virtual environment is activated.
dnsimple.errors.AuthenticationError: Invalid authentication credentials
Invalid or missing access token.
fix
Set the DNSIMPLE_ACCESS_TOKEN environment variable with a valid API token.
TypeError: Client.__init__() got an unexpected keyword argument 'token'
Using deprecated 'token' parameter in v8.
fix
Change to `Client(access_token='...')`.
Upgrade
Version history
8.0.0latest on PyPI · released May 5, 2026
Audit
Dependencies
requestsrequiredHTTP client used by the SDK
Agent activity
4 hits · last 30 days
node
4
Resources
dnsimple — pip install dnsimple · libregistry