Skip to main content

A library for developing command line utilities in Python.

License PyPI Version Python Versions Documentation Downloads

The cmdkit library implements a few common patterns needed for commandline tools 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

Checkout 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, commandline 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 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmdkit 1.5.2
File Size Uploaded
cmdkit-1.5.2.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cmdkit 1.5.2
File Interpreter ABI Platform
cmdkit-1.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 50.8 kB

Release files / cmdkit-1.5.2.tar.gz

Download URL cmdkit-1.5.2.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a75ce51278fbe3ac3470ca832d781dbb599978200b4f0a9f6657b1bbe9b24690
BLAKE2b-256 checksum
How to use checksums
489ad91a99fc818866e6fb01facc1427e44cd51bcc8ba001c0c9b8f6ba1bead3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / cmdkit-1.5.2-py3-none-any.whl

Download URL cmdkit-1.5.2-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83bd7f1d39de461821fd0f7cb67b7949392a8f52c845cac6dc6961a3da5e1eff
BLAKE2b-256 checksum
How to use checksums
7a4c63a61d4ebf8b728a5537041f46eda01885bc650d9c82f144119067ce01b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release history Release notifications | RSS feed

2.7.7

2 release files

2.7.6

2 release files

2.7.5

2 release files

2.7.4

2 release files

2.7.3

2 release files

2.7.2

2 release files

2.7.1

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

3 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.5.5

2 release files

1.5.4

2 release files

1.5.3

2 release files

This release

1.5.2 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.1.0

1 release file

1.0.1

1 release file

0.0.4

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page