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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: toolcli-0.6.12.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.12.tar.gz
Algorithm Hash digest
SHA256 9f1f270b9f0fce7c736b099f2faaf4f6591213ad170697f613d310405daae451
MD5 5df29fd3e686c6cd4d01cf22b6946d67
BLAKE2b-256 ba3518b6ca45841aada657f6cb45af6cb3a7b9b14d9b50967c490583d8f92ce9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: toolcli-0.6.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 9551780fdfd4d9a31a46bda97a514cd2313521405f808fb22d9011da71f32383
MD5 cd91cf6a0a5b4b181329d1cb4abc7905
BLAKE2b-256 85ad0fd706f9ed91e166f3d3578540bbfa4ad6e3fc44c9c31d6c0bcf61ca7961

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