{ "info": { "author": "Alireza Savand", "author_email": "alireza.savand@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Development Status :: 6 - Mature", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development", "Topic :: Software Development :: Libraries" ], "description": "===============\ndjango-crequest\n===============\n\n.. contents:: \n\nOverview\n========\n- ``crequest`` takes care of current ``request`` in silent way.\n- ``crequest`` will bring you current ``request`` object of your Django application from anywhere in your code.\n\nInstalling\n==========\n\n``django-crequest`` is available on http://pypi.python.org/pypi/django-crequest\nSo it can be installed it by pip::\n\n $ python pip install django-crequest\n\nOr you can grab the latest version tarball and ::\n\n $ python setup.py install\n\nTo enable ``django-crequest`` in your project\n\n* Add ``crequest`` to *INSTALLED_APPS* in your **settings.py**\n* Add ``crequest.middleware.CrequestMiddleware`` to ``MIDDLEWARE_CLASSES`` after the authentication and session middleware.\n\n\nSupported Python versions\n=========================\n\n``django-crequest`` currently can be run on multiple python versions:\n\n* Python 2\n* Python 3\n* PyPy\n\n\nHow to use\n==========\n\nFirst import the crequest's middleware::\n\n from crequest.middleware import CrequestMiddleware\n\nGet the current ``request`` ;)::\n\n current_request = CrequestMiddleware.get_request()\n\nDone.\n\nIn depth & Complex details\n==========================\n\nSet the current request in UnKnown situations::\n\n CrequestMiddleware.set_request(request)\n\nReturn *iam_request* if there is no current request::\n\n CrequestMiddleware.get_request(iam_request)\n\nAnd finally delete::\n\n CrequestMiddleware.del_request()\n\nThe middleware automatically sets/deletes the current request for HTTP requests.\nFor other uses (management commands, scripts), you will need to do this yourself.\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Alir3z4/django-crequest", "keywords": "django", "license": "Copyright (c) 2012-2018 Alireza Savand\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n * Neither the name of the authors nor the\n names of its contributors may be used to endorse or promote products\n derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n", "maintainer": "", "maintainer_email": "", "name": "django-crequest", "package_url": "https://pypi.org/project/django-crequest/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-crequest/", "project_urls": { "Homepage": "https://github.com/Alir3z4/django-crequest" }, "release_url": "https://pypi.org/project/django-crequest/2018.5.11/", "requires_dist": null, "requires_python": "", "summary": "Middleware that makes the current request available from anywhere.", "version": "2018.5.11" }, "last_serial": 3853564, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "0830cc48dfa63593fa7c3e23a6b5ea62", "sha256": "c80f30676f5dd432e9fc5abbf2f08af9c38ba080994f3eac61eef003ee51513f" }, "downloads": -1, "filename": "django-crequest-1.0.tar.gz", "has_sig": false, "md5_digest": "0830cc48dfa63593fa7c3e23a6b5ea62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3428, "upload_time": "2012-05-23T16:19:52", "url": "https://files.pythonhosted.org/packages/e7/12/02fca73b3b66972fe49b64b4c23587b283edc7d15b9aa6751e6f309fd515/django-crequest-1.0.tar.gz" } ], "2014.9.19": [ { "comment_text": "", "digests": { "md5": "aae9ef4377d77daff6507791ac5bd8f4", "sha256": "f0ea01d13d1320766cca1c76f17d3381ce954ab0a830b3084cbe8bf8040f35d0" }, "downloads": -1, "filename": "django-crequest-2014.9.19.tar.gz", "has_sig": false, "md5_digest": "aae9ef4377d77daff6507791ac5bd8f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4124, "upload_time": "2014-09-19T16:43:56", "url": "https://files.pythonhosted.org/packages/ea/8f/29c4729fb2036eedf4351c79ea2429a62e0397c4c9b24ace5c9b4a8a3a7e/django-crequest-2014.9.19.tar.gz" } ], "2016.3.16": [ { "comment_text": "", "digests": { "md5": "ec4d41c10eb5c29702c33d12e1822162", "sha256": "5f50e303c613e01fe05bff2cd6e4b9fc2e177a79d080d7eef8dce281425e013e" }, "downloads": -1, "filename": "django-crequest-2016.3.16.tar.gz", "has_sig": false, "md5_digest": "ec4d41c10eb5c29702c33d12e1822162", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4103, "upload_time": "2017-03-16T08:07:24", "url": "https://files.pythonhosted.org/packages/e5/7f/54672967bc93aef74ab8129d28dc538661b7850f6f3e93ce0dff731c2afb/django-crequest-2016.3.16.tar.gz" } ], "2018.5.1": [ { "comment_text": "", "digests": { "md5": "aee16c7bb6f6da5519805f531b420c81", "sha256": "3cb18c13ee7567b4c4c0afb806f5ceba4b9c972954b9a07ad1c5ae344a9f42e6" }, "downloads": -1, "filename": "django-crequest-2018.5.1.tar.gz", "has_sig": false, "md5_digest": "aee16c7bb6f6da5519805f531b420c81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4298, "upload_time": "2018-05-02T18:25:42", "url": "https://files.pythonhosted.org/packages/ac/36/80fc1d95cea52f5ff1cc3bbf338c8e1a18388b5b75b0c316f62afdf69e89/django-crequest-2018.5.1.tar.gz" } ], "2018.5.11": [ { "comment_text": "", "digests": { "md5": "7dc631de3247a1397c395f0089edbb94", "sha256": "e623ec6b2933790717307d5a59cf9db39ff4928b53c506948e1d05776ef4a034" }, "downloads": -1, "filename": "django-crequest-2018.5.11.tar.gz", "has_sig": false, "md5_digest": "7dc631de3247a1397c395f0089edbb94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4357, "upload_time": "2018-05-11T09:37:55", "url": "https://files.pythonhosted.org/packages/0f/61/d2e95ff46d2d117b79873d6922665d711b35357b50b854a0e9cf42806431/django-crequest-2018.5.11.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7dc631de3247a1397c395f0089edbb94", "sha256": "e623ec6b2933790717307d5a59cf9db39ff4928b53c506948e1d05776ef4a034" }, "downloads": -1, "filename": "django-crequest-2018.5.11.tar.gz", "has_sig": false, "md5_digest": "7dc631de3247a1397c395f0089edbb94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4357, "upload_time": "2018-05-11T09:37:55", "url": "https://files.pythonhosted.org/packages/0f/61/d2e95ff46d2d117b79873d6922665d711b35357b50b854a0e9cf42806431/django-crequest-2018.5.11.tar.gz" } ] }