semvec/pypi-packages huggingface dataset:
flask-bluelogin 0.2.7
Flask BlueLogin module

Flask-bluelogin
===============

Flask-bluelogin provides user session management for Flask by blueprint component

It use flask-login module

Installation
------------

::

    pip install flask-bluelogin
        
Or

::

    git clone https://github.com/fraoustin/flask-bluelogin.git
    cd flask-bluelogin
    python setup.py install

Usage
-----

::

    from flask import Flask, request, current_app
    from flask_bluelogin import BlueLogin, User, Users, check_login
    import logging

    app = Flask(__name__)
    app.secret_key = 'super secret string'
    app.register_blueprint(BlueLogin(url_prefix="/api", ui_testing=True))
    User(id="fred", password="fred").save()
    Users().add_user(User(id='admin', password='passadmin', groups=['admin',]))
    Users().add_user(User(id='test', password='passtest'))

    @app.route("/")
    def hello():
        return "Hello World!"

    @app.route("/check")
    @check_login()
    def check():
        return "You are authentified"

    @app.route("/admin")
    @check_login("admin")
    def admin():
        return "you are admin"


    if __name__ == "__main__":
        app.run(port=8080)   #TODO



You can use BlueLogin.add_check_login for add control login on endpoint

You can use ui for testing on http://127.0.0.1:8080/ui


Feature
=======

V. 0.2.7
========

- hotfix on path ui

V. 0.2.5
========

- add ws current

V. 0.2.4
========

- hotfix requirement

V. 0.2.2
========

- add param url_prefix in blueprint

V. 0.2.1
========

- optimize import from module

V. 0.2.0
========

- add dynamic decorator check_login for route other module
- generate secret_key
- add function add_group in User
- add functionnality Users as generic
- add function save in User
- add property active for user

V. 0.1.0
========

- init
- add group management
- add blueprint module
gtfo 0.3.0
Flight search... please.

====
gtfo
====

Searching for flights is amazingly painful.

If a first world problem leads to debilitating mental instability, is it
now not a first world problem anymore?

Save me...

Usage
-----

.. code-block:: sh

    $ gtfo JFK JNB

or

.. code-block:: python

    from gtfo import roundtrip
    roundtrip().departing("JFK").returning("JNB").open()


Flights API Usage
-----------------

This module is not intended to be used programmatically. Google has a
`QPX Flights API <https://developers.google.com/qpx-express/>`_ for this
purpose, but it has some prerequisites to gain access to it, and limits
when using it.

This module literally is just to programatically generate the URLs for
human-centric searches, so that you can then open them in a browser.
powertools 0.0.0
--- Power.Tools

General-purpose Utility Library

Home-page: https://github.com/philipov/powertools
Author: Philip Loguinov
Author-email: philipov@gmail.com
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Customer Service
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: Microsoft :: Windows :: Windows 7
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.6
Requires: pytest
Requires: colored_traceback
Requires: colorama
Requires: termcolor
hyper2web 0.0.6
Coroutine based H2 Web backend framework built for the future.
Keywords: hyper2web

=========
Hyper2Web
=========
Super Fast HTTP2 Framework for Progressive Web Application

Installation
############

To install Hyper2Web, run this command in your terminal:

.. code-block:: console

    $ # due to a known issue, please install Curio manually
    $ pip install git+https://github.com/dabeaz/curio.git
    $ pip install hyper2web

This is the preferred method to install Hyper2Web, as it will always install the most recent stable release.

If you don't have `pip`_ installed, this `Python installation guide`_ can guide
you through the process.

.. _pip: https://pip.pypa.io
.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/


Dependency
##########

Python3.6

h2

curio


Quick Start
###########

Assuming you have a directory structure like::

	your project/
	--public/
	  --index.html
	  --index.js
	  ...
	--app.py

Your ``app.py`` looks like

.. code-block:: python

	from hyper2web import app

	if __name__ == '__main__':

		# A basic callback style API is provided
		# Function name is up to you
		async def post_echo(request, response):
			# Send the data received back to the client
			await response.send(request.stream.data)

		app = app.App(port=5000)
		app.post('name', post_echo)
		app.up()


Then run this script

.. code-block:: console

	$ python app.py

That's it!

If you just want to serve static files, it's just 2 lines!

.. code-block:: python

	from hyper2web import app
	app.App(port=5000).up()


Docs
####
Documentation is hosted on hyper2web.readthedocs.io_.

.. _hyper2web.readthedocs.io: http://hyper2web.readthedocs.io

Example
#######

See the example folders for examples.

Test
####

.. code-block:: console

	$ python -m unittest discover test

Run all tests under ``test/`` dir.


Misc
####

Why did I create this framework?
********************************

April 23rd, 2017, Sunday, I woke up and felt bored and decided to create my own HTTP2 web framework.

Since I had little or some prior web knowledge, this would be a super learning and fun project for me.


=======
History
=======

0.0.0 (2017-06-08)
------------------

* First release on PyPI.