☰
Debian Codegraph
@
2.27.0-1
2.24.0-1
/
/
examples
/
publish-python
/
publish.py
☽
☼
examples/publish-python/publish.py
code
plain
raw
Apache-2.0
or
GPL-2
2022 Philipp C. Heckel.
debian/copyright
1
#!/usr/bin/env python3
2
3
import requests
4
5
resp = requests.get("https://ntfy.sh/mytopic/trigger",
6
data="Backup successful 😀".encode(encoding='utf-8'),
7
headers={
8
"Priority": "high",
9
"Tags": "warning,skull",
10
"Title": "Hello there"
11
})
12
resp.raise_for_status()