GPyPi2 — Google Summer of Code week #6

under Gentoo, Python, Gpypi2, English, Gsoc, Portage

Greetings, following is the weekly update for gpypi2 project. It's main purpose is to generate ebuilds from Python Package Index. Quick links to project info: Repository, issue tracker Hudson CI instance Sphinx documentation generated by hudson on each commit wiki/user stories for scrum development Last two weeks were crazy at university. Now I shall have time to work on gpypi2 full-time until the end of program. Install gpypi2 $ sudo pip install ...

GPyPi2 — Google Summer of Code week #4

under Gentoo, Python, Portage, English, Gsoc, Gpypi2

Greetings, following is the weekly update for gpypi2 project. It's main purpose is to generate ebuilds from Python Package Index. Quick links to project info: Repository, issue tracker Hudson CI instance Sphinx documentation generated by hudson on each commit wiki/user stories for scrum development I'm more than happy to announce first pre-alpha prototype. Intended goal is to make people start using the tool and reporting back their critics. Install gpypi2 $ sudo ...

pickle and cStringIO

under Python, Oss, English

More of a note to myself: You just cannot (I guess because of lacking proper pickling C API support) pickle cStringIO.StringIO instances. Use StringIO.StringIO instead. ...

Small update to wbus.fubar.si

under Python, Wbus, Lpp, Pylons, English

As most of you already know, I have small wap site running to check when LPP bus is coming to a bus station in Ljubljana. Today I added name of direction for each bus. Happy puncual days! link ...

Fragmenting one big nginx config

under Python, Nginx, English

Getting lost in all glory of big nginx.conf is not that uncommon. I could not stand it anymore, so I wrote this little clever script with support of pyparsing module for Python: from pyparsing import * nginx_conf_expr = OneOrMore(Suppress(SkipTo('server' + White())) + originalTextFor(Word('server ') + nestedExpr('{', '}'))).parseWithTabs() server_name_expr = (Suppress(SkipTo('server_name' + White()) + Word('server_name') + White()) + CharsNotIn(' ;')).parseWithTabs() nginx_conf = open('nginx.conf').read() new_nginx_conf = str(nginx_conf) for server in nginx_conf_expr.parseString(nginx_conf): ...