-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,684 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
CmdKit | ||
====== | ||
|
||
A library for developing command line utilities in Python. | ||
|
||
.. image:: https://img.shields.io/badge/license-Apache-blue.svg?style=flat | ||
:target: https://www.apache.org/licenses/LICENSE-2.0 | ||
:alt: License | ||
|
||
.. image:: https://img.shields.io/pypi/v/cmdkit.svg?style=flat&color=blue | ||
:target: https://pypi.org/project/cmdkit | ||
:alt: PyPI Version | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/cmdkit.svg?logo=python&logoColor=white&style=flat | ||
:target: https://pypi.org/project/cmdkit | ||
:alt: Python Versions | ||
|
||
.. image:: https://readthedocs.org/projects/cmdkit/badge/?version=latest&style=flat | ||
:target: https://cmdkit.readthedocs.io | ||
:alt: Documentation | ||
|
||
.. image:: https://pepy.tech/badge/cmdkit | ||
:target: https://pepy.tech/badge/cmdkit | ||
:alt: 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 ``~cmdkit.cli.Interface`` class for parsing commandline arguments. | ||
- An ``~cmdkit.app.Application`` class that provides the boilerplate for a good entry-point. | ||
- Basic ``~cmdkit.logging``. | ||
- A ``~cmdkit.config.Configuration`` class built on top of a ``~cmdkit.config.Namespace`` | ||
class that provides automatic depth-first merging of dictionaries from local files, | ||
as well as automatic environment variable discovery. | ||
|
||
| | ||
------------------- | ||
|
||
Installation | ||
------------ | ||
|
||
*CmdKit* is built on Python 3.7+ and can be installed using Pip. | ||
|
||
.. code-block:: none | ||
➜ pip install cmdkit | ||
| | ||
------------------- | ||
|
||
Getting Started | ||
--------------- | ||
|
||
Checkout the `Tutorial <https://cmdkit.readthedocs.io/tutorial>`_ for examples. | ||
|
||
You can also checkout how `cmdkit` is being used by other projects. | ||
|
||
======================================================== ======================================================= | ||
Project Description | ||
======================================================== ======================================================= | ||
`REFITT <https://github.com/refitt/refitt>`_ Recommender Engine for Intelligent Transient Tracking | ||
`hyper-shell <https://github.com/glentner/hyper-shell>`_ Hyper-shell is an elegant, cross-platform, high-performance | ||
computing utility for processing shell commands over a | ||
distributed, asynchronous queue. | ||
`delete-cli <https://github.com/glentner/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 <https://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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
|
||
__pkgname__ = 'cmdkit' | ||
__version__ = '1.4.0' | ||
__version__ = '1.5.0' | ||
__authors__ = 'Geoffrey Lentner' | ||
__contact__ = '<[email protected]>' | ||
__license__ = 'Apache License' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.