{ "info": { "author": "Jim Wright", "author_email": "jmwri93@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development" ], "description": "# simplejwt\n\n[![PyPI version](https://badge.fury.io/py/simplejwt.svg)](https://badge.fury.io/py/simplejwt)\n[![Build Status](https://travis-ci.org/jmwri/simplejwt.svg?branch=master)](https://travis-ci.org/jmwri/simplejwt)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/740ea32cb00bd8c3520a/test_coverage)](https://codeclimate.com/github/jmwri/simplejwt/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/740ea32cb00bd8c3520a/maintainability)](https://codeclimate.com/github/jmwri/simplejwt/maintainability)\n\nA dead simple JWT library.\n\n# Supported algorithms\n\n* HS256\n* HS384\n* HS512\n\n# Usage\n## Encode\nReturns a new token.\n\n```\nfrom simplejwt import encode\ntoken = encode('secret', {'my_payload': 'some_data'}, 'HS256')\n# eyJ0eXBlIjogIkpXVCIsICJhbGciOiAiSFMyNTYifQ.eyJteV9wYXlsb2FkIjogInNvbWVfZGF0YSJ9.BXAs5tYkARpGHhegb8g8bfj8KhjFUTTjdEf81Ma1VhY\n```\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `secret` | `str` | *N/A* | The secret used to create the token. |\n| `payload` | `dict` | *N/A* | The payload data contained within the token. |\n| `alg` | `int` | `HS256` | The algorithm to use to create the token. |\n\n## Make\nReturns a new token. This function has arguments for registered claims as specified in [rfc7519](https://tools.ietf.org/html/rfc7519#section-4.1).\n\nAny registered claims provided in the payload will take precedence over any provided as arguments. \n\n```\nfrom simplejwt import make\ntoken = make('secret', {'my_payload': 'some_data'}, 'HS256', issuer='acme', valid_to=1234567)\n# eyJ0eXBlIjogIkpXVCIsICJhbGciOiAiSFMyNTYifQ.eyJteV9wYXlsb2FkIjogInNvbWVfZGF0YSIsICJpc3MiOiAiYWNtZSIsICJleHAiOiAxMjM0NTY3fQ.Nr5IADzsOhlzjxnghquBrRwewg10srDHu__-HN7GGGA\n```\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `secret` | `str` | *N/A* | The secret used to create the token. |\n| `payload` | `dict` | *N/A* | The payload data contained within the token. |\n| `alg` | `int` | `HS256` | The algorithm to use to create the token. |\n| `issuer` | `str` | `None` | The issuer of the token. |\n| `subject` | `str` | `None` | The subject of the token. |\n| `audience` | `str` | `None` | The audience of the token. |\n| `valid_to` | `int` | `None` | The expiry date of the token as a timestamp. |\n| `valid_from` | `int` | `None` | The date the token is valid from as a timestamp. |\n| `issued_at` | `int` | `None` | The date the token was issued as a timestamp. |\n| `id` | `str` | `None` | The id of the token. |\n\n## Decode\nReturns the payload from a token.\n\n```\nfrom simplejwt import encode, decode\ntoken = encode('secret', {'my_payload': 'some_data'}, 'HS256')\npayload = decode('secret', token, 'HS256')\n# {'my_payload': 'some_data'}\n```\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| `secret` | `str` | *N/A* | The secret used to decode the token. |\n| `payload` | `dict` | *N/A* | The token to decode. |\n| `alg` | `int` | `HS256` | The algorithm to use to create the token. |\n\n# Running tests\n## Install the package with test dependencies\n`pip install -e \".[test]\"`\n\n## Run tox\n`tox`", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/jmwri/simplejwt/archive/2.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jmwri/simplejwt", "keywords": "python,jwt,simple,simplejwt", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "simplejwt", "package_url": "https://pypi.org/project/simplejwt/", "platform": "", "project_url": "https://pypi.org/project/simplejwt/", "project_urls": { "Download": "https://github.com/jmwri/simplejwt/archive/2.0.1.tar.gz", "Homepage": "https://github.com/jmwri/simplejwt" }, "release_url": "https://pypi.org/project/simplejwt/2.0.1/", "requires_dist": null, "requires_python": "", "summary": "A dead simple JWT library", "version": "2.0.1" }, "last_serial": 4289477, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "29dc952b0268930057fb6910183aca0c", "sha256": "c218e30b6934ec4de6c993a469cab7041137efde0a7bed0d0e55d40166acd1d4" }, "downloads": -1, "filename": "simplejwt-0.0.1.tar.gz", "has_sig": false, "md5_digest": "29dc952b0268930057fb6910183aca0c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 2267, "upload_time": "2018-03-21T18:55:03", "url": "https://files.pythonhosted.org/packages/58/36/d19878d8abb79860bf57a55d4cc827803677d4a09895f397be1158fe56ea/simplejwt-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "165c8f956410d6cae7a31019d044f4a4", "sha256": "c6820d4d44200dfe5c7e1285db050fee954fa07db87f7d0aad01b3c78e9f179a" }, "downloads": -1, "filename": "simplejwt-0.1.0.tar.gz", "has_sig": false, "md5_digest": "165c8f956410d6cae7a31019d044f4a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 2657, "upload_time": "2018-03-29T11:39:43", "url": "https://files.pythonhosted.org/packages/32/49/23a5bd650945b289d5cb00f65c7cca89f8976bbce7d8a1fbdee40319e4b5/simplejwt-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "49ace1ee857ca1a7fd4473945a5b744c", "sha256": "4deac06d9e4e96e4d429e4b3489f2dba290db48253bbe6880bef1838495ae538" }, "downloads": -1, "filename": "simplejwt-0.2.0.tar.gz", "has_sig": false, "md5_digest": "49ace1ee857ca1a7fd4473945a5b744c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 2694, "upload_time": "2018-03-29T13:35:08", "url": "https://files.pythonhosted.org/packages/21/72/8c6d9ad70e2445bc473c53f4b3cb51d38500626da11bf20146b4f689fc8e/simplejwt-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "119ea348bdb6676cbbada581a61f18aa", "sha256": "f984c8d8bff851c6489181daad88673501bf682842a147daca51e173562dcb52" }, "downloads": -1, "filename": "simplejwt-0.3.0.tar.gz", "has_sig": false, "md5_digest": "119ea348bdb6676cbbada581a61f18aa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 3412, "upload_time": "2018-04-04T21:12:09", "url": "https://files.pythonhosted.org/packages/4c/05/b1df70c70c9ec26864c4680f784aab6a8281041735523f8f9693e529275f/simplejwt-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "fb5e408c7137b693dadae1ae10794d70", "sha256": "d84b47d226a58ce20a41554180f8f3ffd7124aa9680d951a15bc2a84ee338b47" }, "downloads": -1, "filename": "simplejwt-0.3.1.tar.gz", "has_sig": false, "md5_digest": "fb5e408c7137b693dadae1ae10794d70", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 3444, "upload_time": "2018-04-04T21:31:46", "url": "https://files.pythonhosted.org/packages/55/0e/c900a69db0f6597d0f84838f864bb929c3b499509b7a3c00e9630d726948/simplejwt-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "3a5301b51e21042791b99dbfd5042c19", "sha256": "3801ed3d43703eba7154ad1882c091f8617368c0d795a999dff719fcc8438e83" }, "downloads": -1, "filename": "simplejwt-0.4.0.tar.gz", "has_sig": false, "md5_digest": "3a5301b51e21042791b99dbfd5042c19", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 4090, "upload_time": "2018-04-05T14:54:39", "url": "https://files.pythonhosted.org/packages/b7/32/5d44874de3831986fe6c6a047000c1049ae9623565b147c4403556b2869a/simplejwt-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "c106fe774c03c8496726e87fa628c55b", "sha256": "2db11d1eb8a1c942a43dedb5947db75a2f558483bb605d762d1bde131d62cfa8" }, "downloads": -1, "filename": "simplejwt-0.4.1.tar.gz", "has_sig": false, "md5_digest": "c106fe774c03c8496726e87fa628c55b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 5533, "upload_time": "2018-04-10T17:38:00", "url": "https://files.pythonhosted.org/packages/21/4b/4de073b58facc31d26595d3e3b45d118143a7ed942214b7e1a8787d2bf30/simplejwt-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "1ac161d55d1ea1406d8091ddc3ca53ce", "sha256": "e0ac690b027798d9aff891c3d645b16e970d8e3b80d2392d31823375dcf5a9ad" }, "downloads": -1, "filename": "simplejwt-0.4.2.tar.gz", "has_sig": false, "md5_digest": "1ac161d55d1ea1406d8091ddc3ca53ce", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 5622, "upload_time": "2018-04-17T22:02:07", "url": "https://files.pythonhosted.org/packages/43/de/5ffe0248ac1b0eb61c0bf87a119195b7d14a678e8ffde43c7a0a264c8ddc/simplejwt-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "36e50939a41e10fbbe7c8d760d2f86d2", "sha256": "7a3579e31ffbb7359086c0aeda67f560bfada01401334bf2fe19c2426ae0c534" }, "downloads": -1, "filename": "simplejwt-0.4.3.tar.gz", "has_sig": false, "md5_digest": "36e50939a41e10fbbe7c8d760d2f86d2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 5669, "upload_time": "2018-04-17T22:12:35", "url": "https://files.pythonhosted.org/packages/da/93/257fe15547938debe7f17d2994a5f492e7aec2d7a93b25bb6032c388d790/simplejwt-0.4.3.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "53458957aa4f862b7a7058cb20593635", "sha256": "92b88da7583e959d74dbb951afdc3ec93f5460020a1d12b1676ab345d44f9d3b" }, "downloads": -1, "filename": "simplejwt-0.5.0.tar.gz", "has_sig": false, "md5_digest": "53458957aa4f862b7a7058cb20593635", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 5842, "upload_time": "2018-04-18T18:09:59", "url": "https://files.pythonhosted.org/packages/82/eb/a23c750ea16504b9be746cd9fab4d1bcf3a406cef5754760682ca78d95fd/simplejwt-0.5.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ad90e226786fa6ca3c1ffbbb0a63b478", "sha256": "da0b489681130f1518de581635fa1bdd25b57673a2f33d984e304b9609f5f4f1" }, "downloads": -1, "filename": "simplejwt-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ad90e226786fa6ca3c1ffbbb0a63b478", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 6010, "upload_time": "2018-04-20T16:55:26", "url": "https://files.pythonhosted.org/packages/bd/61/fb27e7863098a06502cbb7a4ef7555ced30405d641d8f3b9976f81e3842e/simplejwt-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6d3c1ff243630675f073fa2144ae7189", "sha256": "64ac6f665b452c9020c970f066393476417241b6b649a27871a5a5bf521a1dc9" }, "downloads": -1, "filename": "simplejwt-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6d3c1ff243630675f073fa2144ae7189", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 6089, "upload_time": "2018-04-20T17:26:58", "url": "https://files.pythonhosted.org/packages/4a/7b/8b24af941d28096bfe749295f47cfc621f496a86b6afdd9032f41cb4489d/simplejwt-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "aaafcdcb8bd7b8f7e774f99e42c3d840", "sha256": "1357f225a286e3e959cf00e047bd54bde461577345d6497e69b24bd137d924ea" }, "downloads": -1, "filename": "simplejwt-1.0.2.tar.gz", "has_sig": false, "md5_digest": "aaafcdcb8bd7b8f7e774f99e42c3d840", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 6100, "upload_time": "2018-05-02T18:02:41", "url": "https://files.pythonhosted.org/packages/dd/25/626e685d7e65fa5d60d4ac7af3107463c7a6b1c870ec77c76baa2dee3c34/simplejwt-1.0.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "5a5a3f648a257057d5d150f45613cfca", "sha256": "689d78f215f0a8437fc38cb717c7c9e0a1d0678f94e32d3668e7eba15ae68dc9" }, "downloads": -1, "filename": "simplejwt-2.0.0.tar.gz", "has_sig": false, "md5_digest": "5a5a3f648a257057d5d150f45613cfca", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 6140, "upload_time": "2018-07-13T07:26:06", "url": "https://files.pythonhosted.org/packages/e0/85/a113aeeb55af6e7e75275367a93a356b2b2fbde383ae48bd0c2f340dbda4/simplejwt-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "6b501b4cf5433a90d7ef6e9779ae6fae", "sha256": "3d9054c3f6c8ebca49693568b483f4bafcfdf962fe9e60f5bf0855bdc19761a2" }, "downloads": -1, "filename": "simplejwt-2.0.1.tar.gz", "has_sig": false, "md5_digest": "6b501b4cf5433a90d7ef6e9779ae6fae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6383, "upload_time": "2018-09-19T17:16:52", "url": "https://files.pythonhosted.org/packages/3f/b0/3680d62a6cde9d2c2a237428e6ef07d6211a9d120e7310fc540a11eacece/simplejwt-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b501b4cf5433a90d7ef6e9779ae6fae", "sha256": "3d9054c3f6c8ebca49693568b483f4bafcfdf962fe9e60f5bf0855bdc19761a2" }, "downloads": -1, "filename": "simplejwt-2.0.1.tar.gz", "has_sig": false, "md5_digest": "6b501b4cf5433a90d7ef6e9779ae6fae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6383, "upload_time": "2018-09-19T17:16:52", "url": "https://files.pythonhosted.org/packages/3f/b0/3680d62a6cde9d2c2a237428e6ef07d6211a9d120e7310fc540a11eacece/simplejwt-2.0.1.tar.gz" } ] }