Skip to main content

REST version of Django authentication system.

Project description

https://img.shields.io/pypi/v/djoser.svg https://img.shields.io/travis/sunscrapers/djoser/master.svg https://img.shields.io/codecov/c/github/sunscrapers/djoser.svg Codacy Badge https://img.shields.io/pypi/dm/djoser

REST implementation of Django authentication system. djoser library provides a set of Django Rest Framework views to handle basic actions such as registration, login, logout, password reset and account activation. It works with custom user model.

Instead of reusing Django code (e.g. PasswordResetForm), we reimplemented few things to fit better into Single Page App architecture.

Developed by SUNSCRAPERS with passion & patience.

https://asciinema.org/a/94J4eG2tSBD2iEfF30a6vGtXw.png

Requirements

To be able to run djoser you have to meet following requirements:

  • Python (3.5, 3.6, 3.7, 3.8)

  • Django (1.11, 2.2, 3.1)

  • Django REST Framework (3.9, 3.10, 3.11.1)

If you need to support other versions, please use djoser<2.

Installation

Simply install using pip:

$ pip install djoser

And continue with the steps described at configuration guide.

Documentation

Documentation is available to study at https://djoser.readthedocs.io and in docs directory.

Contributing and development

To start developing on djoser, clone the repository:

$ git clone git@github.com:sunscrapers/djoser.git

If you are a pipenv user you can quickly setup testing environment by using Make commands:

$ make init
$ make test

Otherwise, if you cannot use Make commands, please create virtualenv and install requirements manually:

$ pip install django djangorestframework
$ pip install -r requirements.txt
$ cd testproject
$ ./manage.py test

If you need to run tests against all supported Python and Django versions then invoke:

$ pip install tox
$ tox -p all

You can also play with test project by running following commands:

$ ./manage.py migrate
$ ./manage.py runserver

Similar projects

List of projects related to Django, REST and authentication:

Please, keep in mind that while using custom authentication and TokenCreateSerializer validation, there is a path that ignores intentional return of None from authenticate() and try to find User using parameters. Probably, that will be changed in the future.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djoser-2.0.5.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djoser-2.0.5-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file djoser-2.0.5.tar.gz.

File metadata

  • Download URL: djoser-2.0.5.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for djoser-2.0.5.tar.gz
Algorithm Hash digest
SHA256 6b5f225122d30f3f84a46032d8f98a03412903b225d418d373463275ee1d5c39
MD5 e3d3ed77a4dcffa32d774adcaa97a944
BLAKE2b-256 13a57ee6f568a88f697b5c31ced05d1d34af87ba409bf8981a15e7a56ef0bd46

See more details on using hashes here.

File details

Details for the file djoser-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: djoser-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for djoser-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd98687cdb6d87af632c45fe6268e09c0774b3ba89db02038727ca6e711c64d
MD5 78914265c24c01001c5d9a0cdbc325db
BLAKE2b-256 e436b721ae9caaebe632b505845c93137323697bc3a2d69f11665d0f2f3a7a82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page