MessageSender skeleton

This commit is contained in:
Kovács Bence János 2020-03-29 15:24:45 +02:00
parent c999a91a79
commit f79bdc02e5

19
MessageSender.py Normal file
View File

@ -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)