Name : python-backports.ssl
| |
Version : 0.0.9
| Vendor : obs://build_opensuse_org/home:frispete
|
Release : 1.7
| Date : 2018-06-14 14:32:11
|
Group : Development/Languages/Python
| Source RPM : python-backports.ssl-0.0.9-1.7.src.rpm
|
Size : 0.07 MB
| |
Packager : (none)
| |
Summary : The Python 34 standard `ssl` module API implemented on top of pyOpenSSL
|
Description :
------------- backports.ssl -------------
What is it? -----------
It\'s the Python 3.4 standard ``ssl`` module API implemented on top of pyOpenSSL::
import backports.ssl as ssl import socket
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) context.verify_mode = ssl.CERT_REQUIRED
conn = context.wrap_socket(socket.socket(socket.AF_INET)) conn.connect((\'google.com\', 443)) print conn.getpeercert() conn.close()
Why? ----
Because the latest web technologies should be available to those running older versions of Python.
Isn\'t this obsoleted by `PEP 466`_? -----------------------------------
If you\'re on Python 2.7, then probably. But PEP 466 doesn\'t cover Python 2.6, 3.2, or 3.3, and the ``ssl.RAND_*()`` functions are explicitly out of scope. This package supports it all.
How do I use it with third-party libraries? -------------------------------------------
Monkey-patching support is included a la `gevent`_::
import backports.ssl.monkey as monkey import requests
monkey.patch() requests.get(\'https://google.com\')
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/frispete:/python/openSUSE_13.2/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
python-backports.ssl
Requires :