views:

150

answers:

2

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?

+8  A: 

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

Ignacio Vazquez-Abrams
+10  A: 

DBI + DBD::mysql

LWP::UserAgent

WWW::Mechanize

XML::LibXML

HTML::TreeBuilder

CGI::FormBuilder

Template::Toolkit

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.

Matthew Rankin