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

Uploaded Source

Commandeer-0.2.tar.gz (21.3 kB view details)

Uploaded Source

Commandeer-0.2.tar.bz2 (19.8 kB view details)

Uploaded Source

File details

Details for the file Commandeer-0.2.zip.

File metadata

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

File hashes

Hashes for Commandeer-0.2.zip
Algorithm Hash digest
SHA256 bd10e675f671d897da10ca1d8c54fabe2c4944c0a514b7d1fc19bf69659a0d0f
MD5 be654556efc6d3761c2c187e1e2503a8
BLAKE2b-256 c9e8edf37d337db4205cb4d4b5fa091496e4a56bbbc7a438c8a7a0b445136546

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.2.tar.gz
Algorithm Hash digest
SHA256 7c8db389a34a01c76e2b1878f5a9575b44cec0f1df5892c67d287467099bbf81
MD5 524db96e8571b1866d0a1fa631e48c1c
BLAKE2b-256 28a82b1ea1b4cee56309a0661f2f6c1593739dfe8fdf62e3d16b01590111b65c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.2.tar.bz2
Algorithm Hash digest
SHA256 355e6ca92850754e3035fe86326f501738fc958afb71597d43f3d567e3580aac
MD5 6bd26d27f30839b543750b7303ce9e47
BLAKE2b-256 85b22afe0948febb6f44c452ced0a4967814b96cab84f99d9d3c47cd19de121a

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