Reputation: 149823
I need to rewrite some Perl code in python. So I'm looking for the closest modules to what I'm using now in Perl (i.e. with similar functionality and stability):
What are the Python equivalents to these?
Upvotes: 6
Views: 3360
Reputation: 461167
Note: Items marked above as Python STL are included as part of the Python Standard Library as listed in the Python v2.6.4 documentation.
Upvotes: 15
Reputation: 798746
MySQLdb
or oursql
will work.urllib2
mechanize
etree
or lxml
BeautifulSoup
and lxml
can parse, and etree
and lxml
can generate.FormEncode
Genshi
, Jinja2
, mako
, cheetah
, and too many othersurllib2
and etree
are in the standard library; the rest are easy enough to get.
Upvotes: 14