The hub-rest-api-python provides Python bindings for Hub REST API.
Include project directory in your PYTHONPATH or add HubRestAPI.py file directly to your project tree
Using (pytest)[https://pytest.readthedocs.io/en/latest/contents.html]
git clone https://github.com/blackducksoftware/hub-rest-api-python.git cd hub-rest-api-python # optional but advisable: create/use virtualenv # you should have 3.x+, e.g. Python 3.7.0 pip install -r requirements.txt export PYTHONPATH=$(pwd) pytestClone or download from this page
Documentation for hub-rest-api-python can be found on the base project: https://github.com/blackducksoftware/hub-rest-api-python/wiki