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

Uploaded Source

Built Distribution

toolcli-0.4.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c713a42e66f37e69fe8e9903284992e73d6951f94759ac02126495c2541bfc85
MD5 2e7d1c1d655a39c454b5ab4e3af118c0
BLAKE2b-256 ebd2396fff0a54fe3b259b6e67cb3902a24d800541c62f851b0ec83eb7f37b4b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0132a2e2e8c1025dd044c572c2f9be69e6ff49e27d7c1b78afb49f5327859947
MD5 5c2621dc5bcfa3c6d30c440a5950f75b
BLAKE2b-256 59a738ef1d0a1e209c67aa923bb8fae272391cd838f026a5e3a67fe24d078945

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