Skip to main content

Django reusable app to manage GPG public keys.

Project description

django-gpg-keys-manager

Reusable Django app to manage GPG public keys (export, verification, temporary keys fetched from keyservers).

Quickstart

  1. Create and activate a Python virtualenv
python -m venv .venv
source .venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt || pip install Django pgpy django-allauth
  1. Run the example project (from repository root)

The repository includes helper tooling that integrates with the uv runner (used in this workspace).

Using uv (recommended in this workspace):

uv run manage.py migrate
uv run manage.py runserver

Or directly with Python:

python manage.py migrate
python manage.py runserver

The example project mounts the app at /gpg/.

Notes

  • The repository contains two app locations: the original gpg/ and the new reusable package gpg_keys/.
  • The module gpg_keys.utils.get_request() finds the active Django HttpRequest by walking stack frames; it's used where a global request variable used to be imported from project.middleware.

Vercel deployment

This repository includes helper files for deploying to Vercel. Vercel will install dependencies from requirements.txt automatically. The build step compiles translations and collects static files.

Files added for Vercel:

  • requirements.txt — Python dependencies
  • build.sh — run python manage.py compilemessages and python manage.py collectstatic --noinput
  • vercel.json — Vercel configuration (adjust if needed for your setup)

On Vercel the build will run build.sh and the Python server runtime will serve the Django app. You may need to set environment variables (e.g., DJANGO_SECRET_KEY, DATABASE_URL) in the Vercel project settings.

Project details


Download files

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

Source Distribution

django_gpg_keys_manager-0.1.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_gpg_keys_manager-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file django_gpg_keys_manager-0.1.0.tar.gz.

File metadata

  • Download URL: django_gpg_keys_manager-0.1.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for django_gpg_keys_manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dcb93278ba277b043454753f4ccbe4aa02257e10a82bfa80f0b73c66afda8a4b
MD5 795213d7a6a0f69d5787d1cd83237915
BLAKE2b-256 ef8c681953792b0addff1f524469a325c064a75de1629b069956bd5970a3f0b4

See more details on using hashes here.

File details

Details for the file django_gpg_keys_manager-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_gpg_keys_manager-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for django_gpg_keys_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b947d5c210d9e344f3370e09f7399edd178ea6b472647b2094e69dde80aa161
MD5 954fca8493f003342ac221f625f38c0c
BLAKE2b-256 c8b9ece66fb7e39d214b1ade1dfd898fe986cfa0c8ea670d4c30de75aa91a583

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page