Python equivalents of common Perl modules?

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?

+6
python perl migration
source share
2 answers

urllib2 and etree are in the standard library; the rest is easy to get.

+14
source share

DBI + DBD :: mysql

LWP :: UserAgent

WWW :: Mechanize

XML :: LibXML

HTML :: TreeBuilder

CGI :: FormBuilder

Template :: Toolkit

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 .

+15
source share

All Articles