django-crum


Namedjango-crum JSON
Version 0.7.9 PyPI version JSON
download
home_pagehttps://github.com/ninemoreminutes/django-crum/
SummaryDjango middleware to capture current request and user.
upload_time2020-11-10 17:15:35
maintainer
docs_urlhttps://pythonhosted.org/django-crum/
authorNine More Minutes, Inc.
requires_python
licenseBSD
keywords django request user middleware thread local
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            |Build Status| |PyPI Version| |PyPI License| |Python Versions| |Django Versions| |Read the Docs|

Django-CRUM
===========

Django-CRUM (Current Request User Middleware) captures the current request and
user in thread local storage.

It enables apps to check permissions, capture audit trails or otherwise access
the current request and user without requiring the request object to be passed
directly. It also offers a context manager to allow for temporarily
impersonating another user.

It provides a signal to extend the built-in function for getting the current
user, which could be helpful when using custom authentication methods or user
models.

Documentation can be found at `RTFD <http://django-crum.readthedocs.io/>`_.

It is tested against:
 * Django 1.11 (Python 3.5 and 3.6)
 * Django 2.0 (Python 3.5, 3.6 and 3.7)
 * Django 2.1 (Python 3.5, 3.6 and 3.7)
 * Django 2.2 (Python 3.5, 3.6, 3.7, 3.8 and 3.9)
 * Django 3.0 (Python 3.6, 3.7, 3.8 and 3.9)
 * Django 3.1 (Python 3.6, 3.7, 3.8 and 3.9)
 * Django master/3.2 (Python 3.6, 3.7, 3.8 and 3.9)

.. |Build Status| image:: https://img.shields.io/github/workflow/status/ninemoreminutes/django-crum/test
   :target: https://github.com/ninemoreminutes/django-crum/actions?query=workflow%3Atest
.. |PyPI Version| image:: https://img.shields.io/pypi/v/django-crum.svg
   :target: https://pypi.python.org/pypi/django-crum/
.. |PyPI License| image:: https://img.shields.io/pypi/l/django-crum.svg
   :target: https://pypi.python.org/pypi/django-crum/
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/django-crum.svg
   :target: https://pypi.python.org/pypi/django-crum/
.. |Django Versions| image:: https://img.shields.io/pypi/djversions/django-crum.svg
   :target: https://pypi.org/project/django-crum/
.. |Read the Docs| image:: https://img.shields.io/readthedocs/django-crum.svg
   :target: http://django-crum.readthedocs.io/



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ninemoreminutes/django-crum/",
    "name": "django-crum",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/django-crum/",
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django,request,user,middleware,thread,local",
    "author": "Nine More Minutes, Inc.",
    "author_email": "support@ninemoreminutes.com",
    "download_url": "https://files.pythonhosted.org/packages/34/1d/c56588f67130aeef8828e47535e8551337d2ae02f91f1414da61bc5e49fb/django-crum-0.7.9.tar.gz",
    "platform": "",
    "description": "|Build Status| |PyPI Version| |PyPI License| |Python Versions| |Django Versions| |Read the Docs|\n\nDjango-CRUM\n===========\n\nDjango-CRUM (Current Request User Middleware) captures the current request and\nuser in thread local storage.\n\nIt enables apps to check permissions, capture audit trails or otherwise access\nthe current request and user without requiring the request object to be passed\ndirectly. It also offers a context manager to allow for temporarily\nimpersonating another user.\n\nIt provides a signal to extend the built-in function for getting the current\nuser, which could be helpful when using custom authentication methods or user\nmodels.\n\nDocumentation can be found at `RTFD <http://django-crum.readthedocs.io/>`_.\n\nIt is tested against:\n * Django 1.11 (Python 3.5 and 3.6)\n * Django 2.0 (Python 3.5, 3.6 and 3.7)\n * Django 2.1 (Python 3.5, 3.6 and 3.7)\n * Django 2.2 (Python 3.5, 3.6, 3.7, 3.8 and 3.9)\n * Django 3.0 (Python 3.6, 3.7, 3.8 and 3.9)\n * Django 3.1 (Python 3.6, 3.7, 3.8 and 3.9)\n * Django master/3.2 (Python 3.6, 3.7, 3.8 and 3.9)\n\n.. |Build Status| image:: https://img.shields.io/github/workflow/status/ninemoreminutes/django-crum/test\n   :target: https://github.com/ninemoreminutes/django-crum/actions?query=workflow%3Atest\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/django-crum.svg\n   :target: https://pypi.python.org/pypi/django-crum/\n.. |PyPI License| image:: https://img.shields.io/pypi/l/django-crum.svg\n   :target: https://pypi.python.org/pypi/django-crum/\n.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/django-crum.svg\n   :target: https://pypi.python.org/pypi/django-crum/\n.. |Django Versions| image:: https://img.shields.io/pypi/djversions/django-crum.svg\n   :target: https://pypi.org/project/django-crum/\n.. |Read the Docs| image:: https://img.shields.io/readthedocs/django-crum.svg\n   :target: http://django-crum.readthedocs.io/\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Django middleware to capture current request and user.",
    "version": "0.7.9",
    "project_urls": {
        "Documentation": "https://django-crum.rtfd.org/",
        "Homepage": "https://github.com/ninemoreminutes/django-crum/",
        "Source": "https://github.com/ninemoreminutes/django-crum/",
        "Tracker": "https://github.com/ninemoreminutes/django-crum/issues"
    },
    "split_keywords": [
        "django",
        "request",
        "user",
        "middleware",
        "thread",
        "local"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cdf98fad70a3bd011a6be7c5c6067278f006a25341eb39d901fbda307e26804c",
                "md5": "365784792117f1150dcfd4644587945e",
                "sha256": "037cc8b822975bb1d41cd24269b59a512cc77448fadc3f34ab9a17b229b4b471"
            },
            "downloads": -1,
            "filename": "django_crum-0.7.9-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "365784792117f1150dcfd4644587945e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 4714,
            "upload_time": "2020-11-10T17:15:33",
            "upload_time_iso_8601": "2020-11-10T17:15:33.781530Z",
            "url": "https://files.pythonhosted.org/packages/cd/f9/8fad70a3bd011a6be7c5c6067278f006a25341eb39d901fbda307e26804c/django_crum-0.7.9-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "341dc56588f67130aeef8828e47535e8551337d2ae02f91f1414da61bc5e49fb",
                "md5": "1a4e40aa27039fa2721ff88b8d53ab29",
                "sha256": "65e9bc0f070a663fafc4d9e357f45fd4e6f01838b20a9e2fb7670f5706754288"
            },
            "downloads": -1,
            "filename": "django-crum-0.7.9.tar.gz",
            "has_sig": false,
            "md5_digest": "1a4e40aa27039fa2721ff88b8d53ab29",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5168,
            "upload_time": "2020-11-10T17:15:35",
            "upload_time_iso_8601": "2020-11-10T17:15:35.124283Z",
            "url": "https://files.pythonhosted.org/packages/34/1d/c56588f67130aeef8828e47535e8551337d2ae02f91f1414da61bc5e49fb/django-crum-0.7.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-11-10 17:15:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ninemoreminutes",
    "github_project": "django-crum",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "django-crum"
}
        
Elapsed time: 0.19200s