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(access_token="TOKEN")
# 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.2.0.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

python_transip-0.2.0-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-transip-0.2.0.tar.gz
  • Upload date:
  • Size: 30.5 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.1 CPython/3.9.1

File hashes

Hashes for python-transip-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3c38a7cf24a3e3f38ff6420a014cd7b3d83c2202a563697a467a57ba1e29f2fd
MD5 3dcaeabdf90fad27f509f5702a95b9e1
BLAKE2b-256 874ddd0a8c1e00d044b0ba95a8d294eafce36b619fb258c263c9a783437bd521

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_transip-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.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.1 CPython/3.9.1

File hashes

Hashes for python_transip-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30962691b3c24204d4863214838ef0c7093364319f62b615e6389ca70b8be5fa
MD5 c15d1c5ac7542726ad2931b5ce966cc6
BLAKE2b-256 130fb27466fbeb7593d491b179fba341e292d8251728d2fc252e8baf7f13840c

See more details on using hashes here.

Provenance

Supported by

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