Eugene Yarmash
Eugene Yarmash

Reputation: 149823

Python equivalents of the common Perl modules?

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

Answers (2)

Matthew Rankin
Matthew Rankin

Reputation: 461167

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.

Upvotes: 15

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798746

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

Upvotes: 14

Related Questions