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.8.tar.gz
(16.9 kB
view hashes)
Built Distribution
odk_mailer-0.6.8-py3-none-any.whl
(22.6 kB
view hashes)
Close
Hashes for odk_mailer-0.6.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfcb28ec37bc18a433b3bcd55ddbcd0564588c0309f51bea400e435197a1594e |
|
MD5 | 0861634c7d128b1b8f43bb6dd607938e |
|
BLAKE2b-256 | a4fbd60bfbeb5a48800c6feb48e5081e604b2760355e2a0ed20606874e391d7d |