Skip to main content

DNS and IP management Python library

Project description

dimclient

dimclient is a python client library to talk to dim. It provides a method method interface to all DIM functions.

usage

To use dimclient, install dimclient in your python environment.

There are two options to do that:

  1. Distribution packages: Download and install a distribution-packaged package. There are packages for Debian- and Redhat-based distributions in dimclient specific releases. Note that distribution packages install the dimclient globally.
  2. Python PIP: There's no PyPI repo yet, but you can add a specific git tag from the github repo towards your requirements.txt file so PIP can download and install dimclient, i.e. in a virtual environment. A sample requirements.txt snippet is given in the following example:
git+https://github.com/1and1/dim.git@dimclient-1.0.1#egg=dimclient&subdirectory=dimclient

In your script, create a new dim client and log into the instance. After that, you can make any request.

import dimclient

client = dimclient.DimClient("http://localhost:8080")
# optional login
client.login('username', 'password')

# now request all IPs
ips = client.ip_list(pool="testpool")

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

dimclient-1.0.5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

dimclient-1.0.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file dimclient-1.0.5.tar.gz.

File metadata

  • Download URL: dimclient-1.0.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for dimclient-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ce12934640bdfed1b3703176e5100b1d46d03e69e914c31f7116108dc6b22dde
MD5 b4bb4323ae48dd1ad511beedf711ba11
BLAKE2b-256 f11e23a60ac8258997ed65caac717cb591426a70c60177b2e4fc47379b971059

See more details on using hashes here.

File details

Details for the file dimclient-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: dimclient-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for dimclient-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c534d57c3f705e90af5c94daa09091f876316c3e9206298b2fc550358f2b453a
MD5 5acfc0b40b9ac53f9114f78c4d65ddb7
BLAKE2b-256 60da510a03ab23d0c0b178c953a35dd6f8393ed81051defef62e829c5284b118

See more details on using hashes here.

Supported by

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