--- id: pycurl version: "7.47.0" license: LGPL-2.1-only OR MIT license_treatment: unclear maintenance: active --- # pycurl — PycURL -- A Python Interface To The cURL library License: unclear · Maintenance: active · Downloads: 5.8M/mo ## What it is and what it does PycURL is a thin Python wrapper around libcurl, the multiprotocol file transfer library. It exposes most of libcurl's functionality to Python, allowing you to fetch URLs and transfer files with fine-grained control over SSL, authentication, proxies, and network behavior. Unlike higher-level libraries, PycURL gives you direct access to libcurl's callbacks and socket interfaces, making it suitable for integration into custom I/O loops and applications that need low-level network control. The package is production-stable and actively maintained, supporting Python 3.10 through 3.14. It requires libcurl 7.19.0 or better on the system and has no Python runtime dependencies. Prebuilt wheels are available for common platforms, though the compiled C bindings mean installation requires a working C compiler or prebuilt binary for your platform. Use it for: - High-performance HTTP and file transfer operations where speed is critical and you need direct control over protocol details. - Integrating network operations into event-driven applications (e.g., Tornado) via PycURL's socket interface and Multi interface. - Implementing complex authentication, SSL certificate handling, and proxy configurations that require libcurl's full feature set. - Building applications that need simultaneous downloads or uploads using libcurl's Multi interface for concurrent transfers. - Scenarios requiring callback-based request/response handling or custom I/O loop integration. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PycURL is a Python wrapper around libcurl that enables fetching URLs and performing multiprotocol file transfers with direct access to most of libcurl's functionality, including SSL, authentication, proxies, and callback support. Yes, if you need low-level control over HTTP/file transfer operations or are integrating into an event-driven I/O loop. The compiled dependency on libcurl and medium install friction make it less suitable for simple use cases where requests or urllib would suffice. Verify that libcurl 7.19.0+ is available on your target systems and that the dual LGPL/MIT license aligns with your project before committing. ## Install pip install pycurl uv add pycurl poetry add pycurl ## Installing pycurl Before you install: Medium install friction due to compiled C bindings to libcurl; prebuilt wheels are available for Python 3.10–3.14 on Windows, macOS, and Linux, but the package requires libcurl 7.19.0 or better to be present on the system. Last release was 46 days ago and the repository is actively maintained. License in practice: Dual licensed under LGPL-2.1-only and MIT; license treatment is marked unclear, so review the COPYING-LGPL and COPYING-MIT files in the source distribution to confirm compliance with your project's license policy. Quickstart: import pycurl from io import BytesIO buffer = BytesIO() curl = pycurl.Curl() curl.setopt(pycurl.URL, 'http://example.com') curl.setopt(pycurl.WRITEDATA, buffer) curl.perform() curl.close() libcurl 7.19.0 or better must be installed on the system; Python 3.10 or later is required. Verify before relying: - Whether the performance advantage over requests (mentioned in the description) remains significant in current versions. - Specific guidance on when to choose PycURL's Multi/share interfaces versus simpler alternatives for concurrent operations. ## Package facts - License: LGPL-2.1-only OR MIT (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 5.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags curl wrapper python, http file transfer library, libcurl python interface, multiprotocol url fetch, fast http requests, ssl authentication proxy, network socket integration, http-client, libcurl-binding, async-io [View on SkillFed](https://skillfed.io/packages/pycurl) · [View on PyPI](https://pypi.org/project/pycurl/)