Skip to main content

toolcli makes it easy to create structured hierarchical cli tools

Project description

toolcli

toolcli makes it simple to create modular command line interfaces

the main usecase for toolcli is allowing many cli subcommands to be defined across many files in a performant way

toolcli uses argparse under the hood, making it easy to transition from argparse to toolcli when a project is ready to scale to multiple subcommands or multiple files

Features

  • lazy loading of files for fast startup times
  • is agnostic to synchronous functions or async functions
  • uses rich for colorized help output
  • uses argparse under the hood for parsing arguments
  • no user-facing objects, just simple functions
  • built-in support for common subcommands like help, cd, and version
  • can use middleware before and/or after main command execution (e.g. for logging or additional context injection)

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

toolcli-0.6.1.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

toolcli-0.6.1-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file toolcli-0.6.1.tar.gz.

File metadata

  • Download URL: toolcli-0.6.1.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for toolcli-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b383e8f746f862eb527e232e2555211265d28730f9a6c6354a708d80ff9aba15
MD5 ed6ada1fd3dab7c8a98a7a1ba0e8f507
BLAKE2b-256 a6ec9080180f230848c0413b18a66c7a0ec57a39f67b5664781a151ee516491e

See more details on using hashes here.

File details

Details for the file toolcli-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: toolcli-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for toolcli-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdd5700dd102a501d4e153195db615c0a3710f8e9f16c2f92a3e93e0ec98a01f
MD5 1cebf4af5c58fd3f3e2acc22736ec7c5
BLAKE2b-256 2e6e05d643d709b5febf004d2c0ef08acc75d7e332db97056ecd1b12f3e0bb64

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