Skip to main content

Create an argparse.ArgumentParser from function docstrings

Project description

Create an argparse.ArgumentParser from function docstrings

.. start-badges

.. list-table::
:stub-columns: 1
:widths: 10 90

* - docs
- |docs|
* - tests
- |travis| |requires| |coveralls|
* - package
- |version| |supported-versions| |supported-implementations|

.. |docs| image::
:alt: Documentation Status

.. |travis| image::
:alt: Travis

.. |coveralls| image::
:alt: Coverage

.. |requires| image::
:alt: Requirements Status

.. |version| image::
:alt: PyPI Package latest release

.. |supported-versions| image::
:alt: Supported versions

.. |supported-implementations| image::
:alt: Supported implementations

.. end-badges

Welcome! Additionally to the default behaviour of the
``argparse.ArgumentParser``, the ``funcargparse.FuncArgParser`` in this
package allows you to

1. automatically create a parser entirely from the docstring of a function,
including the `help`, `metavar`, `action`, `type` and other parameters
2. Let's you chain subparsers

There are a lot of argparse extensions out there, but through the use of the
docrep_ package, this package can extract much more information to automate
the creation of the command line utility.

See the documentation_ for more information.

.. _docrep:
.. _documentation:

Simply install it via ``pip``::

$ pip install funcargparse

Or you install it via::

$ python install

from the `source on GitHub`__.

.. _source on GitHub:

The package only requires the docrep_ package which we use under the hood to
extract the necessary parts from the docstrings.

The package has been tested for python 2.7 and 3.5.

.. _docrep:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for funcargparse, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size funcargparse-0.1.0.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page