Python Links
- pydelicious
- pydigg
- pymediawiki
- wordpress-library - python frontend to wordpress XML-RPC API
- flickrpy
- py-odftools
- hachoir-parser - package of most common file format parsers
Interesting stuff
- pyffmpeg: Python API for ffmpeg that allows for example saving movie frames as images (making thumbs)
- showdown: is a Markdown implementation in JavaScript. It can be used as a live preview or as a base of Markdown WYSIWYG editor on your Django powered site :)
- stripegenerator.com: if you need some web 2.0 strips :nice:
- editArea: a JavaScript based code editor with code highlighting for PHP, CSS, Javascript, Python, HTML, XML, VB, C, CPP, Pascal, Basic and Brainf*ck. Maybe a Admin Panel template editor? ToCheck on my list
Python and chemistry
I've been doing a lot of gas chromatography tests lately (tetrachloride carbon decomposition in pulse dielectric barrier discharge) and the chromatograph (HP) makes CH1 or CDF (ANDI/netCDF Mass Spectrometry Data Interchange format) files. And for CDFs in python we have pycdf. Here is a mass chart generator:
polib - gettext translation manager
polib is a python module for managing gettext translations. It can show untranslated string, edit *po files and much more :) polib was that what I was looking for my django application for managing translations.
mod_wsgi is here
mod_wsgi can be obtained from SVN at google code. I've compiled it on amd64 Gentoo and managed to make it run with a Django application.
Extending PyQT4 text editor
Adding more features using PyQT4 widgets
How to get a wikipedia (mediawiki) page content
This code will extract the content of any mediawiki wiki page:
from httplib import HTTPConnection
from re import findall, DOTALL
def wiki(slug):
#connect to a wikipedia (mediawiki) site (Polish)
conn = HTTPConnection("pl.wikipedia.org")
#get page by slug
conn.request('GET', '/wiki/'+slug)
r = conn.getresponse()
if str(r.status) == '200':
#extract content
tags = findall( r'<!-- start content -->(.*?)<!-- end content -->', r.read().decode('utf-8'), DOTALL)
tags = tags[0].replace('href="/wiki', 'href="http://pl.wikipedia.org/wiki').replace('href="/w/', 'href="http://pl.wikipedia.org/w/')
conn.close()
return tags
print wiki('Linux')
Pylons and nginx
How to run pylons on nginx
QYolk II - Containers
How to use a Tab Widget
Filter View in Django
How to make advanced filter view in django