A python client (library and CLI) for the Apache Guacamole front-end REST API.
Tested with python 3.10.2 and 3.6.9.
pip install guacli
guacli --help
guacli --url "https://example.com/guacamole" --user guacadmin create user james-smith
pip install --upgrade guacli
pip uninstall guacli
cd /opt
git clone https://github.com/chaimeleon-eu/guacamole-python-client.git
mv guacamole-python-client/guacli/cli.py guacamole-python-client/cli
chmod +x guacamole-python-client/cli
ln -s /opt/guacamole-python-client/cli /usr/local/bin/guacli
python -m guacli.cli --help
Test the setup.py:
pip install --log install.log .
Uninstall with:
pip uninstall guacli
REF: https://packaging.python.org/en/latest/tutorials/packaging-projects/
Requirements:
python -m pip install --upgrade build
python -m pip install --upgrade twine
Build:
cd guacamole-python-client
python -m build
ls dist
Two files are generated:
- guacli-VERSION.tar-gz is the source package
- guacli-VERSION-py3-none-any.whl is the built package
Then upload the package:
python -m twine upload dist/*
If you want to test previously, add --repository testpypi
for uploading to test.pypi.org.