updates
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,149 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: python-jose
|
||||
Version: 3.5.0
|
||||
Summary: JOSE implementation in Python
|
||||
Home-page: http://github.com/mpdavis/python-jose
|
||||
Author: Michael Davis
|
||||
Author-email: mike.philip.davis@gmail.com
|
||||
License: MIT
|
||||
Project-URL: Documentation, https://python-jose.readthedocs.io/en/latest/
|
||||
Project-URL: Source, https://github.com/mpdavis/python-jose/
|
||||
Project-URL: Tracker, https://github.com/mpdavis/python-jose/issues/
|
||||
Project-URL: Changelog, https://github.com/mpdavis/python-jose/blob/master/CHANGELOG.md
|
||||
Keywords: jose jws jwe jwt json web token security signing
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Natural Language :: English
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Topic :: Utilities
|
||||
Requires-Python: >=3.9
|
||||
License-File: LICENSE
|
||||
Requires-Dist: ecdsa!=0.15
|
||||
Requires-Dist: rsa!=4.1.1,!=4.4,<5.0,>=4.0
|
||||
Requires-Dist: pyasn1>=0.5.0
|
||||
Provides-Extra: test
|
||||
Requires-Dist: pytest; extra == "test"
|
||||
Requires-Dist: pytest-cov; extra == "test"
|
||||
Provides-Extra: cryptography
|
||||
Requires-Dist: cryptography>=3.4.0; extra == "cryptography"
|
||||
Provides-Extra: pycrypto
|
||||
Requires-Dist: pycrypto<2.7.0,>=2.6.0; extra == "pycrypto"
|
||||
Provides-Extra: pycryptodome
|
||||
Requires-Dist: pycryptodome<4.0.0,>=3.3.1; extra == "pycryptodome"
|
||||
Dynamic: license-file
|
||||
|
||||
python-jose
|
||||
===========
|
||||
|
||||
A JOSE implementation in Python
|
||||
|
||||
|pypi| |Github Actions CI Status| |Coverage Status| |Docs| |style|
|
||||
|
||||
Docs are available on ReadTheDocs_.
|
||||
|
||||
The JavaScript Object Signing and Encryption (JOSE) technologies - JSON
|
||||
Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
|
||||
JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or
|
||||
sign content using a variety of algorithms. While the full set of
|
||||
permutations is extremely large, and might be daunting to some, it is
|
||||
expected that most applications will only use a small set of algorithms
|
||||
to meet their needs.
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
::
|
||||
|
||||
$ pip install python-jose[cryptography]
|
||||
|
||||
|
||||
Cryptographic Backends
|
||||
----------------------
|
||||
|
||||
As of 3.3.0, python-jose implements three different cryptographic backends.
|
||||
The backend must be selected as an extra when installing python-jose.
|
||||
If you do not select a backend, the native-python backend will be installed.
|
||||
|
||||
Unless otherwise noted, all backends support all operations.
|
||||
|
||||
Due to complexities with setuptools, the native-python backend is always installed,
|
||||
even if you select a different backend on install.
|
||||
We recommend that you remove unnecessary dependencies in production.
|
||||
|
||||
#. cryptography
|
||||
|
||||
* This backend uses `pyca/cryptography`_ for all cryptographic operations.
|
||||
This is the recommended backend and is selected over all other backends if any others are present.
|
||||
* Installation: ``pip install python-jose[cryptography]``
|
||||
* Unused dependencies:
|
||||
|
||||
* ``rsa``
|
||||
* ``ecdsa``
|
||||
* ``pyasn1``
|
||||
|
||||
#. pycryptodome
|
||||
|
||||
* This backend uses `pycryptodome`_ for all cryptographic operations.
|
||||
* Installation: ``pip install python-jose[pycryptodome]``
|
||||
* Unused dependencies:
|
||||
|
||||
* ``rsa``
|
||||
|
||||
#. native-python
|
||||
|
||||
* This backend uses `python-rsa`_ and `python-ecdsa`_ for all cryptographic operations.
|
||||
This backend is always installed but any other backend will take precedence if one is installed.
|
||||
* Installation: ``pip install python-jose``
|
||||
|
||||
.. note::
|
||||
|
||||
The native-python backend cannot process certificates.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> from jose import jwt
|
||||
>>> token = jwt.encode({'key': 'value'}, 'secret', algorithm='HS256')
|
||||
u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'
|
||||
|
||||
>>> jwt.decode(token, 'secret', algorithms=['HS256'])
|
||||
{u'key': u'value'}
|
||||
|
||||
|
||||
Thanks
|
||||
------
|
||||
|
||||
This library was originally based heavily on the work of the folks over at PyJWT_.
|
||||
|
||||
.. |pypi| image:: https://img.shields.io/pypi/v/python-jose?style=flat-square
|
||||
:target: https://pypi.org/project/python-jose/
|
||||
:alt: PyPI
|
||||
.. |Github Actions CI Status| image:: https://github.com/mpdavis/python-jose/actions/workflows/ci.yml/badge.svg
|
||||
:target: https://github.com/mpdavis/python-jose/actions/workflows/ci.yml
|
||||
:alt: Github Actions CI Status
|
||||
.. |Coverage Status| image:: http://codecov.io/github/mpdavis/python-jose/coverage.svg?branch=master
|
||||
:target: http://codecov.io/github/mpdavis/python-jose?branch=master
|
||||
.. |Docs| image:: https://readthedocs.org/projects/python-jose/badge/
|
||||
:target: https://python-jose.readthedocs.org/en/latest/
|
||||
.. _ReadTheDocs: https://python-jose.readthedocs.org/en/latest/
|
||||
.. _PyJWT: https://github.com/jpadilla/pyjwt
|
||||
.. _pyca/cryptography: http://cryptography.io/
|
||||
.. _pycryptodome: https://pycryptodome.readthedocs.io/en/latest/
|
||||
.. _pycrypto: https://www.dlitz.net/software/pycrypto/
|
||||
.. _python-ecdsa: https://github.com/warner/python-ecdsa
|
||||
.. _python-rsa: https://stuvel.eu/rsa
|
||||
.. |style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
||||
:target: https://github.com/psf/black
|
||||
:alt: Code style: black
|
||||
@@ -0,0 +1,37 @@
|
||||
jose/__init__.py,sha256=x8vWB0drBqifxYnt-lognbrRuKb6X3qRxAd5l053gDw,322
|
||||
jose/__pycache__/__init__.cpython-312.pyc,,
|
||||
jose/__pycache__/constants.cpython-312.pyc,,
|
||||
jose/__pycache__/exceptions.cpython-312.pyc,,
|
||||
jose/__pycache__/jwe.cpython-312.pyc,,
|
||||
jose/__pycache__/jwk.cpython-312.pyc,,
|
||||
jose/__pycache__/jws.cpython-312.pyc,,
|
||||
jose/__pycache__/jwt.cpython-312.pyc,,
|
||||
jose/__pycache__/utils.cpython-312.pyc,,
|
||||
jose/backends/__init__.py,sha256=kaDsN5XktlfA8F_3060PeXdaL4BNdvoUTzPLAjP_v_s,861
|
||||
jose/backends/__pycache__/__init__.cpython-312.pyc,,
|
||||
jose/backends/__pycache__/_asn1.cpython-312.pyc,,
|
||||
jose/backends/__pycache__/base.cpython-312.pyc,,
|
||||
jose/backends/__pycache__/cryptography_backend.cpython-312.pyc,,
|
||||
jose/backends/__pycache__/ecdsa_backend.cpython-312.pyc,,
|
||||
jose/backends/__pycache__/native.cpython-312.pyc,,
|
||||
jose/backends/__pycache__/rsa_backend.cpython-312.pyc,,
|
||||
jose/backends/_asn1.py,sha256=2CqnRB7LojTrNU4d1HC9BA2WkJv5OOM6gyn6B-tVwkk,2656
|
||||
jose/backends/base.py,sha256=0kuposKfixAR2W3enKuYdqEZpVG56ODOQDEdgq_pmvs,2224
|
||||
jose/backends/cryptography_backend.py,sha256=v1XqO6PIUpYwyAAsMob1FD9D4q6rPwfX7CGV-KxFlAU,22175
|
||||
jose/backends/ecdsa_backend.py,sha256=ORORepIpIS9D4s6Vtmhli5GZV9kj3CJj2_Mv0ARKGqE,5055
|
||||
jose/backends/native.py,sha256=uZuP8EqihAPsmGdxslMyhh-DGoe1yXLXmB_P-2zXyS8,2096
|
||||
jose/backends/rsa_backend.py,sha256=-tiQF_G2v16a5PLCLjEVwSoYaeBy3h-Tj6KKmtYlAuY,10941
|
||||
jose/constants.py,sha256=tPZLo6oI8mesxFXOCiulE--GcANW1V37wkO0f1vVvqY,2625
|
||||
jose/exceptions.py,sha256=K_ueFBsmTwQySE0CU09iMthOAdPaTQ_HvzRz9lYT1ls,791
|
||||
jose/jwe.py,sha256=L7GZsKm6qc2ApDtOnM0YDs2KhP1R3hWMoSoIKi8cQQg,22700
|
||||
jose/jwk.py,sha256=TuIrPoKkVFZcwrnp_IcwSdUJL79-pAGCmauAyysmCoQ,1994
|
||||
jose/jws.py,sha256=P2SAUhO6ZxjhWk6XHFpulgpREfAHJ_ktAgzPg-OJ_3w,7894
|
||||
jose/jwt.py,sha256=OXVuHOP6g05tHyzo9eP4tLn8RzqbdpKrEWU6VwtNOrA,18158
|
||||
jose/utils.py,sha256=3R6EViEPwc2NreO1njUsab9rHKnc6fzfRJmWo9f4Y90,4824
|
||||
python_jose-3.5.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
python_jose-3.5.0.dist-info/METADATA,sha256=FA4Lhvk8-BZzGNOUbzr4aH84uj0ytjG5SMK9p7oQLwY,5508
|
||||
python_jose-3.5.0.dist-info/RECORD,,
|
||||
python_jose-3.5.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
python_jose-3.5.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
||||
python_jose-3.5.0.dist-info/licenses/LICENSE,sha256=peYY7ubUlvd62K5w_qbt8UgVlVji0ih4fZB2yQCi-SY,1081
|
||||
python_jose-3.5.0.dist-info/top_level.txt,sha256=tWZmXhRSm0aANjAdRbjirCMnYOQdMwpQqdJUSmANjtk,5
|
||||
@@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (80.9.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Michael Davis
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
jose
|
||||
Reference in New Issue
Block a user