MessageSender skeleton
This commit is contained in:
parent
c999a91a79
commit
f79bdc02e5
19
MessageSender.py
Normal file
19
MessageSender.py
Normal 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)
|
Reference in New Issue
Block a user