Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from mypackage import Basic
  2.  
  3. # Attributes id and time will be auto-populated
  4. # If not specified, attributes source, type, and specversion use their respective default values
  5. event = Basic(data = 'Hello World!')
  6. event_json_str = event.to_JSON()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement