django-gpg-keys-manager
Reusable Django app to manage GPG public keys (export, verification, temporary keys fetched from keyservers).
Quickstart
- Create and activate a Python virtualenv
python -m venv .venv
source .venv/bin/activate
- Install dependencies
pip install -r requirements.txt || pip install Django pgpy django-allauth
- 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 packagegpg_keys/. - The module
gpg_keys.utils.get_request()finds the active DjangoHttpRequestby walking stack frames; it's used where a globalrequestvariable used to be imported fromproject.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 dependenciesbuild.sh— runpython manage.py compilemessagesandpython manage.py collectstatic --noinputvercel.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.
Metadata
Release files for django-gpg-keys-manager 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_gpg_keys_manager-0.1.0.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_gpg_keys_manager-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.3 kB
Release files / django_gpg_keys_manager-0.1.0.tar.gz
| Download URL | django_gpg_keys_manager-0.1.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcb93278ba277b043454753f4ccbe4aa02257e10a82bfa80f0b73c66afda8a4b
|
|
BLAKE2b-256 checksum How to use checksums |
ef8c681953792b0addff1f524469a325c064a75de1629b069956bd5970a3f0b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / django_gpg_keys_manager-0.1.0-py3-none-any.whl
| Download URL | django_gpg_keys_manager-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b947d5c210d9e344f3370e09f7399edd178ea6b472647b2094e69dde80aa161
|
|
BLAKE2b-256 checksum How to use checksums |
c8b9ece66fb7e39d214b1ade1dfd898fe986cfa0c8ea670d4c30de75aa91a583
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|