Skip to main content

A command-line utility toolkit for Python.

Project description

A library for developing command-line applications in Python.

License PyPI Version Python Versions Documentation Downloads 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.

  • 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

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

Uploaded Source

Built Distribution

cmdkit-2.2.3-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmdkit-2.2.3.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using 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.57.0 CPython/3.9.1

File hashes

Hashes for cmdkit-2.2.3.tar.gz
Algorithm Hash digest
SHA256 3cf022dfc9a503a6f61fe4e58aed64227c7f5472ca78ccc118885bee69b39d1a
MD5 a8b0646c06e637e84fae87601fcd64e6
BLAKE2b-256 270aaff5722228eba934d7ce66cade777cb803d5cccd43851b63959db069db16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmdkit-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using 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.57.0 CPython/3.9.1

File hashes

Hashes for cmdkit-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a994f782a0daa8db16732e9772ba8cac7a873515d964c86ff967a3dec364cb8d
MD5 f4e64dc66f9f177ee0bf672acad3a6f9
BLAKE2b-256 90af5818210096646fbca110e693c653981b7c7aa145717964e0ef81a42a180f

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