Pre-release
This release is a pre-release and may not be stable for production use.
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.
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.7.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_session-0.7.0rc1.tar.gz | 936.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_session-0.7.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 957.6 kB
Release files / flask_session-0.7.0rc1.tar.gz
| Download URL | flask_session-0.7.0rc1.tar.gz |
|---|---|
| Size | 936.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00a609d0c4305ce9b86f92fe5ac6f01a235bd0bc4f00383559ad064ef653b50e
|
|
BLAKE2b-256 checksum How to use checksums |
8a0cb6cd64419134fb160d6e63cc16536132695004aa9257b6136a4335d92a0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.8
|
Release files / flask_session-0.7.0rc1-py3-none-any.whl
| Download URL | flask_session-0.7.0rc1-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c98863711250ea4544eb77d1e6951bceb236c52f4b2743e5aa2200fe652d578
|
|
BLAKE2b-256 checksum How to use checksums |
853f697f262e65f5e1385d9b00fb1152c0c673f1d8a2f80cb4eec276d5792091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.8
|