Skip to main content

Simple Key authentication for Django.Based on

Project description

Key authentication for django. Can be used with django-piston easily.

Based on


pip install django-apikey


Add ‘apikey’ to your


You can change the authorization header by setting the APIKEY_AUTHORIZATION_HEADER in


To add api authentication with piston do thisin your handlers.

from apikey.auth import ApiKeyAuthentication
from piston.handler import BaseHandler
from piston.resource import Resource
from myapp.models import Item

class ItemHandler(BaseHandler):
    allowed = ('GET', )
    model = Item

    def read(self):
        return Item.objects.all()

handler = Resource(
    handler=ItemHandler, authentication=ApiKeyAuthentication())


This project is base on the one of Steve Course but with several simplifications.


This software is licensed under the New BSD License.

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

django-apikey-0.1.8.tar.gz (2.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page