You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

gevent_openssl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gevent_openssl

A gevent wrapper for pyOpenSSL


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

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc