Socket
Socket
Sign inDemoInstall

gevent_openssl

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Protect your apps from supply chain attacks

Install

gevent_openssl

A gevent wrapper for pyOpenSSL

    1.2

Maintainers
1

Readme

==============
gevent-openssl
==============
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).

FAQs


Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc