Skip to content

Instantly share code, notes, and snippets.

@managedkaos
Created October 14, 2016 21:41
Show Gist options
  • Save managedkaos/b27b5885d08dd016ef1f28600d8a7e0f to your computer and use it in GitHub Desktop.
Save managedkaos/b27b5885d08dd016ef1f28600d8a7e0f to your computer and use it in GitHub Desktop.
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