semvec/pypi-packages huggingface dataset:
ddmail-dmcp-keyhandler 0.0.2
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.
Requires Python: >=3.8

# 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<br>
`git clone https://github.com/drzobin/ddmail_dmcp_keyhandler [code path]`<br>
`cd [code path]`<br>
<br>
Step 2: Setup python virtual environments<br>
`python -m venv [venv path]`<br>
`source [venv path]/bin/activate`<br>
<br>
Step 3: Install package and required dependencies<br>
`pip install -e .[dev]`<br>
<br>
Step 4: Build package<br>
`python -m pip install --upgrade build`<br>
`python -m build`<br> 
<br>
Packages is now located under dist folder<br>
<br>
Step 5: Install package<br>
`pip install dist/[package name].whl`<br>

## Running in development mode
`source [ddmail_dmcp_keyhandler venv]/bin/activate`<br>
`export MODE=DEVELOPMENT`<br>
`flask --app ddmail_dmcp_keyhandler:create_app(config_file="[full path to config file]") run --host=127.0.0.1 --port 8002 --debug`<br>

## Testing
`cd [code path]`<br>
`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.