From f79bdc02e50fae1ea37ca1e7744e62d215d1ef24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Bence?= Date: Sun, 29 Mar 2020 15:24:45 +0200 Subject: [PATCH] MessageSender skeleton --- MessageSender.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 MessageSender.py diff --git a/MessageSender.py b/MessageSender.py new file mode 100644 index 0000000..bbdd150 --- /dev/null +++ b/MessageSender.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python +import sentry_sdk +import json +import random + +class MessageSender: + data = { + "packet name" : "name", + "data" : random.randrange(100000) + } + + message = json.dumps(data) + + + +if __name__ == "__main__": + print("Producer") + message = MessageSender() + print(message.message) \ No newline at end of file