mPGkit 🔑
mPGkit (Matel’s PGP toolkit) is a lightweight, Python-powered toolkit for performing OpenPGP-compatible encryption, decryption, signing, and verification on files and strings. It’s built on top of python-gnupg, which interfaces with GnuPG, and is designed to feel like a natural UNIX-style CLI tool.
✨ Features
- 🔒 Encrypt & decrypt files and strings with PGP
- 🖊️ Sign and verify messages or documents
- 🔑 Manage keys (import, export, list)
- 🛠️ Easy CLI commands (
mpgkit enc …,mpgkit dec …)
📦 Installation
# Using pipx (recommended for CLI isolation)
pipx install git+https://gitlab.com/matelowy/mpgkit.git # Development version
pipx install mpgkit # Stable version
# Or using pip
pip install mpgkit # Stable version
pip install git+https://gitlab.com/matelowy/mpgkit.git # Development version
💡 Usage Examples
List all keys in your keyring
mpgkit list
Import a key
mpgkit import mykey.asc
Export a key
# Export public key
mpgkit export -p 8D91D7XXXXXXXX77509C0895E449YYYYYYYY9D2A -o mypublic.asc
# Export private key (requires passphrase)
mpgkit export -s 8D91D7XXXXXXXX77509C0895E449YYYYYYYY9D2A -o myprivate.asc -p "mySecretPassphrase"
Encrypt a file or string
# Encrypt a string
mpgkit enc "Hello world" -k recipient_pubkey.asc
# Encrypt a file
mpgkit enc /path/to/file.txt -k recipient_pubkey.asc -o encrypted_file.gpg
Decrypt a file or string
# Decrypt a string
mpgkit dec "encrypted string" -k my_privatekey.asc
# Decrypt a file
mpgkit dec /path/to/encrypted_file.gpg -k my_privatekey.asc -o decrypted_file.txt
📜 License
mPGkit is licensed under the GPL-3.0 License. You are free to use, modify, and redistribute it, but derivative projects must also be open-source and credit Matel.
🤝 Contributing
Contributions are welcome!
- Fork the repo
- Make changes
- Submit a merge request
🌐 Contact
Matel – GitLab
Release files for mpgkit 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mpgkit-1.0.3.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mpgkit-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.0 kB
Release files / mpgkit-1.0.3.tar.gz
| Download URL | mpgkit-1.0.3.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
467ba183cd9ca9c9a42a480c54f6e0b0b89b6ca519e58cb3318341bc8b3a5122
|
|
BLAKE2b-256 checksum How to use checksums |
1449218022d915c8eca71c10eaa8ec7498cbb2db02ee0140250b5deccb31cde3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / mpgkit-1.0.3-py3-none-any.whl
| Download URL | mpgkit-1.0.3-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
810eea197f150031602e47f928db61365e9e9cc4145e2d4e2d352aaa1dfde3be
|
|
BLAKE2b-256 checksum How to use checksums |
904c40d8eab2943a9ee4aa64054690536d4fcf3708267684ad62603dc9d375cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|