Skip to main content


Project description

quick argument parsing

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

-- Syntax --

comma seperated list of args

<short name>(<long name>{<dest>[<type>=<default>@<action>#<nargs>$<const>

all but short name are optional
if long name is missing, short name will be used
if long name is missing, and short name has len > 1
long name will be short name and short name will be the
first character of short name


supported add_argument options
name or flags (short name & long name)
action = '@'
nargs = '#'
const = '$'
default = '='
type = '['
choices = not supported
required = '!'
help = not supported
metavar = not supported
dest = '{'

-- Example --

import qarg
ns = qarg.get('f(foo[int=1,r(bar,baz[str,p(pop@store_true')

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.2.tar.gz (4.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page