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

Uploaded Source

Built Distribution

toolcli-0.5.1-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a7ef0726ed951dc09fc5cdcf5263ff7cd7b5a7e46af262b80e4699c7d4e17e75
MD5 f175557f9173c9275314e92fe99d875e
BLAKE2b-256 435f4caf1208280cd41ef343c924f05424649d3134fabcb82f479db62c07b941

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc1f1dd0f0e4f6f6beeb78a64c1bd4ffc1cd197636519682f979c638f03b5716
MD5 70f6cbf334d4954ef245fc2b76ec5b87
BLAKE2b-256 756ee1ec22b354d396ebca47f3ecf6bec2200484fa7a9828b1fa36473277e21e

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