LabCLI
LabCLI is a command line interface for managing lab environments. It is designed to be used as is or imported into other scripts or CLI applications.
Installation
To get started you can install the package from PyPI.
pip install labcli
Usage
To get started you can use the labcli command:
labcli --help
It comes with builtin commands to manage containerlab and docker compose environments.
labcli containerlab --help
labcli docker --help
Example
To see it in action, this repository comes with an example directory that contains a docker-compose.yml file and a containerlab directory. These have been created to demonstrate how to use labcli to manage lab environments.
To start the containerlab environment:
labcli containerlab start example/containerlab/lab.clab.yml
To start the docker compose environment:
labcli docker start --compose example/docker-compose.yml
Note: You can also use the
--helpflag to get more information about the commands and their options. For example, with the--profileargument you can spin up a docker compose environment for a specific profile of services applied to it:labcli docker start --compose example/docker-compose.yml --profile collectorThis will start the
docker-compose.ymlenvironment with thecollectorprofile.
Open in GitHub Codespaces
You can open this repository in GitHub Codespaces by clicking on the badge at the top of this README. This will open a new Codespace with the repository and the development environment already set up.
This will give you a feel of the labcli in action and how it can be used to manage lab environments.
Development
To install the development environment you need to have uv installed.
git clone https://github.com/davidban77/labcli.git
cd labcli
uv sync
This will create a virtual environment and install the required dependencies.
Metadata
Release files for labcli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| labcli-0.2.0.tar.gz | 51.6 kB | Without provenance | Details for labcli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| labcli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for labcli-0.2.0-py3-none-any.whl |
Total release size: 61.0 kB
Release files / labcli-0.2.0.tar.gz
| Download URL | labcli-0.2.0.tar.gz |
|---|---|
| Size | 51.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb9d2c9c7b280b7bd9eddaad8f95d8ed03bdcbabb8725d19173ef166c95f1479
|
|
BLAKE2b-256 checksum How to use checksums |
4a7bab4bf3c50352a11cf67f17950e607f218de6069b76cbcbcd775113d8db8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Release files / labcli-0.2.0-py3-none-any.whl
| Download URL | labcli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9973ae39096ba62541e6a9bfb2359dbba46ec671753072a25ee1f591a5192fa2
|
|
BLAKE2b-256 checksum How to use checksums |
16227f89837639bab3bf4e925e8d6d8d5ec514b255b095f25906c90b64511901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Security for labcli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.