Python bindings for libcurl using Cython and scikit-build.
This project provides Python bindings for the libcurl library, enabling HTTP client capabilities in Python with native performance through Cython integration.
Note: This project is not just for Python developers! C++ developers can also use the pre-built libcurl library included in this package instead of building libcurl from source.
- Python bindings for libcurl HTTP client
- Built with Cython for optimal performance
- CMake integration via scikit-build
- Support for HTTP/HTTPS protocols
- Test-driven development approach
pip install cylibcurlFor the latest development version:
pip install git+https://github.com/MohammadRaziei/cylibcurl.gitfrom cylibcurl import curl
# Create a curl instance
c = curl.Curl()
# Perform a GET request
response = c.get("https://httpbin.org/get")
print(response.status_code)
print(response.text)
# Perform a POST request
response = c.post("https://httpbin.org/post", data={"key": "value"})
print(response.json())Run tests:
pytest -n autoMIT License