Skip to main content

A command-line parser library

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.2.2.zip (32.3 kB view details)

Uploaded Source

Commandeer-0.2.2.tar.gz (21.5 kB view details)

Uploaded Source

Commandeer-0.2.2.tar.bz2 (20.0 kB view details)

Uploaded Source

File details

Details for the file Commandeer-0.2.2.zip.

File metadata

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

File hashes

Hashes for Commandeer-0.2.2.zip
Algorithm Hash digest
SHA256 30650fc17e304ee08f1488bccde4ae802e2a31504ca76b6d0ada201770b6726a
MD5 e1a4476224b190210eea654e0671a15b
BLAKE2b-256 e366bba615e713eafcd4ddd29204e61dd2b5518c99d8d9c57fe5041975e4e84d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 28948955fa45ce50106442c24e3aa0148e878f1166d3a196e36598a718e7bc55
MD5 b111a66d877fb708a8f479c1dc446599
BLAKE2b-256 12c74228f77b38d9d5d355eb3a3aa6a555229a1c98d4754161e35a5e46c68f1a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.2.2.tar.bz2
Algorithm Hash digest
SHA256 6212aff7e04aaf3558b6ee72af7da6c5a9dfc0b8cded0fd14d88aa2188c0950e
MD5 34193cf4b42f0cf5a45b767146d446f1
BLAKE2b-256 b0bc27761064ff3fbf242e5f35476ecb29aea88100e6b7bc1d224e07a4d59052

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