Skip to main content

A command-line parser library for Python 3

Project description

Commandeer is a command-line generator library that you can use to add a nice command line interface to your python programs.

It will take care of parsing all command line options as well as calling the right command functions in your script. And it will generate a nice-looking help for the program and for each of the commands.

We've written Commandeer in such a way that it should work just like you expect it to. There are only two things you need to do:
* name the functions you want to expose on the command line to end in ``_command``.
* Add the following code snippet to the end of your command line module::

import commandeer
if __name__ == '__main__':
commandeer.cli()

You should try it out!

For more information, consult the documentation on
https://bitbucket.org/shezi/commandeer/


License information
-------------------

Copyright (C) 2012 Johannes Spielmann

Commandeer is licensed under the terms of the GNU General Public Licenses as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

For a full description of the license, please see the file

LICENSE

Project details


Download files

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

Source Distributions

Commandeer-0.1.1.zip (31.2 kB view details)

Uploaded Source

Commandeer-0.1.1.tar.gz (21.0 kB view details)

Uploaded Source

Commandeer-0.1.1.tar.bz2 (19.6 kB view details)

Uploaded Source

File details

Details for the file Commandeer-0.1.1.zip.

File metadata

  • Download URL: Commandeer-0.1.1.zip
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Commandeer-0.1.1.zip
Algorithm Hash digest
SHA256 68330beb4f8f8643cb89fa509b6e2dffc2aa1d782ac41b76fb05cce6acb329d5
MD5 271f520aa89d6876eb5ff3b648afe886
BLAKE2b-256 b714adfaa35a738fc9a154d71de858ddfcc0216fee71798e36908ca639fbe358

See more details on using hashes here.

File details

Details for the file Commandeer-0.1.1.tar.gz.

File metadata

  • Download URL: Commandeer-0.1.1.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Commandeer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 17985c86e1843f5f9b4b93c49cd228d2f558f429b1db0ac6aeb73798497af6ea
MD5 f8d5d0079621b11ca5d46bc9c144bc58
BLAKE2b-256 850bd7a22360b5734460ba3e60160f88bf492817a1390f844716024d74b1e2a2

See more details on using hashes here.

File details

Details for the file Commandeer-0.1.1.tar.bz2.

File metadata

  • Download URL: Commandeer-0.1.1.tar.bz2
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Commandeer-0.1.1.tar.bz2
Algorithm Hash digest
SHA256 1ae182392efa71ed1cad3eb78ae05efa5672081b46932a17894b491e9c7a6b86
MD5 be00c3b49fa21dff1277c87a42e86861
BLAKE2b-256 027774bc829d238c78e2d4b30f4f2106083561c063cf01de9872e28e8d9dfe71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page