I need to rewrite some Perl code in python. Therefore, I am looking for the closest modules to what I am currently using in Perl (i.e., with similar functionality and stability):
What are the Python equivalents for them?
MySQLdb
oursql
urllib2
mechanize
etree
lxml
BeautifulSoup
FormEncode
Genshi
Jinja2
mako
cheetah
urllib2 and etree are in the standard library; the rest is easy to get.
Note. Elements marked as Python STL above are included as part of the Python standard library, as described in the Python v2.6.4 documentation .