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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b119eb28db6d72bd4e1b3a08d65357cbfaaf19427048722df1f9a745a2acc038
MD5 ec71d8e45ecab8a4dc0109c5d1a5bba6
BLAKE2b-256 56154184fc8c1404d9d4f6ee8f4067bc11a96cfc5c4b9c8d54b0dab9593003c8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1aac17d89302b0d5187a5c3a6e7e6b75d0d3300585cd2f01e583ae918addd0
MD5 5587bc26d156f59918b8fe68933e097f
BLAKE2b-256 30532cad851ee956af30a44a582976a538908a2e6ac41ce254ddedfcaeba0de8

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