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

Uploaded Source

Built Distribution

toolcli-0.6.5-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.5.tar.gz
Algorithm Hash digest
SHA256 5d173daf43a15fef4f4d7c6055485096a9f1fc06a1a926b9a8e6592356b86ab4
MD5 854d2b3840466e2721f0d7d3db27a56c
BLAKE2b-256 7bb4d1b97df6b532c44e04b5252937d762a4d6dab5cc46643bfbbc72f7210d8e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0c1478d8271c58ec3031309a079036086d641fb3d3a560fee614bcab1f6e391f
MD5 b68a73e05d38b6d508ee3f482c29bbca
BLAKE2b-256 e773653ecb6d4e8f124f856569b4faf10707c401ba8995a45eb181ac4bf6e287

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