Skip to main content

Add your description here

Project description

Open the Example in GitHub Codespaces

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 collector

This will start the docker-compose.yml environment with the collector 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labcli-0.2.0.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

labcli-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for labcli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb9d2c9c7b280b7bd9eddaad8f95d8ed03bdcbabb8725d19173ef166c95f1479
MD5 c34c5677e6ff08a2a1981ce0d9a627aa
BLAKE2b-256 4a7bab4bf3c50352a11cf67f17950e607f218de6069b76cbcbcd775113d8db8e

See more details on using hashes here.

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

Hashes for labcli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9973ae39096ba62541e6a9bfb2359dbba46ec671753072a25ee1f591a5192fa2
MD5 9fc7d28cfa6800ce47decc9f9f8596ed
BLAKE2b-256 16227f89837639bab3bf4e925e8d6d8d5ec514b255b095f25906c90b64511901

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page