Ready-to-go Python API client environment for Layered Insight Witness & Control
548
This is a collection of python scripts leveraging our Swagger library to interact with the LI Witness/Control API server. They're intended to be an example of what's possible, and a starting point...
We're fans of not polluting our systems to install python libraries. Virtualenv helps with this:
pip install virtualenv
cd to this source directory, or wherever you want to store a virtual environment and initialize a new virtual Python environment with...
virtualenv venv
. venv/bin/activate
Now any libraries you install with pip will be local to this environment, accessible only after sourcing venv/bin/activate
From this source directory, run
pip install layint-runtime-api
pip install -r requirements.txt
export LI_API_KEY=ApiKey:demo:setanapikey
export LI_API_HOST=http://localhost/v0.01
li_add_registry --name test2 --url=internal-registry.corp --type dtr --verbose
Content type
Image
Digest
Size
66.1 MB
Last updated
about 8 years ago
docker pull layeredinsight/runtime-python-client