Created
October 14, 2016 21:41
-
-
Save managedkaos/b27b5885d08dd016ef1f28600d8a7e0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
import json | |
import random | |
import datetime | |
id = str(uuid.uuid1()) | |
actions = ['purchase1', 'purchase2', 'version'] | |
print json.dumps({'date' : str(datetime.datetime.now()), 'id' : id, 'action' : 'install'}) | |
for i in xrange(10): | |
print json.dumps({'date' : str(datetime.datetime.now()), 'id' : id, 'action' : random.choice(actions)}) | |
print json.dumps({'date' : str(datetime.datetime.now()), 'id' : id, 'action' : 'uninstall'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment