bottle-login:在 Bottle 框架中实现用户会话

时间:2021-07-05 20:56:27
【文件属性】:
文件名称:bottle-login:在 Bottle 框架中实现用户会话
文件大小:12KB
文件格式:ZIP
更新时间:2021-07-05 20:56:27
Python 瓶子登录 Bottle Login -- 在 Bottle Web 框架中实现用户的会话。 内容 Python> = 2.6 安装 Bottle Login应该使用 pip 安装: pip install bottle-login 用法 from bottle import Bottle, request, redirect from bottle_login import LoginPlugin app = Bottle() app.config['SECRET_KEY'] = 'secret' login = app.install(LoginPlugin()) @login.load_user def load_user_by_id(user_id): # Load user by id here # Some application views @app.rout
【文件预览】:
bottle-login-master
----setup.py(2KB)
----.gitignore(373B)
----requirements.txt(7B)
----Makefile(2KB)
----.travis.yml(338B)
----MANIFEST.in(193B)
----.bumpversion.cfg(113B)
----LICENSE(1KB)
----setup.cfg(73B)
----bottle_login.py(4KB)
----README.rst(2KB)
----tests()
--------__init__.py(0B)
--------test_bottle_login.py(1KB)
----.coveragerc(57B)
----AUTHORS.rst(155B)
----CONTRIBUTING.rst(3KB)
----docs()
--------api.rst(118B)
--------index.rst(1KB)
--------conf.py(717B)
--------installation.rst(371B)
--------quickstart.rst(55B)
----requirements-tests.txt(41B)
----Changelog(53B)
----tox.ini(252B)

网友评论