Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #325

New project | quicli: write command line interfaces quickly

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <news@google.com>
X-Original-To python-announce@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.048
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'context': 0.04; 'wrapper': 0.07; 'python': 0.08; '(it': 0.09; 'description,': 0.09; 'argument': 0.15; 'argparse': 0.16; 'strong,': 0.16; 'subject:command': 0.16; 'subject:interfaces': 0.16; 'meant': 0.17; 'focuses': 0.23; 'input': 0.24; "python's": 0.24; 'tests': 0.25; "i'm": 0.27; 'function': 0.27; 'project,': 0.28; 'depends': 0.28; 'accessible': 0.29; 'module.': 0.29; 'decorators': 0.30; 'installation': 0.30; 'error': 0.32; 'values': 0.32; "isn't": 0.33; 'it.': 0.33; 'header:User-Agent:1': 0.34; 'driven': 0.34; 'subject:project': 0.34; 'header:X-Complaints-To:1': 0.35; 'object': 0.35; 'header:Received:8': 0.36; 'provide.': 0.37; 'but': 0.37; 'eager': 0.38; 'allows': 0.38; 'received:google.com': 0.38; 'subject:: ': 0.39; 'initially': 0.39; 'help': 0.39; 'header :Mime-Version:1': 0.39; 'user': 0.39; 'progress': 0.39; 'data': 0.39; 'received:74.125': 0.39; 'where': 0.40; 'to:addr:comp-lang- python-announce': 0.60; 'managers': 0.62; 'simple,': 0.64; 'visit': 0.67; 'subjectcharset:iso-8859-1': 0.70; 'features:': 0.73; 'subject:line': 0.73; 'validation': 0.73; 'to:addr:moderators.isc.org': 0.73; 'bar)': 0.84; 'subject:write': 0.84
Delivered-To comp-lang-python-announce@moderators.isc.org
X-Authentication-Warning yws13.prod.google.com: news set sender to news@google.com using -f
To comp-lang-python-announce@moderators.isc.org
From Kyle Alan Hale <dev@kylealanhale.com>
Newsgroups comp.lang.python.announce
Subject New project | quicli: write command line interfaces quickly
Date Tue, 13 Sep 2011 22:49:06 -0700 (PDT)
Organization http://groups.google.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Complaints-To groups-abuse@google.com
Injection-Info s20g2000yql.googlegroups.com; posting-host=67.182.217.125; posting-account=ooBupQoAAACgcDye_xqm9O8TyhO9BOak
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HNKUARELSC
X-HTTP-UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.5 Safari/535.2, gzip(gfe)
X-Mailman-Approved-At Wed, 14 Sep 2011 17:04:37 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Message-ID <mailman.1120.1316012679.27778.python-announce-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1316012679 news.xs4all.nl 2440 [2001:888:2000:d::a6]:51052
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python.announce:325

Show key headers only | View raw


Quicli is a wrapper around Python's built in argparse module.  While
argparse focuses on a comprehensive set of features, quicli emphasizes
a simple, easy-to-use interface, driven by function metadata and
decorators, with integrated data validation.

This isn't meant to replace argparse (it depends on it, actually) but
to enhance it. Where argparse is strong, quicli reinforces. Where
argparse is bulky, quicli is svelte.  What quicli lacks, it still
allows argparse to provide.

For usage and installation instructions, visit <http://
dev.kylealanhale.com/wiki/projects/quicli>

Features:
* Major argparse features are implemented and accessible via function
decorators
* Introspects default values for argument names and types, as well as
program name, description, and help message
* Simple validation of user input
* An extended FileType object
* The ability to restart a program on error (optionally with different
input values than were initially provided) for seamless error recovery
* Progress context managers (visual feedback helpers, including a text-
based progress bar)
* Unit tests for all of the above
* Extensive documentation

This is my first public python project, so I'm eager for feedback from
the community.

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

New project | quicli: write command line interfaces quickly Kyle Alan Hale <dev@kylealanhale.com> - 2011-09-13 22:49 -0700

csiph-web