{ "info": { "author": "Emmanouil Konstantinidis", "author_email": "manos@iamemmanouil.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# django-rest-framework-api-key [![travis][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] [![pypi][pypi-image]][pypi-url]\nAuthenticate Web APIs made with Django REST Framework\n\n\n### Supports\n\n - Python (2.7, 3.3, 3.4, 3.5)\n - Django (1.8, 1.9, 1.10)\n - Django Rest Framework (3+)\n\n\n### Installation\n\nInstall using pip:\n\n pip install drfapikey\n\nAdd 'rest_framework_api_key' to your `INSTALLED_APPS` setting:\n\n INSTALLED_APPS = (\n ...\n 'rest_framework_api_key',\n )\n\nFinally set the django-rest-framework permissions under your django settings:\n\n REST_FRAMEWORK = {\n 'DEFAULT_PERMISSION_CLASSES': (\n 'rest_framework_api_key.permissions.HasAPIAccess',\n )\n }\n\n\n### Example Request\n\n```python\nresponse = requests.get(\n url=\"http://0.0.0.0:8000/api/login\",\n headers={\n \"Api-Key\": \"fd8b4a98c8f53035aeab410258430e2d86079c93\",\n },\n)\n```\n\n\n### Tests\n \n pyvenv env\n source env/bin/activate\n pip install -r requirements/requirements-testing.txt\n python runtests.py\n\n\n### Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request\n6. Make sure tests are passing\n\n\n[travis-image]: https://travis-ci.org/ekonstantinidis/django-rest-framework-api-key.svg?branch=master\n[travis-url]: https://travis-ci.org/ekonstantinidis/django-rest-framework-api-key\n\n[codecov-image]: https://codecov.io/github/ekonstantinidis/django-rest-framework-api-key/coverage.svg?branch=master\n[codecov-url]:https://codecov.io/github/ekonstantinidis/django-rest-framework-api-key?branch=master\n\n[pypi-image]: https://badge.fury.io/py/drfapikey.svg\n[pypi-url]: https://pypi.python.org/pypi/drfapikey/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ekonstantinidis/django-rest-framework-api-key", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "drfapikey", "package_url": "https://pypi.org/project/drfapikey/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/drfapikey/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ekonstantinidis/django-rest-framework-api-key" }, "release_url": "https://pypi.org/project/drfapikey/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Authenticate Web APIs made with Django REST Framework", "version": "0.0.3" }, "last_serial": 2300160, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fbe430b3973771d5fde0e9f41d6fdd18", "sha256": "6b9fc3a5c915bde96b7891b1a772c70eca8f5e7eb5517bfdd5de40e598f37da4" }, "downloads": -1, "filename": "drfapikey-0.0.1.tar.gz", "has_sig": false, "md5_digest": "fbe430b3973771d5fde0e9f41d6fdd18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5559, "upload_time": "2016-08-24T09:57:48", "url": "https://files.pythonhosted.org/packages/79/bf/b84af0d09c556b603d7cda2e062ec235f9c470f79c93928c69c218439be8/drfapikey-0.0.1.tar.gz" } ], "0.0.2": [], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e417dd62b954848d79c1321a0074b9cb", "sha256": "6e5d1b507482debf68f9d02d501f31b687f5431a040c38bd67b9cc13e109d39c" }, "downloads": -1, "filename": "drfapikey-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e417dd62b954848d79c1321a0074b9cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5912, "upload_time": "2016-08-24T10:09:58", "url": "https://files.pythonhosted.org/packages/6f/bf/832e2d54da87e350d73867612ef659ccb164b6135d83ecbcdf47c77e8b1a/drfapikey-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e417dd62b954848d79c1321a0074b9cb", "sha256": "6e5d1b507482debf68f9d02d501f31b687f5431a040c38bd67b9cc13e109d39c" }, "downloads": -1, "filename": "drfapikey-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e417dd62b954848d79c1321a0074b9cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5912, "upload_time": "2016-08-24T10:09:58", "url": "https://files.pythonhosted.org/packages/6f/bf/832e2d54da87e350d73867612ef659ccb164b6135d83ecbcdf47c77e8b1a/drfapikey-0.0.3.tar.gz" } ] }