Skip to main content

Flask-GnuPG

https://img.shields.io/pypi/v/flask-gnupg.svg https://img.shields.io/pypi/l/flask-gnupg.svg https://img.shields.io/pypi/pyversions/flask-gnupg.svg https://img.shields.io/pypi/wheel/flask-gnupg.svg https://img.shields.io/pypi/status/flask-gnupg.svg https://travis-ci.org/EldarAliiev/flask-gnupg.svg?branch=master https://coveralls.io/repos/github/EldarAliiev/flask-gnupg/badge.svg?branch=master https://img.shields.io/github/contributors/EldarAliiev/flask-gnupg.svg

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.

Metadata

Release files for Flask-GnuPG 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-GnuPG 1.0.0
File Size Uploaded Provenance Actions
Flask-GnuPG-1.0.0.tar.gz 4.0 kB Without provenance Details for Flask-GnuPG-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flask-GnuPG 1.0.0
File Interpreter ABI Platform Actions
Flask_GnuPG-1.0.0-py3-none-any.whl Python 3 none any Details for Flask_GnuPG-1.0.0-py3-none-any.whl

Total release size: 8.7 kB

Release files / Flask-GnuPG-1.0.0.tar.gz

Download URL Flask-GnuPG-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6358967dc3664766433aff4545e9bf9cb5e388a1e4708c076507adbf525d4fab
BLAKE2b-256 checksum
How to use checksums
8ac0f09d4779686abfb53821ccbaa5657d8852e277d9ddf0a64f1d75e115fa09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Flask_GnuPG-1.0.0-py3-none-any.whl

Download URL Flask_GnuPG-1.0.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53228241492ad2ef2e2d092c689d324190c61bf67f7f43a7002670f976ec56ba
BLAKE2b-256 checksum
How to use checksums
726ee8fc8f989eacb2cdfa31f0883f58f602acae2e38690f313c22bd009bf7fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-GnuPG 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page