mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Wording and line wraps for scenarios/cli.
This commit is contained in:
+17
-15
@@ -8,15 +8,15 @@ Clint
|
|||||||
|
|
||||||
`clint <https://pypi.python.org/pypi/clint/>`_ is a Python module which is
|
`clint <https://pypi.python.org/pypi/clint/>`_ is a Python module which is
|
||||||
filled with very useful tools for developing command-line applications.
|
filled with very useful tools for developing command-line applications.
|
||||||
It supports features such as; CLI Colors and Indents, Simple and Powerful
|
It supports features such as; CLI colors and indents, simple and powerful
|
||||||
Column Printer, Iterator based progress bar and Implicit argument handling.
|
column printer, iterator based progress bars and implicit argument handling.
|
||||||
|
|
||||||
Click
|
Click
|
||||||
-----
|
-----
|
||||||
|
|
||||||
`click <http://click.pocoo.org/>`_ is an upcoming Python package for creating
|
`click <http://click.pocoo.org/>`_ is an upcoming Python package for creating
|
||||||
command-line interfaces in a composable way with as little amount of code as
|
command-line interfaces in a composable way with as little code as
|
||||||
necessary. It’s the “Command-line Interface Creation Kit”. It’s highly
|
possible. This “Command-line Interface Creation Kit” is highly
|
||||||
configurable but comes with good defaults out of the box.
|
configurable but comes with good defaults out of the box.
|
||||||
|
|
||||||
docopt
|
docopt
|
||||||
@@ -29,18 +29,20 @@ POSIX-style usage instructions.
|
|||||||
Plac
|
Plac
|
||||||
------
|
------
|
||||||
|
|
||||||
`Plac <https://pypi.python.org/pypi/plac>`_ is a Python module that allows developing command-line applications. In fact
|
`Plac <https://pypi.python.org/pypi/plac>`_ is a simple wrapper
|
||||||
plac is a simple wrapper over the Python standard library `argparse <http://docs.python.org/2/library/argparse.html>`_, it hides most of its
|
over the Python standard library `argparse <http://docs.python.org/2/library/argparse.html>`_,
|
||||||
complexity by using a declarative interface: the argument parser is inferred
|
which hides most of its complexity by using a declarative interface: the
|
||||||
rather than written down by imperatively. It is targetting especially unsophisticated
|
argument parser is inferred rather than written down by imperatively. This
|
||||||
users, programmers, sys-admins, scientists and in general people writing throw-away
|
module targets especially unsophisticated users, programmers, sys-admins,
|
||||||
scripts for themselves, choosing the command-line interface because it is quick
|
scientists and in general people writing throw-away scripts for themselves,
|
||||||
and simple.
|
who choose to create a command-line interface because it is quick and simple.
|
||||||
|
|
||||||
Cliff
|
Cliff
|
||||||
------
|
------
|
||||||
|
|
||||||
`Cliff <https://cliff.readthedocs.org/en/latest>`_ is a framework for building command-line programs.
|
`Cliff <https://cliff.readthedocs.org/en/latest>`_ is a framework for
|
||||||
It uses setuptools entry points to provide subcommands, output formatters, and other extensions. The framework
|
building command-line programs. It uses setuptools entry points to provide
|
||||||
is meant to be used to create multi-level commands such as subversion and git, where the main program handles
|
subcommands, output formatters, and other extensions. The framework is meant
|
||||||
some basic argument parsing and then invokes a sub-command to do the work.
|
to be used to create multi-level commands such as subversion and git, where
|
||||||
|
the main program handles some basic argument parsing and then invokes a
|
||||||
|
sub-command to do the work.
|
||||||
|
|||||||
Reference in New Issue
Block a user