Skip to main content

Wrapper for the TransIP API

Project description

python-transip

PyPI - Python Version PyPI - Downloads PyPI - Format License GitHub Workflow Status GitHub contributors

python-transip is an Python wrapper for the TransIP REST API.

>>> import transip
# Initialize a TransIP API client
>>> client = transip.TransIP(
...     login="demouser",
...     private_key_file="/path/to/private.key"
... )
# Retrieve a list of VPSs
>>> for vps in client.vpss.list():
...     print(vps)
<class 'transip.v6.objects.Vps'> => {'name': 'transipdemo-vps', 'productName': 'vps-bladevps-x1', ... }
# Retrieve a domain and list its DNS-records
>>> domain = client.domains.get('transipdemo.net')
>>> for entry in domain.dns.list():
...     print(entry)
<class 'transip.v6.objects.DnsEntry'> => {'name': '*', 'expire': 300, 'type': 'A', 'content': '95.170.70.223'}
<class 'transip.v6.objects.DnsEntry'> => {'name': '@', 'expire': 300, 'type': 'A', 'content': '95.170.70.223'}
# Add a new DNS-record
>>> domain.dns.create({'name': '@', 'expire': 300, 'type': 'TXT', 'content': 'Python'})

Installing python-transip and Supported Versions

python-transip is available on PyPI:

$ python -m pip install python-transip

python-transip officially supports Python 3.6+.

Documentation

API Reference and User Guide available on Read the Docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-transip-0.3.0.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

python_transip-0.3.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file python-transip-0.3.0.tar.gz.

File metadata

  • Download URL: python-transip-0.3.0.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1

File hashes

Hashes for python-transip-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4ba9a73e98ef28b7406b632fd295de30c0e372d9beb610fa27a438fb9ef95216
MD5 06b1e7cab835a0b7025e480875bb4d4e
BLAKE2b-256 b4cfe4bd62987a96cd841e05284c7bf9fd5f52a55d76a83b6862eafd4f929fee

See more details on using hashes here.

File details

Details for the file python_transip-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: python_transip-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1

File hashes

Hashes for python_transip-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcebb51a5ba8d4559b18d1c99cd12da2c5b6f6fea3450f16c884aab6ecae93bd
MD5 5ace34e86154d8bf49b81f1e99c85ad2
BLAKE2b-256 bb92ffbb5bd76554bd982457337ccd044bc44326a6dcf11b3d3501f9bb5e9f63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page