Skip to main content

A client library for targetd

Project description

targetd-client

targetd-client is a client library for the targetd API.

Usage

targetd-client is available on PyPI:

$ python -m pip install targetd-client

Using the library is pretty simple:

>>> from targetd_client import TargetdClient
>>> targetd = TargetdClient("https://example.com:18700", "username", "password")
>>> pool_list = targetd.pool_list()
>>> vol_list = targetd.vol_list(pool_list[0]["name"])
>>> ...

targetdctl

This projects also ships with the targetdctl CLI utility. To use it, you must first install its dependencies:

$ pip install targetd-client[cli]

Use targetdctl --help to get the list of command lines arguments.

Contributing

This library is Free Software and every contributions are welcome.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

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

targetd_client-0.5.0.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file targetd_client-0.5.0.tar.gz.

File metadata

  • Download URL: targetd_client-0.5.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1+

File hashes

Hashes for targetd_client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2fa0f7d52e7dea8a35ed5f8156b523e102a50c581f12ae43b96323168f8a3d5e
MD5 362975f2a7a20315e928fcc29a940e00
BLAKE2b-256 dc8d1243af5cdb1b325015a5b66ea89f577fee35ac5ee0947551f67a268f5316

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