Skip to main content

gitlab-ico github-ico docs-ico

licence-mpl20 pre-commit-ico

Konnect

Konnect is a project to make the power of the libcurl multi feature available through a Pythonic interface. It consists of this core package (konnect.curl) through which any protocol provided by libcurl can be accessed and some additional packages (e.g. konnect.http) which provide enhanced interfaces for specific protocols.

Basic Usage

Users must first create a class that implements the konnect.curl.abc.RequestProtocol interface; the methods of this protocol are essentially hooks that are called at certain points in a transfer. The transfer commences when an instance of the request class is passed to konnect.curl.Multi.process() and the returned awaitable is awaited:

  • configure_handle is called prior to connection with a single konnect.curl.abc.ConfigHandle object as an argument. This object can be used to configure the request in a manner familiar to users of libcurl, by calling the konnect.curl.abc.ConfigHandle.setopt() method of the object. In particular users should configure libcurl callbacks to handle various additional events specific to the desired protocol.

  • has_update & get_update are called continuously throughout the transfer. The latter, if it returns anything, interrupts the transfer and returns the value from konnect.curl.Multi.process(). The user would normally then continue the transfer by calling konnect.curl.Multi.process() again with the same multi and request objects. It is up to the user to recognise when the return is an interim response or a final response, normally by checking the type of the response. If the implementation has nothing to return during the transfer has_update can simply return False every time it is called.

  • completed is called after the transfer is finished, with a konnect.curl.abc.GetInfoHandle object that may be used to examine information about the transfer in a way familiar to libcurl users, with it's konnect.curl.abc.GetInfoHandle.getinfo() and konnect.curl.abc.GetInfoHandle.getinfo_raw() methods.

Instances of konnect.curl.Multi are shareable within a thread and although it is possible to use multiple instances it is recommended for performance and resource usage reasons to use only one.

Metadata

Release files for konnect.curl 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for konnect.curl 0.2.5
File Size Uploaded Provenance Actions
konnect_curl-0.2.5.tar.gz 30.8 kB Without provenance Details for konnect_curl-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for konnect.curl 0.2.5
File Interpreter ABI Platform Actions
konnect_curl-0.2.5-py3-none-any.whl Python 3 none any Details for konnect_curl-0.2.5-py3-none-any.whl

Total release size: 55.5 kB

Release files / konnect_curl-0.2.5.tar.gz

Download URL konnect_curl-0.2.5.tar.gz
Size 30.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8968bf6b8177824c3240fae82511905e3b22c1827f8279de99bce8138ec7cb91
BLAKE2b-256 checksum
How to use checksums
3058ee0658facb2ea3744d193d01531198dbbe028f640e4dc82e90fc30873e32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.6

Release files / konnect_curl-0.2.5-py3-none-any.whl

Download URL konnect_curl-0.2.5-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c36cf469680459a1cdd3148962fb0397ea2c902fd9064a5f281df90d8eaf7efb
BLAKE2b-256 checksum
How to use checksums
8c9811247c9cba1282d88b73c4fcc5474e393ba3b46a069789522f450e3b4bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.6

Security for konnect.curl 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page