[lxml-dev] Use cssselect.py in Pyxer
Dirk Holtwick
dirk.holtwick at gmail.com
Sun Oct 5 16:22:33 CEST 2008
Hi,
I thought I answer your mail when I really used it and today it is
completed ;)
Pyxer now offers a small template language that is quite similar to
Genshi but works on Google App Engine. The CSSSelector routine makes
accessing certain parts of the document much easer. Thanks a lot for
this useful peace of code!
Download: http://pypi.python.org/pypi/pyxer/0.6.0
BTW: Ian, my work started with your great tutorial "Another
Do-It-Yourself Framework", that was a little treasure of ideas ;)
http://pythonpaste.org/webob/do-it-yourself.html
Dirk
Ian Bicking schrieb:
> Dirk Holtwick wrote:
>> Hi,
>>
>> I wrote (yet another) templating language for Python based on Genshi,
>> since Genshi itself does not yet work on Google App Engine (GAE).
>> Since Genshi supports XPath I was thinking about using your
>> cssselect.py module together with it. First tests showed that this
>> seems to work fine.
>>
>> Now I would like to ship a little bit modified version of cssselect.py
>> with this new templating language called "Pyxer"
>>
>> http://code.google.com/p/pyxer/
>>
>> so the users do not have to install the whole lxml package (which does
>> not work with GAE anyways I suppose).
>>
>> Since Python "lxml" is under the BSD license and Pyxer under MIT
>> license I think this should not be such a big problem as long as I add
>> your copyright notices to the file. Am I right?
>
> Of course! That's open source in action ;)
>
> You might also find that the intermediate representation for CSS
> expressions could be turned into a Genshi filter/selector/whatever-it-is
> of some sort. Currently there's the objects in cssselect with .xpath()
> methods -- you could augment them with a .match(markup_obj) method or
> something along those lines. Anyway, it might be a useful way to speed
> it up later.
>
More information about the lxml-dev
mailing list