[Python-Dev] Proposed standard module: Optik (original) (raw)

Greg Ward gward@python.net
Mon, 11 Feb 2002 15:37:16 -0500


--TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline

On 11 February 2002, I said:

A good starting point for modules that compete with Optik can be found in "User Interfaces" section of the Vaults of Parnassus:

http://www.vex.net/parnassus/apyllo.py/808292924

OK, I've looked at all the option-parsing packages listed in Parnassus. I've read the docs for all of them, and flipped through the source for some of them. Here's the executive summary:

I think arglist.py is the only serious contender here. Based on my cursory inspection, all of the others have rather deep flaws. (Eg. they implement a non-standard syntax, or they do all their work at import time rather than providing a class to instantiate and do option-parsing work, or they have painful/awkward/hairy programming interface.)

I'll attach my full notes. Anyone else who feels like doing this should start at the bottom of the list on Parnassus, since I devoted progressively less time and energy to each package along the way. ;-)

    Greg

-- Greg Ward - geek gward@python.net http://starship.python.net/~gward/ Save energy: be apathetic.

--TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="competition.txt"

THE COMPETITION

arglist.py (Feb 2002) author: Ben Wolfson <rumjuggler@cryptarchy.org> url: http://home.uchicago.edu/~wolfson/Python/

Cmdline (1.0) author: Daniel Gindikin <dan@netrics.com> url: http://members.home.com/gindikin/dev/python/cmdline/

Getargs (1.3) author: ? (Ivan Van Laningham?) url: http://www.pauahtun.org/ftp.html

GetPot Python author: Frank-Rene Schaefer url: http://getpot.sourceforge.net/

Options author: Tim Colles <timc@dai.ed.ac.uk> Johan Vromans <jvromans@squirrel.nl>

--TB36FDmn/VVEgNH/--