A simple CLI for sending form related mails in the context of Open Data Kit (ODK)
Project description
ODK Mailer
A simple CLI to send Mails for ODK. Built with Typer and packaged with Poetry.
Requirements
- Python 3
- PIP
Setup
Install the cli via pip
pip install odk-mailer
Configuration example
Config location: ~/.env
:
SMTP_HOST=smtp.freesmtpservers.com
SMTP_PORT=25
SMTP_USER=
SMTP_PASS=
ODK_HOST=https://your.odk-central.host.tld
Usage
Create and run a new mail job
# Create a new mail job with a unique ID
odk-mailer jobs create
# Run the job by ID
odk-mailer jobs run <job-id>
List mail jobs and evaluate them
# Show all jobs
odk-mailer jobs list
# Run all jobs that are ready to be sent
odk-mailer jobs evaluate
Development
Building a Package - Guide: https://typer.tiangolo.com/tutorial/package/#create-your-app
Requirements
- Python 3.10
- Poetry 1.7
# clone the repo and cd into
poetry shell
poetry install
# Run it with
poetry run odk-mailer
Push to PyPi
poetry build
poetry publish
# requires credentials to be setup: poetry config pypi-token.pypi <my-token>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
odk_mailer-0.6.1.tar.gz
(15.9 kB
view hashes)
Built Distribution
odk_mailer-0.6.1-py3-none-any.whl
(21.2 kB
view hashes)
Close
Hashes for odk_mailer-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9dedca64bd9603e55ce185108176b7b519409744507a7563383dc8b8a0e44a9 |
|
MD5 | e5a4bbdf81f003453b66d83599ae39cb |
|
BLAKE2b-256 | 0dbc3733fc4475ba4c12fd872dad14711b73acd8ecc55b27cdc34a0d3ffced31 |