Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.1
2 Name: pem
3 Version: 19.1.0
4 Summary: Easy PEM file parsing in Python.
5 Home-page: https://pem.readthedocs.io/
6 Author: Hynek Schlawack
7 Author-email: [email protected]
8 Maintainer: Hynek Schlawack
9 Maintainer-email: [email protected]
10 License: MIT
11 Project-URL: Documentation, https://pem.readthedocs.io/
12 Project-URL: Bug Tracker, https://github.com/hynek/pem/issues
13 Project-URL: Source Code, https://github.com/hynek/pem
14 Description: pem: Easy PEM file parsing
15 ==========================
16
17 .. image:: https://readthedocs.org/projects/pem/badge/?version=stable
18 :target: https://pem.readthedocs.io/en/stable/?badge=stable
19 :alt: Documentation Status
20
21 .. image:: https://travis-ci.org/hynek/pem.svg?branch=master
22 :target: https://travis-ci.org/hynek/pem
23 :alt: CI status
24
25 .. image:: https://codecov.io/gh/hynek/pem/branch/master/graph/badge.svg
26 :target: https://codecov.io/github/hynek/pem
27 :alt: Coverage
28
29 .. image:: https://www.irccloud.com/invite-svg?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1
30 :target: https://www.irccloud.com/invite?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1
31
32 .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
33 :target: https://github.com/ambv/black
34 :alt: Code style: black
35
36 .. image:: http://www.mypy-lang.org/static/mypy_badge.svg
37 :target: http://mypy-lang.org
38 :alt: Checked with mypy
39
40 .. teaser-begin
41
42 ``pem`` is an MIT_-licensed Python module for parsing and splitting of `PEM files`_, i.e. Base64 encoded DER keys and certificates.
43
44 It runs on Python 2.7, 3.4+, and PyPy, has no dependencies, and does not attempt to interpret the certificate data in any way.
45
46 It’s born from the need to load keys, certificates, trust chains, and DH parameters from various certificate deployments: some servers (like Apache_) expect them to be a separate file, others (like nginx_) expect them concatenated to the server certificate and finally some (like HAProxy_) expect key, certificate, and chain to be in one file.
47 With ``pem``, your Python application can cope with all of those scenarios:
48
49 .. code-block:: pycon
50
51 >>> import pem
52 >>> certs = pem.parse_file("chain.pem")
53 >>> certs
54 [<Certificate(PEM string with SHA-1 digest '...')>, <Certificate(PEM string with SHA-1 digest '...')>]
55 >>> str(certs[0])
56 '-----BEGIN CERTIFICATE-----\n...'
57
58 Additionally to the vanilla parsing code, ``pem`` also contains helpers for Twisted_ that save a lot of boilerplate code.
59
60 ``pem``\ ’s documentation lives at `Read the Docs <https://pem.readthedocs.io/>`_, the code on `GitHub <https://github.com/hynek/pem>`_.
61
62
63 .. _MIT: https://choosealicense.com/licenses/mit/
64 .. _`PEM files`: https://en.wikipedia.org/wiki/X.509#Certificate_filename_extensions
65 .. _Apache: https://httpd.apache.org/
66 .. _nginx: https://nginx.org/
67 .. _HAProxy: https://www.haproxy.org/
68 .. _Twisted: https://twistedmatrix.com/documents/current/api/twisted.internet.ssl.Certificate.html#loadPEM
69
70
71 Release Information
72 ===================
73
74 19.1.0 (2019-03-19)
75 -------------------
76
77
78 Backward-incompatible changes:
79 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
81 *none*
82
83
84 Deprecations:
85 ^^^^^^^^^^^^^
86
87 *none*
88
89
90 Changes:
91 ^^^^^^^^
92
93 - You can now load encrypted PKCS#8 PEM key as ``pem.Key``.
94 - Added support for ``pem.PublicKey`` (``PUBLIC KEY``).
95 - Added support for ``pem.RSAPublicKey`` (``RSA PUBLIC KEY``).
96
97 `Full changelog <https://pem.readthedocs.io/en/stable/changelog.html>`_.
98
99 Credits
100 =======
101
102 ``pem`` is written and maintained by Hynek Schlawack.
103
104 The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.
105
106 A full list of contributors can be found on GitHub’s `overview <https://github.com/hynek/pem/graphs/contributors>`_.
107
108 Keywords: pyopenssl,ssl,tls,pem,cryptography,twisted
109 Platform: UNKNOWN
110 Classifier: Development Status :: 5 - Production/Stable
111 Classifier: Intended Audience :: Developers
112 Classifier: Natural Language :: English
113 Classifier: License :: OSI Approved :: MIT License
114 Classifier: Operating System :: OS Independent
115 Classifier: Programming Language :: Python
116 Classifier: Programming Language :: Python :: Implementation :: CPython
117 Classifier: Programming Language :: Python :: Implementation :: PyPy
118 Classifier: Programming Language :: Python :: 2
119 Classifier: Programming Language :: Python :: 2.7
120 Classifier: Programming Language :: Python :: 3
121 Classifier: Programming Language :: Python :: 3.4
122 Classifier: Programming Language :: Python :: 3.5
123 Classifier: Programming Language :: Python :: 3.6
124 Classifier: Programming Language :: Python :: 3.7
125 Classifier: Topic :: Software Development :: Libraries :: Python Modules
126 Provides-Extra: dev
127 Provides-Extra: docs
128 Provides-Extra: tests