Newbie question: Python 2.6, Ubuntu 10.04, I can import both pycurl
and curl
, the former having different names for functions (set_option
vs. setopt
).
What's the difference between the two modules?
Newbie question: Python 2.6, Ubuntu 10.04, I can import both pycurl
and curl
, the former having different names for functions (set_option
vs. setopt
).
What's the difference between the two modules?
curl
is a module which uses pycurl
. It provides the curl.Curl
class which provides a high-level interface to the pycurl functions.
I haven't found much documentation on how to use it, but reading /usr/share/pyshared/curl/__init__.py
may make it pretty self-obvious.
There are also some examples in /usr/share/doc/python-pycurl/examples
which use curl.Curl
.