Skip to main content

A command-line utility toolkit.

Project description

A library for developing command-line applications in Python.

License PyPI Version Python Versions Documentation Downloads

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.

  • Basic Logging via the logalpha package.

  • A Configuration class built on top of a 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

REFITT

Recommender Engine for Intelligent Transient Tracking

hyper-shell

Hyper-shell is an elegant, cross-platform, high-performance computing utility for processing shell commands over a distributed, asynchronous queue.

delete-cli

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.

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

cmdkit-2.0.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

cmdkit-2.0.1-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file cmdkit-2.0.1.tar.gz.

File metadata

  • Download URL: cmdkit-2.0.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for cmdkit-2.0.1.tar.gz
Algorithm Hash digest
SHA256 c4b689b0ae9e1014ed712ca9a1f2d919496890a95bdc24e0c5c3c6959127313f
MD5 9e80f995dc0687c8c5f1f1469ed4e8dd
BLAKE2b-256 6cae17656ba54ccca9b85c84b875a88b0e41deb4e8f38e6d033aa0e3f3690a80

See more details on using hashes here.

Provenance

File details

Details for the file cmdkit-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: cmdkit-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for cmdkit-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bc187c07a202936120c820e9895f2120faaebb75a480715ac9665e60ef6995b
MD5 0c2befb9bf01b5a735c8d38fbfde2f21
BLAKE2b-256 8d6f0e5c57a96b75ddf5b7dbf51162602a7dbb9eaa8ca4f48d619195f521c586

See more details on using hashes here.

Provenance

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