Flask-Session


NameFlask-Session JSON
Version 0.8.0 PyPI version JSON
download
home_pageNone
SummaryServer-side session support for Flask
upload_time2024-03-26 07:56:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/pallets-eco/flask-session/main/docs/_static/icon/favicon-192x192.png
    :alt: Flask-Session
    :target: https://flask-session.readthedocs.io
    :align: left
    :width: 60px

==============
Flask-Session
==============

Flask-Session is an extension for Flask that adds support for server-side sessions to
your application.

.. image:: https://img.shields.io/github/actions/workflow/status/pallets-eco/flask-session/test.yaml?logo=github
    :alt: GitHub Actions Workflow Status
    :target: https://github.com/pallets-eco/flask-session/actions/workflows/test.yaml?query=workflow%3ACI+branch%3Adevelopment

.. image:: https://img.shields.io/readthedocs/flask-session?logo=readthedocs
    :target: https://flask-session.readthedocs.io
    :alt: Documentation status

.. image:: https://img.shields.io/github/license/pallets-eco/flask-session?logo=bsd
    :target: ./LICENSE
    :alt: BSD-3 Clause License

.. image:: https://common-changelog.org/badge.svg
    :target: https://common-changelog.org
    :alt: Common Changelog
    
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&label=style
    :target: https://github.com/astral-sh/ruff
    :alt: Code style: ruff

.. image:: https://img.shields.io/pypi/v/flask-session.svg?logo=pypi
    :target: https://pypi.org/project/flask-session
    :alt: PyPI - Latest Version

.. image:: https://img.shields.io/badge/dynamic/json?query=info.requires_python&label=python&logo=python&url=https%3A%2F%2Fpypi.org%2Fpypi%2Fflask-session%2Fjson
    :target: https://pypi.org/project/Flask-Session/
    :alt: PyPI - Python Version

.. image:: https://img.shields.io/discord/531221516914917387?logo=discord
    :target: https://discord.gg/pallets
    :alt: Discord

.. image:: https://img.shields.io/pypi/dm/flask-session?logo=pypi
    :target: https://pypistats.org/packages/flask-session
    :alt: PyPI - Downloads

Installing
------------
Install and update using pip:

.. code-block:: bash

    $ pip install flask-session

A Simple Example
--------------------

.. code-block:: python

    from flask import Flask, session
    from flask_session import Session

    app = Flask(__name__)
    # Check Configuration section for more details
    SESSION_TYPE = 'redis'
    app.config.from_object(__name__)
    Session(app)

    @app.route('/set/')
    def set():
        session['key'] = 'value'
        return 'ok'

    @app.route('/get/')
    def get():
        return session.get('key', 'not set')

Supported Storage Types
------------------------
- Redis
- Memcached
- FileSystem
- MongoDB
- SQLALchemy

Documentation
-------------
Learn more at the official `Flask-Session Documentation <https://flask-session.readthedocs.io/en/latest/>`_.

Maintainers
------------
- `Lxstr <https://github.com/Lxstr>`_
- Pallets Team

Contribute
----------
Thanks to all those who have contributed to Flask-Session. A full list can be found at `CONTRIBUTORS.md <https://github.com/pallets-eco/flask-session/blob/development/CONTRIBUTORS.md>`_.

If you want to contribute, please check the `CONTRIBUTING.rst <https://github.com/pallets-eco/flask-session/blob/development/CONTRIBUTING.rst>`_.

Donate
--------
The Pallets organization develops and supports Flask-Session and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.




            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "Flask-Session",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Pallets Community Ecosystem <contact@palletsprojects.com>",
    "keywords": null,
    "author": null,
    "author_email": "Shipeng Feng <fsp261@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/86/d7/0ba4180513abe28eadc208123c76f9f09e290d5939fb2eb68323b9733354/flask_session-0.8.0.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/pallets-eco/flask-session/main/docs/_static/icon/favicon-192x192.png\n    :alt: Flask-Session\n    :target: https://flask-session.readthedocs.io\n    :align: left\n    :width: 60px\n\n==============\nFlask-Session\n==============\n\nFlask-Session is an extension for Flask that adds support for server-side sessions to\nyour application.\n\n.. image:: https://img.shields.io/github/actions/workflow/status/pallets-eco/flask-session/test.yaml?logo=github\n    :alt: GitHub Actions Workflow Status\n    :target: https://github.com/pallets-eco/flask-session/actions/workflows/test.yaml?query=workflow%3ACI+branch%3Adevelopment\n\n.. image:: https://img.shields.io/readthedocs/flask-session?logo=readthedocs\n    :target: https://flask-session.readthedocs.io\n    :alt: Documentation status\n\n.. image:: https://img.shields.io/github/license/pallets-eco/flask-session?logo=bsd\n    :target: ./LICENSE\n    :alt: BSD-3 Clause License\n\n.. image:: https://common-changelog.org/badge.svg\n    :target: https://common-changelog.org\n    :alt: Common Changelog\n    \n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&label=style\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code style: ruff\n\n.. image:: https://img.shields.io/pypi/v/flask-session.svg?logo=pypi\n    :target: https://pypi.org/project/flask-session\n    :alt: PyPI - Latest Version\n\n.. image:: https://img.shields.io/badge/dynamic/json?query=info.requires_python&label=python&logo=python&url=https%3A%2F%2Fpypi.org%2Fpypi%2Fflask-session%2Fjson\n    :target: https://pypi.org/project/Flask-Session/\n    :alt: PyPI - Python Version\n\n.. image:: https://img.shields.io/discord/531221516914917387?logo=discord\n    :target: https://discord.gg/pallets\n    :alt: Discord\n\n.. image:: https://img.shields.io/pypi/dm/flask-session?logo=pypi\n    :target: https://pypistats.org/packages/flask-session\n    :alt: PyPI - Downloads\n\nInstalling\n------------\nInstall and update using pip:\n\n.. code-block:: bash\n\n    $ pip install flask-session\n\nA Simple Example\n--------------------\n\n.. code-block:: python\n\n    from flask import Flask, session\n    from flask_session import Session\n\n    app = Flask(__name__)\n    # Check Configuration section for more details\n    SESSION_TYPE = 'redis'\n    app.config.from_object(__name__)\n    Session(app)\n\n    @app.route('/set/')\n    def set():\n        session['key'] = 'value'\n        return 'ok'\n\n    @app.route('/get/')\n    def get():\n        return session.get('key', 'not set')\n\nSupported Storage Types\n------------------------\n- Redis\n- Memcached\n- FileSystem\n- MongoDB\n- SQLALchemy\n\nDocumentation\n-------------\nLearn more at the official `Flask-Session Documentation <https://flask-session.readthedocs.io/en/latest/>`_.\n\nMaintainers\n------------\n- `Lxstr <https://github.com/Lxstr>`_\n- Pallets Team\n\nContribute\n----------\nThanks to all those who have contributed to Flask-Session. A full list can be found at `CONTRIBUTORS.md <https://github.com/pallets-eco/flask-session/blob/development/CONTRIBUTORS.md>`_.\n\nIf you want to contribute, please check the `CONTRIBUTING.rst <https://github.com/pallets-eco/flask-session/blob/development/CONTRIBUTING.rst>`_.\n\nDonate\n--------\nThe Pallets organization develops and supports Flask-Session and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.\n\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Server-side session support for Flask",
    "version": "0.8.0",
    "project_urls": {
        "Changes": "https://flask-session.readthedocs.io/changes.html",
        "Chat": "https://discord.gg/pallets",
        "Documentation": "https://flask-session.readthedocs.io",
        "Issue Tracker": "https://github.com/pallets-eco/flask-session/issues/",
        "Source Code": "https://github.com/pallets-eco/flask-session/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "671bf085ceebb825d1cfaf078852b67cd248a33af2905f40ba9860cc006d966b",
                "md5": "8dd4168434905828552425b544881630",
                "sha256": "5dae6e9ddab334f8dc4dea4305af37851f4e7dc0f484caf3351184001195e3b7"
            },
            "downloads": -1,
            "filename": "flask_session-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8dd4168434905828552425b544881630",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 24410,
            "upload_time": "2024-03-26T07:56:11",
            "upload_time_iso_8601": "2024-03-26T07:56:11.377699Z",
            "url": "https://files.pythonhosted.org/packages/67/1b/f085ceebb825d1cfaf078852b67cd248a33af2905f40ba9860cc006d966b/flask_session-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86d70ba4180513abe28eadc208123c76f9f09e290d5939fb2eb68323b9733354",
                "md5": "88b4e9839faf8a8111f08c5b90ae44da",
                "sha256": "20e045eb01103694e70be4a49f3a80dbb1b57296a22dc6f44bbf3f83ef0742ff"
            },
            "downloads": -1,
            "filename": "flask_session-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "88b4e9839faf8a8111f08c5b90ae44da",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 940269,
            "upload_time": "2024-03-26T07:56:13",
            "upload_time_iso_8601": "2024-03-26T07:56:13.747171Z",
            "url": "https://files.pythonhosted.org/packages/86/d7/0ba4180513abe28eadc208123c76f9f09e290d5939fb2eb68323b9733354/flask_session-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-26 07:56:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pallets-eco",
    "github_project": "flask-session",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "flask-session"
}
        
Elapsed time: 0.28945s