{ "info": { "author": "Sergio Oliveira", "author_email": "seocam@seocam.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django DupRequests\n==================\n\nMiddleware for dropping duplicated requests\n\nGetting Started\n---------------\n\nJust install, register the middleware and enjoy. You can adjust the\ntimeout for duplicated requests on your settings.py file.\n\nPrerequisites\n~~~~~~~~~~~~~\n\nYou need Django >= 1.9 for this to work. It may work on previous\nversions, but I haven\u2019t tested it. I also tested with Django 2.0, but it\nmay still break before it\u2019s released.\n\nInstalling\n~~~~~~~~~~\n\n::\n\n pip install django-duprequests\n\nAdd the middleware to your MIDDLEWARE or MIDDLEWARE_CLASSES (depending\non your Django version)\n\n::\n\n MIDDLEWARE_CLASSES = [\n (...)\n 'duprequests.middleware.DropDuplicatedRequests',\n (...)\n ]\n\nCustomizing\n~~~~~~~~~~~\n\nAlso on ``settings.py`` you can set up a few variables:\n\n``DUPLICATED_REQUESTS_CACHE_NAME`` - the name of the cache (default\nvalue is ``default``) ``DUPLICATED_REQUESTS_CACHE_TIMEOUT`` - cache\ntimeout (default value is ``5``; in seconds)\n``DUPLICATED_REQUESTS_COOKIE_NAME`` - name of the cookie set on the\nuser\u2019s session (default value is ``dj-request-id``)\n``DUPLICATED_REQUESTS_COOKIE_PREFIX`` - cookie prefix, combined with a\nrandom UUID to set the response cookie (default value is\n``request-id-``)\n\nRunning the tests\n-----------------\n\nThe test suite runs outside of a django app (it simulates a very simple\none). Just run tests.py and you\u2019re golden.\n\nContributing\n------------\n\nFeel free to contribute to this project! Documentation is close to\nnon-existant. Bug reports and enhancement requests can be submitted on\nhttps://github.com/CraveFood/django-duprequests/issues \u2013 Pull Requests\nare also welcome!\n\nAuthors\n-------\n\n- **Sergio Oliveira** - *Initial work* -\n `Seocam `__\n- **Danilo Martins** - *Packaging and distribution* -\n `Mawkee `__\n\nLicense\n-------\n\nThis project is licensed under the BSD License - see the\n`LICENSE `__ file for details\n\nAcknowledgments\n---------------\n\n- The simple test suite was copied from project Django CORS Middleware\n by @zestedesavoir \u2013\n https://github.com/zestedesavoir/django-cors-middleware\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CraveFood/django-duprequests", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-duprequests", "package_url": "https://pypi.org/project/django-duprequests/", "platform": "", "project_url": "https://pypi.org/project/django-duprequests/", "project_urls": { "Homepage": "https://github.com/CraveFood/django-duprequests" }, "release_url": "https://pypi.org/project/django-duprequests/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Drop duplicated requests", "version": "0.1.3" }, "last_serial": 5183440, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "4ff4ed070a11362d88291ce97f172e8b", "sha256": "93e15b0b7eb765bcb6d287e2676e1bcdd2b9c584fd7a23488f07537568ef381f" }, "downloads": -1, "filename": "django-duprequests-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4ff4ed070a11362d88291ce97f172e8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3591, "upload_time": "2018-01-02T22:11:21", "url": "https://files.pythonhosted.org/packages/66/cb/99e58b466cf8310886f37cfaa811df8148f24b890b9f6a4c6ad35c0caf2d/django-duprequests-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a4fdfb8475ee90cfe448449c804eaa6a", "sha256": "acab4eb245a0de7a14fd4df0a0f14dab3e635b50729c1fdc0996a6922e1b8381" }, "downloads": -1, "filename": "django-duprequests-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a4fdfb8475ee90cfe448449c804eaa6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3580, "upload_time": "2018-01-02T22:19:57", "url": "https://files.pythonhosted.org/packages/ce/aa/5651b0ec673d82533967fc2ec84d28fa9cae1898708fdb7d9a27725f3abc/django-duprequests-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a4fdfb8475ee90cfe448449c804eaa6a", "sha256": "acab4eb245a0de7a14fd4df0a0f14dab3e635b50729c1fdc0996a6922e1b8381" }, "downloads": -1, "filename": "django-duprequests-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a4fdfb8475ee90cfe448449c804eaa6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3580, "upload_time": "2018-01-02T22:19:57", "url": "https://files.pythonhosted.org/packages/ce/aa/5651b0ec673d82533967fc2ec84d28fa9cae1898708fdb7d9a27725f3abc/django-duprequests-0.1.3.tar.gz" } ] }