pycurl
PycURL -- A Python Interface To The cURL library
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- libcurl 7.19.0 or better must be installed on the system; Python 3.10 or later is required.
- 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 · maintenance · safety
LGPL-2.1-only OR MIT (unclear) — 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.
last release 2026-06-29 (46 days) · last repo commit 2026-08-14 · 1,166 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,823,032 downloads/mo, #2,031 on PyPI
Alternatives
Verify before relying
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()- 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.
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 on this page. Verify before relying on it.
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
pycurl on PyPI
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.
libcurl 7.19.0 or better must be installed on the system; Python 3.10 or later is required.
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()
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 the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 46 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,823,032 / month, #2,031 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Free Threading :: 1 - UnstableTopic :: Internet :: File Transfer Protocol (FTP)Topic :: Internet :: WWW/HTTP |
Evidence: pycurl-7.47.0-cp310-cp310-macosx_10_9_x86_64.whl; pycurl-7.47.0-cp310-cp310-macosx_11_0_arm64.whl; pycurl-7.47.0-cp310-cp310-manylinux_2_28_aarch64.whl; pycurl-7.47.0-cp310-cp310-manylinux_2_28_x86_64.whl; pycurl-7.47.0-cp310-cp310-win_amd64.whl; pycurl-7.47.0-cp310-cp310-win_arm64.whl; pycurl-7.47.0-cp311-cp311-macosx_10_9_x86_64.whl; pycurl-7.47.0-cp311-cp311-macosx_11_0_arm64.whl; pycurl-7.47.0-cp311-cp311-manylinux_2_28_aarch64.whl; pycurl-7.47.0-cp311-cp311-manylinux_2_28_x86_64.whl; pycurl-7.47.0-cp311-cp311-win_amd64.whl; pycurl-7.47.0-cp311-cp311-win_arm64.whl; pycurl-7.47.0-cp312-cp312-macosx_10_13_x86_64.whl; pycurl-7.47.0-cp312-cp312-macosx_11_0_arm64.whl; pycurl-7.47.0-cp312-cp312-manylinux_2_28_aarch64.whl; pycurl-7.47.0-cp312-cp312-manylinux_2_28_x86_64.whl; pycurl-7.47.0-cp312-cp312-win_amd64.whl; pycurl-7.47.0-cp312-cp312-win_arm64.whl; pycurl-7.47.0-cp313-cp313-macosx_10_13_x86_64.whl; pycurl-7.47.0-cp313-cp313-macosx_11_0_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “http file transfer library”
- pycurlPycURL is a Python wrapper around libcurl that enables fetching URLs…
- globus-sdkProvides a Python interface to Globus APIs for managing data…
- files-comPython client library for the Files.com API, enabling programmatic…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also dbs3-pycurl · curl-cffi · urllib3 · types-pycurl · PySocks · opentelemetry-instrumentation-urllib · genie.libs.filetransferutils · ndg-httpsclient · multiurl · ftputil