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

Uploaded Source

Built Distribution

toolcli-0.6.2-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.2.tar.gz
Algorithm Hash digest
SHA256 ed7197107d6e09d70f305f5befbb46498202039b61eab9802c10401a18b01172
MD5 b93065fe4aa69d3a58bb30d0bee7819f
BLAKE2b-256 b81ce28ba002826569946915dbbed727ca8f85880b1f15300fe1023c0f156d25

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for toolcli-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77a577a08d4b067beed1e2f7b069fec4f46b7fe02f29e08878cfad82dc3afb88
MD5 f9d9ae4e3acc8fd3c0a9bec5e8350c84
BLAKE2b-256 040c061daa9490f8049f58b245b91ce4f8ba7a148db2552d69bcb97e1801037d

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