Skip to main content

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")

Release files for dimclient 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dimclient 1.0.5
File Size Uploaded
dimclient-1.0.5.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dimclient 1.0.5
File Interpreter ABI Platform
dimclient-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / dimclient-1.0.5.tar.gz

Download URL dimclient-1.0.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ce12934640bdfed1b3703176e5100b1d46d03e69e914c31f7116108dc6b22dde
BLAKE2b-256 checksum
How to use checksums
f11e23a60ac8258997ed65caac717cb591426a70c60177b2e4fc47379b971059
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release files / dimclient-1.0.5-py3-none-any.whl

Download URL dimclient-1.0.5-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c534d57c3f705e90af5c94daa09091f876316c3e9206298b2fc550358f2b453a
BLAKE2b-256 checksum
How to use checksums
60da510a03ab23d0c0b178c953a35dd6f8393ed81051defef62e829c5284b118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page