Bottle Login
Bottle Login – Implement users’ sessions in Bottle web framework.
Requirements
python >= 2.6
Installation
Bottle Login should be installed using pip:
pip install bottle-login
Usage
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.route('/')
def index():
current_user = login.get_user()
return current_user.name
@app.route('/signout')
def signout():
# Implement logout
login.logout_user()
return redirect('/')
@app.route('/signin')
def signin():
# Implement login (you can check passwords here or etc)
user_id = int(request.GET.get('user_id'))
login.login_user(user_id)
return redirect('/')
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle-login/issues
Contributing
Development of Bottle Login happens at: https://github.com/klen/bottle-login
Contributors
klen (Kirill Klenov)
License
Licensed under a BSD license.
Metadata
Release files for bottle-login 0.0.3
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 | Actions |
|---|---|---|---|---|
| bottle-login-0.0.3.tar.gz | 4.7 kB | Without provenance | Details for bottle-login-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bottle_login-0.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for bottle_login-0.0.3-py2.py3-none-any.whl |
Total release size: 10.2 kB
Release files / bottle-login-0.0.3.tar.gz
| Download URL | bottle-login-0.0.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0698cc87c5a9a9532266f89f854fa32ed97b4fa0b6ad7091bcfca82b50dea3a7
|
|
BLAKE2b-256 checksum How to use checksums |
475f22c5830bd291174124991f51ceeabd5c4427c56cb0753b945fb684549b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / bottle_login-0.0.3-py2.py3-none-any.whl
| Download URL | bottle_login-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
959d96fe433d4194628a5bf6d2815e12a5ae7651e26b27a4443b98b88a7ee5f4
|
|
BLAKE2b-256 checksum How to use checksums |
12a2b53065f5748d6d38bbb3e8b413e7a8a30633490837f38e29fa75c0831143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bottle-login 0.0.3
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.