semvec/pypi-packages huggingface dataset:
Flask-Mitten 0.2.1
Adds security functions to Flask applications for preventing some of the basic threats.
License: BSD

﻿What is Flask-Mitten?
======================

Adds security functions to Flask applications for preventing some of the basic threats.

Features
========

Flask-Mitten supports Flask applications to prevent following threats.

- Clickjacking
- CSRF
- Information disclosure through banner grabbing
- JSON hijacking
- Session fixation

It bundles functions of following Flask extensions.

- `Flask-KVSession <http://flask-kvsession.readthedocs.org/>`_
- `flask-csrf <http://sjl.bitbucket.org/flask-csrf/>`_

More details, see the implementation.


Usage
=====

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

Install the extension with the following commands::

    pip install Flask-Mitten

Configuration
-------------

Apply the extention to your app::

    from flaskext.mitten import Mitten
    app = Flask(__name__)
    mitten = Mitten(app)

Request headers are overridden to prevent clickjacking and information disclosure.

If you want to set your own banner, you can do it::

    mitten.banner = "My Nice Banner!"

Preventing Session Fixation
---------------------------

After login, call a regenerate method of session object::

    session.regenerate()

The session ID is regenerated, and it prevents session fixation.

To discard a session, call a destroy method::

    session.destroy()

Preventing CSRF
---------------

To embed CSRF token, add following line to your template::

    <input type="hidden" name="_csrf_token" value="{{ csrf_token() }}" />

A  POST request is protected against CSRF automatically.

If you want to exclude a route from CSRF protection, use a csrf_exempt decorator::

    @mitten.csrf_exempt
    @app.route('/public_api/', methods=['POST'])
    def public_api():
        return "result", 200

Preventing JSON Hijacking
-------------------------

If you send a JSON response, you could use a json decorator to avoid JSON hijacking or rendering JSON responses by direct browsing::

    @mitten.json
    @app.route('/json_api/')
    def json_api():
        return jsonify(result='success')

More
----

For more details, see an example app.
lfs_sofortueberweisung 1.0b1
Payment processor sofortueberweisung.de for LFS
License: BSD
Keywords: django e-commerce online-shop

What is it?
===========

lfs_sofortueberweisung is the integration of the payment processor `sofortüberweisung.de`_ for `LFS`_.

LFS Version
===========

0.7 and beyond.

Documentation
=============

You can find the documentation on `RTD <http://lfs_sofortueberweisung.rtfd.org>`_.

Changes
=======

1.0 beta 1
----------

First public release

.. _`sofortüberweisung.de`: https://www.payment-network.com/sue_de
.. _`LFS`: http://pypi.python.org/pypi/django-lfs
django-googlemap-widget 0.1.4
Googlemap field, widget, model for Django
License: BSD
Keywords: django googlemap map ajax

``django-googlemap-widget`` is a library for using googlemap on Django app.

See http://demos.django-googlemap.hashnote.net/ for Demo.

Install
=================================================
::

    sudo pip install django-googlemap-widget

or::

	sudo pip install git+git://github.com/lambdalisue/django-googlemap-widget.git#egg=django-googlemap-widget


See https://github.com/lambdalisue/django-googlemap-widget/tree/master/googlemap_test for usage.