Flask-Session
Flask-Session is an extension for Flask that adds support for server-side sessions to your application.
Installing
Install and update using pip:
$ pip install flask-session
A Simple Example
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.
Maintainers
Pallets Team
Contribute
Thanks to all those who have contributed to Flask-Session. A full list can be found at CONTRIBUTORS.md.
If you want to contribute, please check the 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.
Metadata
Release files for Flask-Session 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flask_session-0.8.0.tar.gz | 940.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_session-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 964.7 kB
Release files / flask_session-0.8.0.tar.gz
| Download URL | flask_session-0.8.0.tar.gz |
|---|---|
| Size | 940.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20e045eb01103694e70be4a49f3a80dbb1b57296a22dc6f44bbf3f83ef0742ff
|
|
BLAKE2b-256 checksum How to use checksums |
86d70ba4180513abe28eadc208123c76f9f09e290d5939fb2eb68323b9733354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / flask_session-0.8.0-py3-none-any.whl
| Download URL | flask_session-0.8.0-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dae6e9ddab334f8dc4dea4305af37851f4e7dc0f484caf3351184001195e3b7
|
|
BLAKE2b-256 checksum How to use checksums |
671bf085ceebb825d1cfaf078852b67cd248a33af2905f40ba9860cc006d966b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for Flask-Session 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.