Registry / http-networking / python-transip

python-transip

JSON →
library0.6.0pypypi✓ verified 86d ago

A wrapper for the TransIP API, providing access to manage domains, DNS, colocations, invoices, and more. Latest version 0.6.0 (November 2021), supports Python 3.6+. Maintenance mode with infrequent releases.

pip install python-transip
INSTALL
IMPORT
SIG · PYTHON-TRANSIP
P
python-transip
http-networkingpythonv0.6.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.

TransIP
from transip import TransIP
import transip
Direct import of class rather than module

Basic usage: create a TransIP client and list domains.

from transip import TransIP # Initialize with API credentials transip = TransIP( login='your_username', access_token='your_token', api_url='https://api.transip.nl/v6' # optional, default is v6 ) # List domains for domain in transip.domains: print(domain.name)
Debug
Known issues
gotchaAccess tokens must be generated in the TransIP control panel and have an expiration date. If token expires, API calls will fail with authentication errors.
fix
Refresh token via transip._token_manager.refresh() or generate a new token from TransIP panel.
affects: all
deprecatedPython 3.6 is the minimum required version; older versions are not supported. The library uses f-strings and may break on 3.5.
fix
Upgrade Python to 3.6+ or use the older pre-0.3.0 releases.
affects: <0.3.0
gotchaThe library 'requests' must be installed separately if not already in environment. Missing dependency leads to ImportError.
fix
Run 'pip install requests' or install python-transip with extras 'pip install python-transip[all]' (if available).
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'transip'
The package is installed but the import path is wrong; some users accidentally try 'import transip'.
fix
Use 'from transip import TransIP' instead of 'import transip'.
transip.exceptions.AuthenticationError: Authentication failed: invalid access token
Access token expired or invalid.
fix
Generate a new access token via the TransIP control panel and update it in code.
Upgrade
Version history
0.6.0latest on PyPI · released Nov 1, 2021
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
4 hits · last 30 days
node
4
Resources
python-transip — pip install python-transip · libregistry