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.
PycURL is a Python interface to libcurl, the multiprotocol file transfer library. Similarly to the urllib Python module, PycURL can be used to fetch objects identified by a URL from a Python program.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With