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

Uploaded Source

Built Distribution

toolcli-0.6.11-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.11.tar.gz
Algorithm Hash digest
SHA256 18c82185e8d71b9f3f87652a304e6fd0525aeff6a6ffe55e5d894d828f015e65
MD5 33a387f4db436e67990aea2dc4789b6a
BLAKE2b-256 f2a55efa8af196295fd69941007f2755307c33d6926ed75deef9cf1f860bda36

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.11-py3-none-any.whl
Algorithm Hash digest
SHA256 fc74249d44f80a585454727b38baebebd6d6afd0a3a00a1f340ca5db83f46550
MD5 df235e7ace7ecf7b8fc0021f2a1e5e5d
BLAKE2b-256 8c1397f27585f1e8057aa9359d0033e9a1d16f85cdfa9a4ba32dd93a3e41c130

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