Skip to main content

User APP for Django REST Framework with API Views

Project description

Build Status codecov Total alerts Language grade: Python Code style: black pre-commit.ci status Documentation Status Documentation Coverage

Django REST Framework - User


User APP for Django REST Framework with API Views.

DRF User is a Django app that overrides default user app to provide additional attributes and functionalities. The current stable version includes:

  • JWT Support (Using Simple JWT)
  • Mobile Number
  • Single field for full name
  • REST API to register
  • REST API to login
  • MultiModelBackend: User can login using either of mobile, email or username
  • REST API to login with OTP (Same API endpoint as for OTP Verification; Set is_login: true while sending JSON request)
  • OTP Verification for mobile and email
  • API to register / login with OTP (no pre-registration required)
  • API to set user's profile image
  • Mail sending feature upon successful registration
  • SMS sending feature upon successful registration
  • Change Password
  • Update Profile
  • Generic Configuration based on settings.py
  • Signal based mails
  • Mail based activation (optional alternative for OTP based activation)
  • Social Auth Endpoints(Login using fb/google) (WIP)

Documentation


Example


To get the example project running do:

  • Clone this repo
    $ git clone https://github.com/101Loop/drf-user.git
    
  • Go to example folder in newly created directory drf-user
    $ cd drf-user/example
    
  • Create and activate virtual environment.
  • Install requirements
    (.venv) $ pip install -r requirements.txt
    
  • Run testing server:
    (.venv) $ python manage.py runserver
    

Take a look at http://localhost:8000/swagger. Swagger will list all the APIs of drf-user.

Contributing


  • For help and support please reach out to us on Slack.

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

drf_user-1.1.0.tar.gz (220.7 kB view details)

Uploaded Source

Built Distribution

drf_user-1.1.0-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file drf_user-1.1.0.tar.gz.

File metadata

  • Download URL: drf_user-1.1.0.tar.gz
  • Upload date:
  • Size: 220.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for drf_user-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5bf113810d4415492901d7c3fe1c8952548c348c829061cd17c8c9c6d3a04bf0
MD5 b2fdb3f839dd4b624d2d1d8c048e9898
BLAKE2b-256 3031be4841a2ecc14856bca9c3cc3fd631beca65b566bb9dc04f781912e59bb8

See more details on using hashes here.

File details

Details for the file drf_user-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: drf_user-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for drf_user-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8223219030763f2834d3e3118d56c60c45dfb7706034efb91e36131b41a5ee77
MD5 3a3c626cbc015c8378b73585f95fe5db
BLAKE2b-256 3b55e24f35d9ea4f2be70fa2f8ffd35559488fe815b590892213fdb01cff0b6e

See more details on using hashes here.

Supported by

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