exit(0)
if len(sys.argv) != 4:
- print("missing parameters. Type --help for more information", file=sys.stderr)
+ print(
+ "missing parameters. Type --help for more information", file=sys.stderr
+ )
exit(1)
topic, key, message = sys.argv[1:]
host = getenv("OSMNBI_HOST", "localhost")
port = getenv("OSMNBI_PORT", "9999")
- url = "https://{host}:{port}/osm/test/message/{topic}".format(host=host, port=port, topic=topic)
+ url = "https://{host}:{port}/osm/test/message/{topic}".format(
+ host=host, port=port, topic=topic
+ )
print(url)
data = {key: message}