Metadata-Version: 2.1
Name: httpout-session
Version: 0.0.0
Summary: A simple, file-based session middleware for httpout.
Author-email: nggit <contact@anggit.com>
License: MIT License
Project-URL: Homepage, https://github.com/nggit/httpout-session
Project-URL: Source, https://github.com/nggit/httpout-session
Project-URL: Funding, https://github.com/sponsors/nggit
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpout
Requires-Dist: tremolo-session

# httpout-session
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nggit_httpout-session&metric=coverage)](https://sonarcloud.io/summary/new_code?id=nggit_httpout-session)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nggit_httpout-session&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=nggit_httpout-session)

A simple, file-based session middleware for [httpout](https://github.com/nggit/httpout).

See also: [httpout-login](https://github.com/nggit/httpout-login).

## Usage
```python
# __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](https://coverage.readthedocs.io/):

```
coverage run -m tests
coverage combine
coverage report
coverage html # to generate html reports
```

## License
MIT License
