djangorestframework-jwt
JSON Web Token based authentication for Django REST framework
What it is and what it does
This package integrates JWT-based authentication into Django REST Framework, allowing you to issue and validate JSON Web Tokens for stateless API authentication. Instead of session-based auth, clients receive a token on login and include it in subsequent requests, making it suitable for mobile apps, single-page applications, and microservices.
The package was last released on 2017-06-23 and is now archived. It was designed for Django 1.8, 1.9, 1.10, 1.11 and Django REST Framework 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, supporting Python 2.7, 3.3, 3.4, 3.5. No runtime dependencies means easy installation, but the lack of maintenance since the latest release raises concerns about security vulnerabilities and compatibility with modern tooling.
Use it for:
- Adding JWT authentication to a legacy Django REST Framework API built before 2017.
- Issuing bearer tokens to mobile or web clients that need stateless authentication without sessions.
- Implementing token refresh and expiration logic for time-limited API access in older Django projects.
- Migrating from session-based to token-based authentication in a Django REST Framework application.
- Securing API endpoints with JWT validation in a microservices architecture using older Django versions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds JSON Web Token (JWT) authentication support to Django REST Framework, enabling token-based API authentication for Django applications.
No. This package is abandoned (latest release 2017-06-23, repository archived) and unsupported for modern Django and Python versions. Security patches are unlikely, and compatibility with current tooling is not guaranteed. For new projects or modern stacks, use an actively maintained JWT authentication package. For legacy systems still on the supported versions, evaluate whether upgrading is feasible before committing to this unmaintained dependency.
Install
djangorestframework-jwt on PyPI
pip
pip install djangorestframework-jwtuv
uv add djangorestframework-jwtpoetry
poetry add djangorestframework-jwtInstalling djangorestframework-jwt
Before you install
Installation is straightforward with no runtime dependencies, but the package is abandoned as of the latest release in 2017 with no updates since. The repository is archived and no longer maintained, which poses a significant risk for security patches or compatibility with modern versions.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions, though you must retain the license notice.
Quickstart
pip install djangorestframework-jwt
from djangorestframework_jwt.views import obtain_jwt_token
# Add to Django URL configuration
urlpatterns = [
path('api-token-auth/', obtain_jwt_token),
]
Requires Django (1.8, 1.9, 1.10, 1.11) and Django REST Framework (3.0, 3.1, 3.2, 3.3, 3.4, 3.5); compatibility with modern versions is not guaranteed.
Verify before relying
- Whether this package works with Django versions beyond 1.11 and Python versions beyond 3.5.
- Security implications of using an abandoned package in production environments.
- Whether the package has been superseded by an actively maintained alternative.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,339 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 230,199/month — #9,115 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: djangorestframework_jwt-1.11.0-py2.py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
drf-jwtAdds JSON Web Token (JWT) authentication to…
permissive · top 15,000 on PyPI
djangorestframework-simplejwtProvides JSON Web Token (JWT) authentication…
permissive · top 5,000 on PyPI
dj-rest-authProvides drop-in REST API endpoints for user…
permissive · top 5,000 on PyPI
zi-api-auth-clientGenerates JWT tokens for ZoomInfo…
permissive · top 15,000 on PyPI
gotruePython client library for Supabase Auth that…
permissive · top 5,000 on PyPI
Flask-JWT-ExtendedAdds JSON Web Token (JWT) authentication to…
permissive · top 5,000 on PyPI
taktile-authProvides authentication and authorization…
permissive · top 15,000 on PyPI
atlassian-jwt-authGenerates and verifies JWT tokens for Atlassian…
permissive · top 15,000 on PyPI
supertokens-pythonInterfaces a Python API with the SuperTokens…
permissive · top 15,000 on PyPI
PyJWTPyJWT encodes and decodes JSON Web Tokens (JWT)…
permissive · top 100 on PyPI