All Projects → manosim → Django Rest Framework Api Key

manosim / Django Rest Framework Api Key

Licence: bsd-2-clause
An extra layer of authentication for Web APIs made with Django REST Framework

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Rest Framework Api Key

Django Rest React Pycon
🐍 Demo repo for Pycon X talk "Decoupling Django with Django REST (and a sprinkle of React)"
Stars: ✭ 72 (-21.74%)
Mutual labels:  django, django-rest-framework
Codingwithmitchblog Rest Api
A continuation of the CodingWithMitchBlog course. Adding a REST API using Django REST-framework
Stars: ✭ 78 (-15.22%)
Mutual labels:  django, django-rest-framework
Ara
ARA Records Ansible and makes it easier to understand and troubleshoot.
Stars: ✭ 1,176 (+1178.26%)
Mutual labels:  django, django-rest-framework
Thinkdiff
My open source project links, programming and software development related code and tutorials are in this repo. Content types: Python, JavaScript, Dart | Django, React, Flutter, React-Native etc.
Stars: ✭ 65 (-29.35%)
Mutual labels:  django, django-rest-framework
Drf Autodocs
Ultimately automated DRF documentation rendering(UNMAINTAINED)
Stars: ✭ 82 (-10.87%)
Mutual labels:  django, django-rest-framework
Django Vue Template
Django Rest + Vue JS Template
Stars: ✭ 1,155 (+1155.43%)
Mutual labels:  django, django-rest-framework
Generator Django Rest
Yeoman generator for a Django REST/GraphQL API, an optional React SPA & lots more!
Stars: ✭ 77 (-16.3%)
Mutual labels:  django, django-rest-framework
Django React
This a simple Django and React demo application
Stars: ✭ 63 (-31.52%)
Mutual labels:  django, django-rest-framework
Django Rest Framework Msgpack
MessagePack support for Django REST framework
Stars: ✭ 78 (-15.22%)
Mutual labels:  django, django-rest-framework
Education Backend
Django backend for my info-business website
Stars: ✭ 79 (-14.13%)
Mutual labels:  django, django-rest-framework
Cride Platzi
REST API project used to teach Django on Platzi
Stars: ✭ 88 (-4.35%)
Mutual labels:  django, django-rest-framework
Django Rest Swagger Docs
Beginners approach to Django Rest Swagger
Stars: ✭ 86 (-6.52%)
Mutual labels:  django, django-rest-framework
Best Of Web Python
🏆 A ranked list of awesome python libraries for web development. Updated weekly.
Stars: ✭ 1,118 (+1115.22%)
Mutual labels:  django, django-rest-framework
Indrz
Indoor mapping, routing system for orientation and wayfinding or facility management
Stars: ✭ 69 (-25%)
Mutual labels:  django, django-rest-framework
Django Crm
A Simple Django CRM (Customer Relationship Management) RESTful API Project
Stars: ✭ 63 (-31.52%)
Mutual labels:  django, django-rest-framework
Awesome Django
Repository mirror of GitLab: https://gitlab.com/rosarior/awesome-django This repository is not monitored for issues, use original at GitLab.
Stars: ✭ 8,527 (+9168.48%)
Mutual labels:  django, django-rest-framework
Django Rest Framework Tricks
Collection of various tricks for Django REST framework.
Stars: ✭ 52 (-43.48%)
Mutual labels:  django, django-rest-framework
Drf Nested Routers
Nested Routers for Django Rest Framework
Stars: ✭ 1,098 (+1093.48%)
Mutual labels:  django, django-rest-framework
The Complete Guide To Drf And Vuejs
📢 Source Code from my Web Dev Course *The Complete Guide To Django REST Framework and Vue JS* (Lang: English & Italian)
Stars: ✭ 78 (-15.22%)
Mutual labels:  django, django-rest-framework
Drf Datatable Example Server Side
DataTables Example (server-side) - Python Django REST framework
Stars: ✭ 84 (-8.7%)
Mutual labels:  django, django-rest-framework

django-rest-framework-api-key travis codecov pypi

Authenticate Web APIs made with Django REST Framework

Supports

  • Python (2.7, 3.3, 3.4, 3.5)
  • Django (1.8, 1.9, 1.10)
  • Django Rest Framework (3+)

Installation

Install using pip:

pip install drfapikey

Add 'rest_framework_api_key' to your INSTALLED_APPS setting:

INSTALLED_APPS = (
    ...
    'rest_framework_api_key',
)

Finally set the django-rest-framework permissions under your django settings:

REST_FRAMEWORK = {
    'DEFAULT_PERMISSION_CLASSES': (
        'rest_framework_api_key.permissions.HasAPIAccess',
    )
}

Example Request

response = requests.get(
    url="http://0.0.0.0:8000/api/login",
    headers={
        "Api-Key": "fd8b4a98c8f53035aeab410258430e2d86079c93",
    },
)

Tests

pyvenv env
source env/bin/activate
pip install -r requirements/requirements-testing.txt
python runtests.py

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request
  6. Make sure tests are passing
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].