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
Release history Release notifications | RSS feed
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.4.0.tar.gz
(9.5 kB
view details)
File details
Details for the file targetd_client-0.4.0.tar.gz.
File metadata
- Download URL: targetd_client-0.4.0.tar.gz
- Upload date:
- Size: 9.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b17720d689aab2068f81cd17095653c9e3dea9562a637f3082ff99cba7b77e7
|
|
| MD5 |
ef63732b2686e688b7a3ac788bbb17ac
|
|
| BLAKE2b-256 |
d1e8035003e8f6170df8fbb0190ffd6e72bb10b6c7f331f1427b023aa563ba3f
|