Skip to main content

A simple, file-based session middleware for httpout.

Project description

httpout-session

Coverage Quality Gate Status

A simple, file-based session middleware for httpout.

See also: httpout-login.

Usage

# __globals__.py
from httpout_session 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_session

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpout-session-0.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

httpout_session-0.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file httpout-session-0.0.0.tar.gz.

File metadata

  • Download URL: httpout-session-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

Hashes for httpout-session-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f7f9007bc20ae27865458b1b8ca28cc0de3ce35110782bfbd37cde311529db06
MD5 81488f59955fa973b1c1a13eae5061f5
BLAKE2b-256 bd0a7b5e019350e53ea695cde39b718bef40ef411473842232dd34187e0eb569

See more details on using hashes here.

File details

Details for the file httpout_session-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for httpout_session-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 857f2bcc5f1c875e6dc6c823d08ea0e00107237803e1c7ed56e51790fffab813
MD5 e9ceb631cbb19181abeba056d54adc32
BLAKE2b-256 a88df30ebb2cdc35ede5d2f3c37e0afee3c50b3eb0fddd9c0749ca56fabe93da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page