Skip to content

Instantly share code, notes, and snippets.

@weburnit
Last active January 20, 2019 09:08
Show Gist options
  • Save weburnit/f80814e2f42d5a0e9b4a52fb839e5104 to your computer and use it in GitHub Desktop.
Save weburnit/f80814e2f42d5a0e9b4a52fb839e5104 to your computer and use it in GitHub Desktop.
Historio
from historio import client
client.historio(server='grpc_address', port=5505)
def somewhere_else_in_your_application():
user = get_current_user() #Get current user
assignment = DynamoDBModel() #your source model
#time to push
client.historio().push(source='assignment', source_id=assignment.id, user_id=user.id, data=model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment