Re: Hierarchical commnd line parsing / help texts

2011-09-28 Thread Michele Simionato
plac is based on argparser and it is intended to be much easier to use. See http://plac.googlecode.com/hg/doc/plac.html Here is an example of usage. $ cat vcs.py class VCS(object): "A fictitious version control tool" commands = ['checkout', 'commit'] def checkout(self, url): r

Re: Hierarchical commnd line parsing / help texts

2011-09-26 Thread Ian Kelly
On Mon, Sep 26, 2011 at 2:11 PM, Tim Chase wrote: > On 09/26/11 13:57, Prasad, Ramit wrote: >>> >>> It seems it's time to start reading about argparse >> >> FYI, it only appears on Python 2.7+ > > However I believe it can be uneventfully copied and run under several > versions earlier (likely back

Re: Hierarchical commnd line parsing / help texts

2011-09-26 Thread Tim Chase
On 09/26/11 13:57, Prasad, Ramit wrote: It seems it's time to start reading about argparse FYI, it only appears on Python 2.7+ However I believe it can be uneventfully copied and run under several versions earlier (likely back to 2.5, perhaps to 2.4 -- I no longer have 2.4 at my fingertips t

Re: Hierarchical commnd line parsing / help texts

2011-09-26 Thread Paul Rudin
"Prasad, Ramit" writes: > This email is confidential... Probably a bad idea to post it to a world readable mailing list then :) -- http://mail.python.org/mailman/listinfo/python-list

RE: Hierarchical commnd line parsing / help texts

2011-09-26 Thread Prasad, Ramit
> It seems it's time to start reading about argparse FYI, it only appears on Python 2.7+ Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This email is confidential and subject to important disclaimers

Re: Hierarchical commnd line parsing / help texts

2011-09-26 Thread Gelonida N
On 09/26/2011 11:10 AM, Chris Rebert wrote: > On Mon, Sep 26, 2011 at 1:55 AM, Gelonida N wrote: >> Hi, >> >> So far I used optparse.OptionParser for parsing command line arguments >> for my python scripts. So far I was happy, with a one level approach, >> where I get only one help text >> >> Now

Re: Hierarchical commnd line parsing / help texts

2011-09-26 Thread Chris Rebert
On Mon, Sep 26, 2011 at 1:55 AM, Gelonida N wrote: > Hi, > > So far I used optparse.OptionParser for parsing command line arguments > for my python scripts. So far I was happy, with a one level approach, > where I get only one help text > > Now I'd like to create a slightly different python script

Hierarchical commnd line parsing / help texts

2011-09-26 Thread Gelonida N
Hi, So far I used optparse.OptionParser for parsing command line arguments for my python scripts. So far I was happy, with a one level approach, where I get only one help text Now I'd like to create a slightly different python script and wondered which approach / module might be best for implemen

Re: A little complex usage of Beautiful Soup Parsing Help!

2011-07-21 Thread Thomas 'PointedEars' Lahn
SAKTHEESH wrote: > I am using Beautiful Soup to parse a html to find all text that is Not > contained inside any anchor elements > > I came up with this code which finds all links within href _anchors_ _with_ `href' _attribute_ (commonly: links.) > but not the other way around. What would tha

A little complex usage of Beautiful Soup Parsing Help!

2011-07-20 Thread SAKTHEESH
I am using Beautiful Soup to parse a html to find all text that is Not contained inside any anchor elements I came up with this code which finds all links within href but not the other way around. How can I modify this code to get only plain text using Beautiful Soup, so that I can do some find a

Re: Parsing Help

2007-07-10 Thread Gabriel Genellina
En Tue, 10 Jul 2007 11:32:48 -0300, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> escribió: > I'm looking for some help building a function which can parse some XML > for > me using ElementTree. The document is of a very consistent format and > I've > copied an example of the document belo

Parsing Help

2007-07-10 Thread Robert Rawlins - Think Blue
Hello Guys, I'm looking for some help building a function which can parse some XML for me using ElementTree. The document is of a very consistent format and I've copied an example of the document below.

XML Parsing Help,

2007-06-29 Thread Robert Rawlins - Think Blue
Hello Chaps, I'm looking for some help with XML parsing, I've been playing around with this over the past few days and the only solution I can come up with seems to be a little slow and also leaves what I think is a memory leak in my application, which causes all kinds of problems. I have