Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

UNKNOWN

Project Description
quick argument parsing

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

-- Syntax --


comma seperated list of args

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

examples:
f(foo)[int]=10
f[int]=10

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')

Release History

Release History

This version
History Node

0.2

History Node

0.1

History Node

dev

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
qarg-0.2.tar.gz (4.5 kB) Copy SHA256 Checksum SHA256 Source Jan 23, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting