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.10.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

toolcli-0.6.10-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.10.tar.gz
Algorithm Hash digest
SHA256 a143249422dee5901342f87abf9d88fcbbbce379cf0a123fb9b7234a92f24898
MD5 c484a49ddb90f4fb9444a2741dea44ae
BLAKE2b-256 581964cdcf8a3ef0e6fdb4b568e04ccf7b7e09baa182924416836385e40c91fd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd774e8f6f0cae030edbf36b21d3902da7ffb5c1e2355485d7a1877f3a14839
MD5 81fac8c37ade07659ad9654ec2868b0a
BLAKE2b-256 5839a0f66c7ea2a4207ecfdd5bd7c5991b2239f8ab1476748d31eb6779ebeb46

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