Skip to main content

UNKNOWN

Project description

quick argument parsing

A simple concise way of defining arguments for an argparse.ArgumentParser

– Syntax –

comma separated argument definitions in the form of…

<short name>(<long name>)[<type>]=<default>

all but short name is optional if long name is undefined, long name will equal short name if short name is more than 1 character and long name is undefined than short name will be the first character of short name and long name will be short name (i.e. if ‘foo’ is provided, short name == ‘f’, long name == ‘foo’)

– Example –

import qarg ns = qarg.get(‘f(foo)[int]=1,r(bar),baz[str]’)

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

qarg-0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

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