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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3a55b2ae2614d629ccbc4f3778747d5bb21f4169ad9f3dcc00b4e38636a9ca4f
MD5 910aa6d7fdfce56cdc1aeab95f30cc06
BLAKE2b-256 4636cf6f9145b26c206c7f50a8bbed886b8b9266c93707abc261dc77530b8cdf

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