Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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