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 Distribution

Commandeer-0.2.3.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Commandeer-0.2.3.linux-x86_64.tar.gz (18.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.2.3.tar.gz
Algorithm Hash digest
SHA256 910178dca75af193788f2970cabf9bcc01cf09b166c5ce019c47d51068cfbdb7
MD5 af64a72e5f0513347a4db34056f18eb7
BLAKE2b-256 9063abd2d06fed263105d2d2fabb24f4354aa4a66aace69e5553780511c68234

See more details on using hashes here.

File details

Details for the file Commandeer-0.2.3.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for Commandeer-0.2.3.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 e2d1501d4c55e9eb02ef357e6900a3ead1aafe4d474c43a4e0eba974c27081a3
MD5 df52443df182bf9f621158b7af0c3b1d
BLAKE2b-256 36345c1edacb61eed010b06e5f4ca5d15b2aec86730986c7ad21314f38a5f8c5

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