This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.17.0 instead.
Python Curl CFFI
CFFI bindings for libcurl with the ability to impersonate browsers' TLS signatures.
Install
pip install curl_cffi
Usage
from curl_cffi import Curl, CurlOpt, CurlInfo
from io import BytesIO
buffer = BytesIO()
c = Curl()
c.setopt(CurlOpt.URL, b'https://ja3er.com/json')
c.setopt(CurlOpt.WRITEDATA, buffer)
c.perform()
c.close()
body = buffer.getvalue()
print(body.decode())
API
Curl object:
- setopt(CurlOpt, value): Sets curl options as in
curl_easy_setopt - perform(): Performs curl request, as in
curl_easy_perform - getinfo(CurlInfo): Gets information in response after curl perform, as in
curl_easy_getinfo - close(): Closes and cleans up the curl object, as in
curl_easy_cleanup
Enum values to be used with setopt and getinfo can be accessed from CurlOpt and CurlInfo.
Acknowledgement
This module is forked from https://github.com/multippt/python_curl_cffi
Metadata
Release files for curl-cffi 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| curl_cffi-0.1.5.tar.gz | 7.9 kB | Without provenance | Details for curl_cffi-0.1.5.tar.gz |
Release files / curl_cffi-0.1.5.tar.gz
| Download URL | curl_cffi-0.1.5.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be3d01c431b9844fc202f72b5b970237a518854414852ee25596277e55bdde33
|
|
BLAKE2b-256 checksum How to use checksums |
c748a83746b63806ca07a4b391c5fc402519b024996c3d4f1a560040979a6e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for curl-cffi 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.