types-pycurl
Typing stubs for pycurl
What it is and what it does
types-pycurl is a type stub package that supplies static type information for pycurl, the Python binding to libcurl. It allows type checkers like mypy and pyright to understand and validate code that uses pycurl's HTTP client APIs. The stubs are maintained as part of the typeshed project and are tested against mypy 2.1.0 and pyright 1.1.411.
This package contains no runtime code—it is purely metadata for type checkers. Installing it alongside pycurl enables developers to catch type errors during development rather than at runtime. The stubs target pycurl version 7.47.0 specifically, so they are most accurate when used with that version or compatible releases.
Use it for:
- Enable mypy or pyright to type-check code that calls pycurl HTTP methods and options.
- Catch type mismatches in pycurl configuration before running integration tests.
- Provide IDE autocomplete and inline documentation for pycurl APIs in editors that support type hints.
- Validate that callback functions passed to pycurl have the correct signatures.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the pycurl HTTP client library, enabling static type checking of pycurl code with mypy, pyright, and other type checkers.
Yes, if you use pycurl and want static type checking. Install it alongside pycurl to enable mypy or pyright to validate your code. No runtime cost, low friction, and maintained by typeshed. Only caveat: stubs are pinned to pycurl 7.47.0, so verify compatibility with your pycurl version.
Install
types-pycurl on PyPI
pip
pip install types-pycurluv
uv add types-pycurlpoetry
poetry add types-pycurlInstalling types-pycurl
Before you install
Low friction: a pure-Python stub package with no runtime dependencies. Maintained as part of the typeshed project with active updates; last release 42 days ago.
License in practice
Apache-2.0 permissive license; no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install types-pycurl
# In your code, import pycurl normally; type checkers will use the stubs:
import pycurl
c = pycurl.Curl()
# mypy or pyright will now type-check your pycurl calls
Requires Python 3.10 or later. The actual pycurl package must be installed separately for runtime use.
Verify before relying
- Whether the stubs remain accurate as pycurl evolves beyond version 7.47.0
- Coverage completeness for all pycurl APIs and edge cases
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 42 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 783,926/month — #5,073 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pycurl-7.47.0.20260703-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-httplib2Provides type stubs for the httplib2 HTTP…
permissive · top 5,000 on PyPI
types-pyserialProvides type hints for the pyserial library,…
permissive · top 5,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-python-http-clientProvides type hints for python-http-client,…
permissive · top 15,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-uWSGIProvides type hints for the uWSGI Python API,…
permissive · top 15,000 on PyPI
pycurlPycURL is a Python wrapper around libcurl that…
unclear · top 5,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-pynputProvides type hints for the pynput library,…
permissive · top 15,000 on PyPI