Skip to main content

SIMple OPTion parser

Project description

# simopt, the SIMple OPTion parser

Simopt is a lightweight module for parsing command line options in python programs. The options can be written in a separate file or at the top of a script. They are (currently) written in a list of tuples, with each entry corresponding to an option consisting of

  • int: the option level (allowing differentiating help levels)

  • str: the option name (command line)

  • str: the option target (option class attribute)

  • class: the option unit type (parser)

  • int: the number of parameters for the option

  • object: the default value (None if no default)

  • int: flags (MULTI, MANDATORY, …)

  • str: description (help text)

String items in the option list are part of the help and allow sectioning options.

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

simopt-0.2.dev0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

simopt-0.2.dev0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page