项目
在 GitHub 查看 
pallets-eco/flask-session
关于
Flask 的服务端会话扩展
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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[redis]
You can include any supported storage type in place of redis.
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
- DynamoDB
Documentation
Learn more at the official Flask-Session Documentation.
Maintainers
- Lxstr
- 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.
探索相关项目
加载中…