httpout-login is basically an extension of httpout-session.
Project description
httpout-login
httpout-login is basically an extension of httpout-session.
You can use it just like httpout-session but with additional methods like login(), logout(), and is_logged_in().
Usage
# __globals__.py
from httpout_login import Session
def __enter__(app):
# this is a session middleware
# that enables you to use request.ctx.session in routes
Session(app, expires=86400)
Installing
python3 -m pip install --upgrade httpout_login
Testing
Just run python3 -m tests.
Or if you also want measurements with coverage:
coverage run -m tests
coverage combine
coverage report
coverage html # to generate html reports
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpout-login-0.0.0.tar.gz.
File metadata
- Download URL: httpout-login-0.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
575b9cf8e44eb5aa2a175baa963b33721e27e64b1b4ae04189168a6d5660cf52
|
|
| MD5 |
99de49df69642781ebd9baa77771bec4
|
|
| BLAKE2b-256 |
def421ac84f75cd52a54b3ae7db32857ab807d7c3b849a3dcc666d60d3fd1b4c
|
File details
Details for the file httpout_login-0.0.0-py3-none-any.whl.
File metadata
- Download URL: httpout_login-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9779085fc3cb2938644d29d20033042a4e87d5da20897db039f881e84913c087
|
|
| MD5 |
379eb2e78228089b995b556fd23f30ed
|
|
| BLAKE2b-256 |
dd94e7ba484c94e667955e62cc0a1e071f95f3c30548722de522763eb94ea346
|