Metadata-Version: 2.1
Name: flask-simplelogin
Version: 0.1.1
Summary: Flask Simple Login - Login Extension for Flask
Home-page: https://github.com/flask-extensions/Flask-SimpleLogin
License: MIT
Author: Bruno Rocha
Author-email: rochacbruno@users.noreply.github.com
Maintainer: Eduardo Cuducos
Maintainer-email: cuducos@users.noreply.github.com
Requires-Python: >=3.6,<4.0
Classifier: Framework :: Flask
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: docs
Requires-Dist: Flask (>=0.12)
Requires-Dist: Flask-WTF (>=0.15.1,<0.16.0)
Requires-Dist: Sphinx (>=4.1.2,<5.0.0); extra == "docs"
Requires-Dist: WTForms (>=2.1)
Requires-Dist: click (>=8.0.1,<9.0.0)
Requires-Dist: recommonmark (>=0.7.1,<0.8.0); extra == "docs"
Requires-Dist: sphinx-markdown-tables (>=0.0.15,<0.0.16); extra == "docs"
Requires-Dist: sphinx-rtd-theme (>=0.5.2,<0.6.0); extra == "docs"
Project-URL: Repository, https://github.com/flask-extensions/Flask-SimpleLogin
Description-Content-Type: text/markdown

[![GitHub Actions](https://img.shields.io/github/workflow/status/flask-extensions/Flask-SimpleLogin/Tests?style=flat-square)](https://github.com/flask-extensions/Flask-SimpleLogin/actions/workflows/tests.yml)
[![PyPI](https://img.shields.io/pypi/v/flask_simplelogin.svg?style=flat-square)](https://pypi.org/project/flask_simplelogin/)
[![PyPI versions](https://img.shields.io/pypi/pyversions/flask_simplelogin.svg?style=flat-square)](https://pypi.org/project/flask_simplelogin/)
[![PyPI formats](https://img.shields.io/pypi/format/flask_simplelogin.svg?style=flat-square)](https://pypi.org/project/flask_simplelogin/)
[![Flask](https://img.shields.io/badge/Flask-Extension-blue.svg?style=flat-square)](https://github.com/pallets/flask)
[![Documentation](https://img.shields.io/readthedocs/flask-simple-login?style=flat-square)](https://flask-simple-login.readthedocs.io/en/latest/?badge=latest)

# Login Extension for Flask

The simplest way to add login to flask!

## How it works

First, install it from [PyPI](https://pypi.org/project/flask_simplelogin/):

```console
$ pip install flask_simplelogin
```

Then, use it in your app:

```python
from flask import Flask
from flask_simplelogin import SimpleLogin

app = Flask(__name__)
SimpleLogin(app)
```

## **That's it!**

Now you have `/login` and `/logout` routes in your application.

The username defaults to `admin` and the password defaults to `secret` — yeah that's not clever, check the [docs](https://flask-simple-login.readthedocs.io/en/latest/?badge=latest) to see how to configure it properly!

![Login Screen](./login_screen.png)

Check the [documentation](https://flask-simple-login.readthedocs.io/en/latest/?badge=latest) for more details!

