Skip to main content

A minimal command-line interface using plugin-based architecture

Project description

Minimal command-line interface using a plugin-based architecture

This project demonstrates a minimal (but featureful) command-line interface (CLI) using a plugin-based architecture (PBA). The CLI itself is constructed using Typer.

The PBA is achieved using a combination of:

For a working plugin example, see minimal-pba-cli-plugin-example.

Installation

Install the core CLI using the following command:

$ pipx install minimal-pba-cli

Usage

List available commands using the help:

$ pba-cli --help

Plugins

List available plugins using the following command (requires a Libraries.io API key):

LIBRARIES_IO_API_KEY=<your API key> pba-cli plugin catalog

Install a plugin using the following command:

$ pba-cli plugin install <plugin name>

List installed plugins using the following command:

$ pba-cli plugin list

Install a plugin from a local directory using the following command:

$ pba-cli plugin install-local <path to plugin directory>

Uninstall a plugin using the following command:

$ pba-cli plugin uninstall <plugin name>

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

minimal_pba_cli-0.0.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minimal_pba_cli-0.0.4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file minimal_pba_cli-0.0.4.tar.gz.

File metadata

  • Download URL: minimal_pba_cli-0.0.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for minimal_pba_cli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e87f9caec713c815c2392c3103a073dc541b597a251eb3e1bfcd19aa398346a9
MD5 622f382f1e75110acd511f8824a8939a
BLAKE2b-256 52e02975aaf5206d3c240bef7b3468bce6c277cb34233dc291ce314bbdd9607e

See more details on using hashes here.

File details

Details for the file minimal_pba_cli-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for minimal_pba_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d232985efdcb9727da13359c8d2549b107c9164ca6dfe78dfd5203a89f9246df
MD5 c158aa77b5d0d7b1e3695592def53a6a
BLAKE2b-256 efdbe7496d4b07bad1d4e30f0fafe19ac5ff421fb96f2b0e73bcf41cf31a39df

See more details on using hashes here.

Supported by

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