{ "info": { "author": "DannyAziz", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\ndjango-rest-framework-apikeys\n=====\n\ndjango-rest-framework-apikeys allows you to Authenticate your REST api with api keys on a per user basis.\n\nInstall\n-----------\n1. Install via pip::\n\n pip install django-rest-framework-apikeys\n\nQuick start\n-----------\n\n1. Add \"django-rest-framework-apikeys\" to your INSTALLED_APPS settings like this::\n\n INSTALLED_APPS = [\n ...\n 'django_rest_framework_apikeys',\n ]\n\n2. Add the authentication class::\n\n REST_FRAMEWORK = {\n 'DEFAULT_AUTHENTICATION_CLASSES': (\n ...\n 'django_rest_framework_apikeys.authentication.APIKeyAuthentication',\n )\n }\n\n3. Run `python manage.py migrate`.\n\n4. Add urls to urlconf::\n\n urlpatterns = [\n ...\n url(r'^apikeys/', include(\"django_rest_framework_apikeys.urls\")),\n ]\n\n\n5. Send a POST request to /apikeys/create/ to create API Key for user or create via admin\n\n6. Add 'x-api-key' to header to Authenticate via api key::\n\n response = requests.get(\n url=\"http://0.0.0.0:8000/endpoint,\n headers={\n \"x-api-key\": \"fd8b4a98c8f53035aeab410258430e2d86079c93\",\n },\n )", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/DannyAziz/django-rest-framework-apikeys/archive/0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DannyAziz/django-rest-framework-apikeys", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-rest-framework-apikeys", "package_url": "https://pypi.org/project/django-rest-framework-apikeys/", "platform": "", "project_url": "https://pypi.org/project/django-rest-framework-apikeys/", "project_urls": { "Download": "https://github.com/DannyAziz/django-rest-framework-apikeys/archive/0.1.tar.gz", "Homepage": "https://github.com/DannyAziz/django-rest-framework-apikeys" }, "release_url": "https://pypi.org/project/django-rest-framework-apikeys/0.1/", "requires_dist": null, "requires_python": "", "summary": "django-rest-framework-apikeys allows you to Authenticate your REST api with api keys on a per user basis.", "version": "0.1" }, "last_serial": 3616534, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6687810fb9768fb3e3087fa15c51aaca", "sha256": "2d2c392f27403db0a647f7cf4464ae355991333c9719052ed5c4affd8fbdd060" }, "downloads": -1, "filename": "django_rest_framework_apikeys-0.1.tar.gz", "has_sig": false, "md5_digest": "6687810fb9768fb3e3087fa15c51aaca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4361, "upload_time": "2018-02-26T08:46:28", "url": "https://files.pythonhosted.org/packages/d2/6d/744ecb39401e32a69c7e2d3cc1bb55585dd03f8d1df3ff2606cf76cf5089/django_rest_framework_apikeys-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6687810fb9768fb3e3087fa15c51aaca", "sha256": "2d2c392f27403db0a647f7cf4464ae355991333c9719052ed5c4affd8fbdd060" }, "downloads": -1, "filename": "django_rest_framework_apikeys-0.1.tar.gz", "has_sig": false, "md5_digest": "6687810fb9768fb3e3087fa15c51aaca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4361, "upload_time": "2018-02-26T08:46:28", "url": "https://files.pythonhosted.org/packages/d2/6d/744ecb39401e32a69c7e2d3cc1bb55585dd03f8d1df3ff2606cf76cf5089/django_rest_framework_apikeys-0.1.tar.gz" } ] }