Initial commit
This commit is contained in:
commit
fdc8d2534a
9 changed files with 771 additions and 0 deletions
18
src/tinysteady_mailer/__init__.py
Normal file
18
src/tinysteady_mailer/__init__.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import sys
|
||||
import asyncio
|
||||
|
||||
from .tsmailer import mailer, CONFIG
|
||||
|
||||
|
||||
__doc__ = (
|
||||
"Send mails in batches. "
|
||||
"Configuration should be in a yaml config file"
|
||||
"given with the CONFIG enviroenment variable."
|
||||
)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if CONFIG is None:
|
||||
print(__doc__)
|
||||
sys.exit(0)
|
||||
asyncio.run(mailer())
|
Loading…
Add table
Add a link
Reference in a new issue