Add your description here
Project description
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
--help
flag to get more information about the commands and their options. For example, with the--profile
argument 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.yml
environment with thecollector
profile.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file labcli-0.2.0.tar.gz
.
File metadata
- Download URL: labcli-0.2.0.tar.gz
- Upload date:
- Size: 51.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9d2c9c7b280b7bd9eddaad8f95d8ed03bdcbabb8725d19173ef166c95f1479 |
|
MD5 | c34c5677e6ff08a2a1981ce0d9a627aa |
|
BLAKE2b-256 | 4a7bab4bf3c50352a11cf67f17950e607f218de6069b76cbcbcd775113d8db8e |
File details
Details for the file labcli-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: labcli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9973ae39096ba62541e6a9bfb2359dbba46ec671753072a25ee1f591a5192fa2 |
|
MD5 | 9fc7d28cfa6800ce47decc9f9f8596ed |
|
BLAKE2b-256 | 16227f89837639bab3bf4e925e8d6d8d5ec514b255b095f25906c90b64511901 |