Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Rest extension of PyOTP python library, Here OTP generation and Verification is done via DRF APIs.

Project Description

  • This library uses PyOTP library for generating and verifying one-time passwords.Here OTP generation and Verification is done via DRF APIs.
  • The main focus is to open an API for OTP Generation & Verification.
  • Supports Python2.7+, Django 1.8+


pip install drf-pyotp


  • Add rest_pyotp app in your installed apps:

  • Run migrations using:

    python migrate
  • Add Urls in your url file:

    url(r'', include('rest_pyotp.routers', namespace='rest-pyotp-urls')),


  • I have used swagger-spec for documenting APIs. You can find out APIs swagger docs here


  • If anyone wish to contribute in improving this library then he is most welcome, due credit will be given to every individual.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(8.9 kB) Copy SHA256 Hash SHA256
Source May 31, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting