Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Flask extension for work with GnuPG

Project Description

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

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

Install:

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

or with pip:

$ 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:

from flask import Flask
from flask_gnupg import GnuPG

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

Or you can set up GnuPG instance later:

gpg = GnuPG()

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

Then you can use GnuPG engine in your views:

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

For details about all allowed methods read the docs of python-gnupg library.

Release History

This version
History Node

1.0.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
Flask_GnuPG-1.0.0-py3-none-any.whl
(4.8 kB) Copy SHA256 Hash SHA256
Wheel 3.6 Jan 3, 2018
Flask-GnuPG-1.0.0.tar.gz
(4.0 kB) Copy SHA256 Hash SHA256
Source None Jan 3, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting