semvec/pypi-packages huggingface dataset:
Flask-GnuPG 1.0.0
Flask extension for work with GnuPG
License: MIT
Keywords: Flask

Flask-GnuPG
==============

.. image:: https://img.shields.io/pypi/v/flask-gnupg.svg
    :target: https://pypi.python.org/pypi/flask-gnupg

.. image:: https://img.shields.io/pypi/l/flask-gnupg.svg
    :target: https://raw.githubusercontent.com/EldarAliiev/flask-gnupg/master/LICENSE

.. image:: https://img.shields.io/pypi/pyversions/flask-gnupg.svg
    :target: https://pypi.python.org/pypi/flask-gnupg

.. image:: https://img.shields.io/pypi/wheel/flask-gnupg.svg
    :target: https://pypi.python.org/pypi/flask-gnupg

.. image:: https://img.shields.io/pypi/status/flask-gnupg.svg
    :target: https://pypi.python.org/pypi/flask-gnupg

.. image:: https://travis-ci.org/EldarAliiev/flask-gnupg.svg?branch=master
    :target: https://travis-ci.org/EldarAliiev/flask-gnupg

.. image:: https://coveralls.io/repos/github/EldarAliiev/flask-gnupg/badge.svg?branch=master
    :target: https://coveralls.io/github/EldarAliiev/flask-gnupg?branch=master

.. image:: https://img.shields.io/github/contributors/EldarAliiev/flask-gnupg.svg
    :target: https://github.com/EldarAliiev/flask-gnupg/graphs/contributors



Flask extension for work with GnuPG based on python-gnupg.

https://github.com/EldarAliiev/flask-gnupg

Install:
--------

.. code-block:: bash

    $ git clone https://github.com/EldarAliiev/flask-gnupg.git
    $ cd flask-gnupg
    $ python setup.py install

or with pip:

.. code-block:: bash

    $ pip install Flask-GnuPG

Usage example:
--------------

Set up configuration in your Flask application:

* **GPG_HOME_DIR** : default **'~/.gnupg'**
* **GPG_BINARY** : default **'gpg2'**
* **GPG_KEYRING** : default **None**
* **GPG_SECRET_KEYRING** : default **None**
* **GPG_KEY_ID** : default **''**
* **GPG_PASSPHRASE** : default **''**

Create the application and initialize GnuPG instance:

.. code-block:: python

    from flask import Flask
    from flask_gnupg import GnuPG

    app = Flask(__name__)
    gpg = GnuPG(app)

Or you can set up GnuPG instance later:

.. code-block:: python

    gpg = GnuPG()

    app = Flask(__name__)
    gpg.init_app(app)

Then you can use GnuPG engine in your views:

.. code-block:: python

    @app.route('/')
    def index():
        keys_list = gpg.list_keys()
        return keys_list

For details about all allowed methods read the docs of `python-gnupg <http://pythonhosted.org/python-gnupg/>`_ library.
igd 0.1.1
IGD management CLI tool.
License: MIT

=====
About
=====

.. image:: https://travis-ci.org/povilasb/pyigd.svg?branch=master
    :target: https://travis-ci.org/povilasb/pyigd
.. image:: https://coveralls.io/repos/github/povilasb/pyigd/badge.svg?branch=master
    :target: https://coveralls.io/github/povilasb/pyigd?branch=master

This is a small python based tool to interact with IGD capable devices.
IGD is protocol, usually supported by routers, that allows you to:

* Learn the public (external) IP address
* Enumerate existing port mappings
* Add and remove port mappings

This tool aims to be simple, clean, easy to install, hackable tool. Hence, CI is
enabled, test coverage should be kept to the maximum, code is linted, types are
checked, open source liraries are reused, etc.

Sorry, no Python 2 support.

Install
=======

::

    $ pip3 install igd

or if you want to get latest development changes::

    $ pip3 install git+https://github.com/povilasb/pyigd

Usage
=====

.. image:: usage.gif

`igd` aims for ergonomic usage with convenient defaults but also tries to
give full control over how ports are mapped, listed and removed.

For more detailed description just use the `--help` option for each command::

    $igd --help
    Usage: igd [OPTIONS] COMMAND [ARGS]...

    Options:
      --help  Show this message and exit.

    Commands:
      add  Add new port mapping.
      ip   Get external IP from IGD.
      ls   Get all port mappings.
      rm   Remove port mapping.

Other projects
==============

Other quite usable projects that I found to work:

* https://github.com/SBSTP/rust-igd
* https://github.com/miniupnp/miniupnp

References
==========

* https://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol
* https://tools.ietf.org/html/draft-cai-ssdp-v1-03
* https://tools.ietf.org/html/rfc6970
* http://www.upnp.org/specs/gw/UPnP-gw-WANIPConnection-v1-Service.pdf
* http://www.upnp-hacks.org