CmdKit
A library for developing command-line applications in Python.
The cmdkit library implements a few common patterns needed by well-formed command-line applications in Python. It only touches a few concepts but it implements them well. The idea is to reduce the boilerplate needed to get a full featured CLI off the ground. Applications developed using cmdkit are easy to implement, easy to maintain, and easy to understand.
Features
An Interface class for parsing command-line arguments.
An Application class that provides the boilerplate for a good entry-point.
A Configuration class built on top of a recursive Namespace class that provides automatic depth-first merging of dictionaries from local files, as well as automatic environment variable discovery and type-coercion.
Installation
CmdKit is built on Python 3.7+ and can be installed using Pip.
➜ pip install cmdkit
Getting Started
See the Tutorial for examples.
You can also checkout how cmdkit is being used by other projects.
Project |
Description |
|---|---|
Recommender Engine for Intelligent Transient Tracking |
|
Hyper-shell is an elegant, cross-platform, high-performance computing utility for processing shell commands over a distributed, asynchronous queue. |
|
A simple, cross-platform, command-line move-to-trash. |
Documentation
Documentation for getting started, the API, and common recipes are available at cmdkit.readthedocs.io.
Contributions
Contributions are welcome in the form of suggestions for additional features, pull requests with new features or bug fixes, etc. If you find bugs or have questions, open an Issue here. If and when the project grows, a code of conduct will be provided along side a more comprehensive set of guidelines for contributing; until then, just be nice.
Metadata
Release files for cmdkit 2.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmdkit-2.2.2.tar.gz | 21.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cmdkit-2.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.0 kB
Release files / cmdkit-2.2.2.tar.gz
| Download URL | cmdkit-2.2.2.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb370affabc652534499ad8be7a14e82195b2db4394dc91b83df4138dce21149
|
|
BLAKE2b-256 checksum How to use checksums |
fdad5c5d4723d8a4d5ea75949cf97e4a0bf81cff2aad0d554cc278064ab550e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|
Release files / cmdkit-2.2.2-py3-none-any.whl
| Download URL | cmdkit-2.2.2-py3-none-any.whl |
|---|---|
| Size | 29.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
476127a2e672957645d58599fd03a93f7ea9b000d717ee1baacad13b30984e8b
|
|
BLAKE2b-256 checksum How to use checksums |
c765d8b69b95c5f37123495ce4d6b83e0f27a77c8a4da21c00eceaac61342dd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1
|