dowski's projects - queryp

queryp

queryp lets you write JQuery code in Python. Probably useless, but I was bored and wrote it on a whim.

Created: 2008-10-08 | Updated: 2008-12-06 | Status: Complete | Tags: web

Description

Have you ever wanted to write JQuery code on the server side but didn't want to write it in actual JQuery and stick it in a Python string variable?

I'm going to guess not, but ...

Well, now that you know that such a thing is possible; behold, queryp (pronounced: KWerp). I would have called it pquery, but that was taken by a certain PHP project. dquery (dowski-query) was another option, but taken as well. So queryp.

Usage

from queryp import S, client, document
print S(document).ready(client.load_page)

That will print:

$(document).ready(load_page);

License

MIT

Files:

queryp.py [colorized]


Add Comment:

Commenting disabled because of spam problem...

Menu:

Home
Admin

Projects:

balloondemo
brockman
buffet
buffetmyghty
buffetstring
buffetxslt
cardinfo
cp22collection
cp22simple_ajax
cp_middleware_server
cpmyghty
excuses
iresponse
littlebrother
multiauth
phpfilter
pysourcecolorfilter
queryp
request2
simplebackend
stunnelfilter
wsgi_filter

Tags:

wireless
wsgi
myghty
templating
cherrypy
ssl
python
http
library
win32
application
ajax
module
plugins
cheetah
web
filter
kid

Powered By: