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/

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

File details

Details for the file Commandeer-0.1.zip.

File metadata

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

File hashes

Hashes for Commandeer-0.1.zip
Algorithm Hash digest
SHA256 9ecf3fe8c37c067188980f93a0a28180920c766cbf4af82dc8478093c4ab5efd
MD5 e422525032aeb75b1a03b73777ac545a
BLAKE2b-256 d2be8985de86952c46affaa7637a156640293774f8f5aed440eb7b5b516b350a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.1.tar.gz
Algorithm Hash digest
SHA256 746253dbdeee343e5fc45d9338554dbaae877236dacc605da4cfefa2a728ba77
MD5 b8ad4051f72dfe81ac72e0e7e06db4be
BLAKE2b-256 6d9b2439c056e6ac45c0200ec2f44b87ebcefa9d9fe1acb25bdad356491d34c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Commandeer-0.1.tar.bz2
Algorithm Hash digest
SHA256 f9e2332941412c35f58bef49605236d918d89d3849e6ca64ee1247922b3dd38a
MD5 791ea27114c4789f0fdb4bf9989f856f
BLAKE2b-256 ac0cb9efb2f431fc71832761861b7855fe6d866f0680141c87770dcf22631aac

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