aiohttp-security


Nameaiohttp-security JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/aio-libs/aiohttp_security/
Summarysecurity for aiohttp.web
upload_time2023-11-18 20:10:32
maintainer
docs_urlNone
authorAndrew Svetlov
requires_python
licenseApache 2
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            aiohttp_security
================
.. image:: https://travis-ci.com/aio-libs/aiohttp-security.svg?branch=master
    :target: https://travis-ci.com/aio-libs/aiohttp-security
.. image:: https://codecov.io/github/aio-libs/aiohttp-security/coverage.svg?branch=master
    :target: https://codecov.io/github/aio-libs/aiohttp-security
.. image:: https://readthedocs.org/projects/aiohttp-security/badge/?version=latest
    :target: https://aiohttp-security.readthedocs.io/
.. image:: https://img.shields.io/pypi/v/aiohttp-security.svg
    :target: https://pypi.python.org/pypi/aiohttp-security

The library provides identity and authorization for `aiohttp.web`__.

.. _aiohttp_web: http://aiohttp.readthedocs.org/en/latest/web.html

__ aiohttp_web_

Installation
------------
Simplest case (authorization via cookies) ::

    $ pip install aiohttp_security

With `aiohttp-session` support ::

    $ pip install aiohttp_security[session]

Examples
--------
Take a look at examples:

`Basic example`_

`Example with DB auth`_

.. _`Basic example`: docs/example.rst
.. _`Example with db auth`: docs/example_db_auth.rst

and demos at **demo** directory.

Documentation
-------------

https://aiohttp-security.readthedocs.io/

Develop
-------

``pip install -r requirements-dev.txt``


License
-------

``aiohttp_security`` is offered under the Apache 2 license.

=======
CHANGES
=======

.. towncrier release notes start

0.5.0 (2023-11-18)
==================

- Added type annotations.
- Added a reason message when permission is rejected.
- Switched to ``aiohttp.web.AppKey``.
- Reverted change in ``JWTIdentityPolicy`` so identity returns ``str``.

0.4.0 (2018-09-27)
==================

- Bump minimal supported ``aiohttp`` version to 3.2.
- Use ``request.config_dict`` for accessing ``jinja2`` environment. It
  allows to reuse jinja rendering engine from parent application.

0.3.0 (2018-09-06)
==================

- Deprecate ``login_required`` and ``has_permission`` decorators.
  Use ``check_authorized`` and ``check_permission`` helper functions instead.
- Bump supported ``aiohttp`` version to 3.0+.
- Enable strong warnings mode for test suite, clean-up all deprecation warnings.
- Polish documentation

0.2.0 (2017-11-17)
==================

- Add ``is_anonymous``, ``login_required``, ``has_permission`` helpers. (#114)

0.1.2 (2017-10-17)
==================

- Make aiohttp-session optional dependency. (#107)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aio-libs/aiohttp_security/",
    "name": "aiohttp-security",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Andrew Svetlov",
    "author_email": "andrew.svetlov@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/31/49/56c131fe3dead875ab5907b154dac7fb6ee727662de80b7da0ff045030d4/aiohttp-security-0.5.0.tar.gz",
    "platform": null,
    "description": "aiohttp_security\n================\n.. image:: https://travis-ci.com/aio-libs/aiohttp-security.svg?branch=master\n    :target: https://travis-ci.com/aio-libs/aiohttp-security\n.. image:: https://codecov.io/github/aio-libs/aiohttp-security/coverage.svg?branch=master\n    :target: https://codecov.io/github/aio-libs/aiohttp-security\n.. image:: https://readthedocs.org/projects/aiohttp-security/badge/?version=latest\n    :target: https://aiohttp-security.readthedocs.io/\n.. image:: https://img.shields.io/pypi/v/aiohttp-security.svg\n    :target: https://pypi.python.org/pypi/aiohttp-security\n\nThe library provides identity and authorization for `aiohttp.web`__.\n\n.. _aiohttp_web: http://aiohttp.readthedocs.org/en/latest/web.html\n\n__ aiohttp_web_\n\nInstallation\n------------\nSimplest case (authorization via cookies) ::\n\n    $ pip install aiohttp_security\n\nWith `aiohttp-session` support ::\n\n    $ pip install aiohttp_security[session]\n\nExamples\n--------\nTake a look at examples:\n\n`Basic example`_\n\n`Example with DB auth`_\n\n.. _`Basic example`: docs/example.rst\n.. _`Example with db auth`: docs/example_db_auth.rst\n\nand demos at **demo** directory.\n\nDocumentation\n-------------\n\nhttps://aiohttp-security.readthedocs.io/\n\nDevelop\n-------\n\n``pip install -r requirements-dev.txt``\n\n\nLicense\n-------\n\n``aiohttp_security`` is offered under the Apache 2 license.\n\n=======\nCHANGES\n=======\n\n.. towncrier release notes start\n\n0.5.0 (2023-11-18)\n==================\n\n- Added type annotations.\n- Added a reason message when permission is rejected.\n- Switched to ``aiohttp.web.AppKey``.\n- Reverted change in ``JWTIdentityPolicy`` so identity returns ``str``.\n\n0.4.0 (2018-09-27)\n==================\n\n- Bump minimal supported ``aiohttp`` version to 3.2.\n- Use ``request.config_dict`` for accessing ``jinja2`` environment. It\n  allows to reuse jinja rendering engine from parent application.\n\n0.3.0 (2018-09-06)\n==================\n\n- Deprecate ``login_required`` and ``has_permission`` decorators.\n  Use ``check_authorized`` and ``check_permission`` helper functions instead.\n- Bump supported ``aiohttp`` version to 3.0+.\n- Enable strong warnings mode for test suite, clean-up all deprecation warnings.\n- Polish documentation\n\n0.2.0 (2017-11-17)\n==================\n\n- Add ``is_anonymous``, ``login_required``, ``has_permission`` helpers. (#114)\n\n0.1.2 (2017-10-17)\n==================\n\n- Make aiohttp-session optional dependency. (#107)\n",
    "bugtrack_url": null,
    "license": "Apache 2",
    "summary": "security for aiohttp.web",
    "version": "0.5.0",
    "project_urls": {
        "Homepage": "https://github.com/aio-libs/aiohttp_security/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f7c49abee42a0c438f531a66906fb678eb1946c55c08e623b42c05f6f2fc616e",
                "md5": "e3d067db06f9641dcea00f29a9494352",
                "sha256": "791ecbb4bbdb95b3a2033bda345231628ea42903b2d33b6a3bf8737ed68c6072"
            },
            "downloads": -1,
            "filename": "aiohttp_security-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e3d067db06f9641dcea00f29a9494352",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 25168,
            "upload_time": "2023-11-18T20:10:30",
            "upload_time_iso_8601": "2023-11-18T20:10:30.743991Z",
            "url": "https://files.pythonhosted.org/packages/f7/c4/9abee42a0c438f531a66906fb678eb1946c55c08e623b42c05f6f2fc616e/aiohttp_security-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "314956c131fe3dead875ab5907b154dac7fb6ee727662de80b7da0ff045030d4",
                "md5": "b34fb62c6f4dd130f3c94f74c3bdc150",
                "sha256": "50cb724d310e1d0289798bb98ae852c3b75b77e8f51ce5159c57b7261d0638bd"
            },
            "downloads": -1,
            "filename": "aiohttp-security-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b34fb62c6f4dd130f3c94f74c3bdc150",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 55500,
            "upload_time": "2023-11-18T20:10:32",
            "upload_time_iso_8601": "2023-11-18T20:10:32.735133Z",
            "url": "https://files.pythonhosted.org/packages/31/49/56c131fe3dead875ab5907b154dac7fb6ee727662de80b7da0ff045030d4/aiohttp-security-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-18 20:10:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aio-libs",
    "github_project": "aiohttp_security",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "lcname": "aiohttp-security"
}
        
Elapsed time: 0.14534s