This library wraps pyOpenSSL to make it compatible with gevent. OpenSSL connection operations that would normally block the current thread will only block the current greenlet instead.
Requirements
PyOpenSSL >= 0.11
gevent (compatible with 1.0 pre-releases as well)
Usage
Instead of importing OpenSSL directly, do so in the following manner:
import gevent_openssl as OpenSSL
or
import gevent_openssl; gevent_openssl.monkey_patch()
Any calls that would have blocked the current thread will now only block the current green thread.
About
This compatibility is accomplished by yielding to the gevent scheduler when pyOpenSSL is waiting to be able to read or write data.
License
New BSD
History
This project was originally created by Phus Lu (phus.lu@gmail.com) and is now maintained by Menno Finlay-Smits (menno@freshfoo.com).
Metadata
Release files for gevent_openssl 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| gevent_openssl-1.2.zip | 6.0 kB | Details | |
| gevent_openssl-1.2.tar.gz | 3.2 kB | Details |
Release files / gevent_openssl-1.2.zip
| Download URL | gevent_openssl-1.2.zip |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73db9c10b341338096f482b3e0767580a4e3b5ce9e0b50c2b57bf8fa0f411dc9
|
|
BLAKE2b-256 checksum How to use checksums |
2e61e3b85947af54d29aeaa263c811f7b1923874f8778db7f49063a997a5be42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / gevent_openssl-1.2.tar.gz
| Download URL | gevent_openssl-1.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f7e0331de067d35a2f595a458b492b151e2f8ee9e54aa1549148d93e488bda5
|
|
BLAKE2b-256 checksum How to use checksums |
930303cb89fca973882506ddaa31a30d3626e7611a4b0a9f278237ccc2a42121
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |