Skip to content

A Python client library for targetd - read-only mirror

License

Notifications You must be signed in to change notification settings

johanfleury/targetd-client

Repository files navigation

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.

About

A Python client library for targetd - read-only mirror

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages