Acurl
It is an asynchronous wrapper around libcurl which is built to interface with the Uvloop python library.
Using Acurl In Mite
The gateway into Acurl is through the CurlWrapper (discussed in Architectural Notes) and requires an event loop being passed to its constructor. Below is the mite implementation of acurl:
class SessionPool:
...
def __init__(self):
import acurl
self._wrapper = acurl.CurlWrapper(asyncio.get_event_loop_policy().get_event_loop())
...
Architectural Notes
Acurl uses a single loop maintained within python using UVloop.
Acurl surfaces the CurlWrapper interface which takes the asyncio event loop as an argument. The wrapper deals directly with the curl_multi interface from libcurl, defining 2 functions (curl_perform_write and curl_perform_read) for checking both read and write availability of file descriptors.
There are 2 notable functions within the core Acurl implementation, notably handle_socket and start_timer:
handle_socketis passed as a callback function to the curl_multi interface and upon calls to thecurl_multi_socket_actionfunction, will receive updates regarding the socket status. We then handle those statuses by either adding or removing the aforementioned readers or writers.start_timeris another callback function that is passed to the curl_multi interface and is used as a way to handle timeouts and retries within curl. Upon a timeout, the timeout callback will be called and the transfer can be retried.
Metadata
Release files for acurl 1.2.1
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 |
|---|---|---|---|---|
| acurl-1.2.1.tar.gz | 221.4 kB | Without provenance | Details for acurl-1.2.1.tar.gz |
Release files / acurl-1.2.1.tar.gz
| Download URL | acurl-1.2.1.tar.gz |
|---|---|
| Size | 221.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2cbc33ce0a18ca57f22c8d3e06de7b233b49a21e3d7dde6def323eff9d3f444
|
|
BLAKE2b-256 checksum How to use checksums |
ec5fb3a1e1db5fc772df8125e3e7f73e584c8076c2d1421ccf7cce8777984c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.12
|
Security for acurl 1.2.1
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.