crane/test_pushover.py
2022-10-30 23:27:08 -05:00

12 lines
291 B
Python

import pushover
from tomllib import load
with open('./config.toml', mode="rb") as c:
config = load(c)
po_key = config["pushover"]["po_key"]
po_token = config["pushover"]["po_token"]
message = "hello"
pushover.Pushover(po_token).message(po_key, message, title="--- crane summary ---")