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.2.tar.gz (16.6 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.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddmail_dmcp_keyhandler-0.0.2.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for ddmail_dmcp_keyhandler-0.0.2.tar.gz
Algorithm Hash digest
SHA256 44f2b15d785c890c92a48b4a3e2fafb3473756559013f18281ccd9c681ecbb7d
MD5 1ac8d0fe2450353348e5e7cdc3a1e744
BLAKE2b-256 5964ace779327ef0fe663b40aed2eb3ccc0c65f84db6547c25c8041664094ae3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ddmail_dmcp_keyhandler-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6ef01bf689f42a4f8431f8b9d339b4b911ec1dd2a89e5d4d27ee94d6b42d7a
MD5 c2a9742953ebbeecbf31106423473d68
BLAKE2b-256 70390c62de9e50e1626342efdc7703b1f435caa8f0ae6068c66f973c3e36ec2c

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