Skip to main content

Web application API for DDMail dovecot mail-crypt-plugin using per folder keys for the DDMail project. Support for creating of password protected keys and password change on keys.

Project description

What is ddmail_dmcp_keyhandler

Web application API for dovecot mail-crypt-plugin using per folder keys for the DDMail project. Support for creating password protected keys and change password on keys.

What is DDMail

DDMail is a e-mail system/service that prioritize security. A current production example can be found at www.ddmail.se

Operating system

Developt for and tested on debian 12.

Installing using pip

pip install ddmail-dmcp-keyhandler

Building and installing from source using hatchling.

Step 1: clone github repo
git clone https://github.com/drzobin/ddmail_dmcp_keyhandler [code path]
cd [code path]

Step 2: Setup python virtual environments
python -m venv [venv path]
source [venv path]/bin/activate

Step 3: Install package and required dependencies
pip install -e .[dev]

Step 4: Build package
python -m pip install --upgrade build
python -m build

Packages is now located under dist folder

Step 5: Install package
pip install dist/[package name].whl

Running in development mode

source [ddmail_dmcp_keyhandler venv]/bin/activate
export MODE=DEVELOPMENT
flask --app ddmail_dmcp_keyhandler:create_app(config_file="[full path to config file]") run --host=127.0.0.1 --port 8002 --debug

Testing

cd [code path]
pytest --cov=ddmail_dmcp_keyhandler tests/ --config=[config file path] --password=[password]

Coding

Follow PEP8 and PEP257. Use Flake8 with flake8-docstrings for linting. Strive for 100% test coverage.

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

ddmail_dmcp_keyhandler-0.0.3.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

ddmail_dmcp_keyhandler-0.0.3-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file ddmail_dmcp_keyhandler-0.0.3.tar.gz.

File metadata

  • Download URL: ddmail_dmcp_keyhandler-0.0.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ddmail_dmcp_keyhandler-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f1b44bc5057280500187306fa2ae3dc3961c4254d55682abe363e67f674c2764
MD5 18638294aec8fa52756c410f9ff85c90
BLAKE2b-256 859e299fd052804a5c898b0d8892f2d2cce5798e507574e94309c54baf2b597b

See more details on using hashes here.

File details

Details for the file ddmail_dmcp_keyhandler-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ddmail_dmcp_keyhandler-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71d99c6384989a27a659a47018d01b941574f23b20d08cc3aa0490ebef5d82c5
MD5 eb47b6c41f729c419342d9890f077bd4
BLAKE2b-256 6187794676c59a9ffa07747e7ca2d20ea8ca51a545552917e12249124c004dde

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