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://gitlab.com/jspielmann/commandeer/

License information

Copyright (C) 2012, 2021 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.3.0.tar.gz (20.5 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.3.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file commandeer-0.3.0.tar.gz.

File metadata

  • Download URL: commandeer-0.3.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/5.4.0-125-generic

File hashes

Hashes for commandeer-0.3.0.tar.gz
Algorithm Hash digest
SHA256 500c13dcc936f61316cfc441ec69e9a1f0c3aeb6fa86981f99cbc34c87cf3f7d
MD5 2341bb34fac97592f40d3016e9e4d4c6
BLAKE2b-256 3cf25fb70ae20a8cc9fbe59862678cb066dc5042b6bef6d2b0b848da4c2f0e71

See more details on using hashes here.

File details

Details for the file commandeer-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: commandeer-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/5.4.0-125-generic

File hashes

Hashes for commandeer-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 199c6374e666f0e9f1b6888392130e694582b6efb754e71923fa4101e888d3da
MD5 09f0d1bdd3275bdaca76912fbbf342f5
BLAKE2b-256 7104e7561a48fff5f54d8745d5e29179ea3ddaf7ad000905af211c12ed4c3fc6

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