#!/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)