5
python-tuskarclient is a Python client for `Tuskar <https://github.com/stackforge/tuskar>`_, which also implements a command-line interface.
13
$ git clone git@github.com:tuskar/python-tuskarclient.git
15
Then, use ``tox`` to set up a virtual environment and run tests::
17
$ cd python-tuskarclient
20
When this is done, activate your virtual environment::
22
$ source .tox/py27/bin/activate
24
Finally, use this script to build the wrapper script in your virtual environment for the CLI tools::
26
$ python setup.py develop
32
For using ``python-tuskarclient`` within a Python application,
33
`this wiki page <https://github.com/tuskar/python-tuskarclient/wiki/Usage>`_ provides
34
the most complete documentation.
39
On the command line, ``python-tuskarclient`` implements the ``tuskar`` command.
41
First, be sure to run all of the steps in the Getting Started section, above, and that you have not deactivated your virtual environment.
43
Then, export these two environment variables, customizing them if necessary::
45
$ export OS_AUTH_TOKEN=nopass
46
$ export TUSKAR_URL=http://localhost:6385/
48
(Note that 'nopass' is the correct value in a default setup with no authentication.)
50
Now you may interact with Tuskar by using the ``tuskar`` command. ``tuskar --help`` with list full usage details. You can use ``tuskar rack-list`` as an example.
b'\\ No newline at end of file'