{ "info": { "author": "lambdaTW", "author_email": "lambda@lambda.tw", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Ponddy Cookie Agreement\nThe simple cookie agreement implementation and logging user accepting action.\n## Installation\n### Normal\nInstall using pip\n```shell-script\npip install ponddy-cookie-agreement\n```\n\nAdd `cookie_policy` to your `INSTALL_APPS` setting.\n```python\nINSTALLED_APPS = [\n ...\n 'cookie_policy',\n]\n```\nAdd endpoint on your API root `urlpatterns`\n\n```python\nurlpatterns = [\n ...\n path('cookie/policy/', include('cookie_policy.urls')),\n]\n```\n\n### Use template\nCheck your `TEMPLATES` setting already have `request` context process in your `context_processors`\n\n```python\nTEMPLATES = [\n {\n ...\n 'OPTIONS': {\n 'context_processors': [\n ...,\n 'django.template.context_processors.request'\n ],\n },\n }\n]\n```\n\nAdd the CSS and JS file and `include` tag in your template what page you want to show the cookie policy agreement\n```html\n{% load static %}\n\n\n\n\n\n\n\n\n\n{% include 'cookie_agreement.html' %}\n\n```\n\n## Settings\n\n### URLs\n#### `COOKIE_POLICY_URL`\n#### `PRIVACY_POLICY_URL`\n#### `TERM_OF_SERVICE_URL`\n\n### THROTTLE\nSetting the restful default throttle rates for throttling the accept cookie policy API\n#### `DEFAULT_THROTTLE_RATES`\nExample:\n```python\nREST_FRAMEWORK = {\n\t'DEFAULT_THROTTLE_RATES': {\n 'user': '100/day',\n 'anon': '100/day',\n }\n}\n```\nIf you do not want to limit user and your settings already have throttle rates please set `user` and `anon` to `None`\n```python\nREST_FRAMEWORK = {\n\t'DEFAULT_THROTTLE_RATES': {\n 'your_other_scope': '100/day',\n 'user': None,\n 'anon': None,\n }\n}\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/samwuTW/ponddy-cookie-agreement", "keywords": "Ponddy cookie GDPR", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ponddy-cookie-agreement", "package_url": "https://pypi.org/project/ponddy-cookie-agreement/", "platform": "", "project_url": "https://pypi.org/project/ponddy-cookie-agreement/", "project_urls": { "Homepage": "https://github.com/samwuTW/ponddy-cookie-agreement" }, "release_url": "https://pypi.org/project/ponddy-cookie-agreement/0.0.7/", "requires_dist": [ "Django", "djangorestframework" ], "requires_python": "", "summary": "The cookie agreement API for logging user agreement", "version": "0.0.7" }, "last_serial": 5773548, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f14ab28747429dae30d4149d60af66a0", "sha256": "d3f1c795b9e5cea64cc385ec228c80f1d803537f654a8a813a80ac9df83ce198" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f14ab28747429dae30d4149d60af66a0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4824, "upload_time": "2019-08-14T09:06:25", "url": "https://files.pythonhosted.org/packages/7e/e9/5d303f3c19601948e746bc4ce59aff0b9eef5160384439b0d6c1aa647526/ponddy_cookie_agreement-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8ff346472219ce91961e5b30928cd7f7", "sha256": "7f8af9cc4c2d7dc9a35135c8634172fe6eecc89bf50b05802892f42ff93b0dbf" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8ff346472219ce91961e5b30928cd7f7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8969, "upload_time": "2019-08-14T09:18:17", "url": "https://files.pythonhosted.org/packages/a2/2b/bca4b429a92375d3907a47936615e46ab425d44436b3fc4d4160a002eacd/ponddy_cookie_agreement-0.0.2-py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "84d5ead62310f20a664e6ac89f7bbfd8", "sha256": "ad05f17c2afed5792d787140fe00bc2e32273a00fb9ca857f47c948b7f7cbcec" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "84d5ead62310f20a664e6ac89f7bbfd8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8967, "upload_time": "2019-08-14T23:20:38", "url": "https://files.pythonhosted.org/packages/a3/a6/5932ed4053378f3fca6f53aa5a500d8db7c6f8dd1634030627deb73aa8dd/ponddy_cookie_agreement-0.0.3-py3-none-any.whl" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "0e43bd9cef968f56b021a8c240fb2a8f", "sha256": "6286106278af39e35689b0d78d3b1b565acb24496b11148ab307a5bf24b87834" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0e43bd9cef968f56b021a8c240fb2a8f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13601, "upload_time": "2019-08-15T00:46:31", "url": "https://files.pythonhosted.org/packages/7b/6b/32dc4c49e267d5ebe25096c67ee709d9891bceb410e5fb487ae551c89939/ponddy_cookie_agreement-0.0.4-py3-none-any.whl" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7ac92714e7d92e9a7b4e6ee5bdc28927", "sha256": "4bd93382c7667208a43a87a956bbdfb0bfc667078560fc94b75af601e652de45" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "7ac92714e7d92e9a7b4e6ee5bdc28927", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13649, "upload_time": "2019-08-29T06:49:47", "url": "https://files.pythonhosted.org/packages/e4/52/3d0a7a52d5b770d86f8e03f4cb5102aecdc1fca2563d27b466ba53e94f69/ponddy_cookie_agreement-0.0.5-py3-none-any.whl" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "0306b19dc6339265ebdcc1048aede594", "sha256": "17513b1f47613b57b7fa7b5fed7b15c86e2da2d1ff00b66a27f4fa383f5c13d6" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "0306b19dc6339265ebdcc1048aede594", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13646, "upload_time": "2019-08-29T07:10:17", "url": "https://files.pythonhosted.org/packages/51/44/b58c41c45d49b368262d6ba39d6f2cc726d217479a37e0b0aa678df44678/ponddy_cookie_agreement-0.0.6-py3-none-any.whl" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "c7083f4b93cbac063d276478d6092168", "sha256": "e6b133ce80f54d7b35edd77592dcebfff55f8e4bc3177998645bbbf5799207e1" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "c7083f4b93cbac063d276478d6092168", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13692, "upload_time": "2019-09-03T02:49:44", "url": "https://files.pythonhosted.org/packages/3d/61/be9b203d438dbdd13a8b2c00e5a712b047fcfad393d9e27989550de84d91/ponddy_cookie_agreement-0.0.7-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c7083f4b93cbac063d276478d6092168", "sha256": "e6b133ce80f54d7b35edd77592dcebfff55f8e4bc3177998645bbbf5799207e1" }, "downloads": -1, "filename": "ponddy_cookie_agreement-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "c7083f4b93cbac063d276478d6092168", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13692, "upload_time": "2019-09-03T02:49:44", "url": "https://files.pythonhosted.org/packages/3d/61/be9b203d438dbdd13a8b2c00e5a712b047fcfad393d9e27989550de84d91/ponddy_cookie_agreement-0.0.7-py3-none-any.whl" } ] }