Skip to content

Instantly share code, notes, and snippets.

@larssono
Created September 19, 2016 21:50
Show Gist options
  • Save larssono/49b5d3f8c0642779f401214e2182365d to your computer and use it in GitHub Desktop.
Save larssono/49b5d3f8c0642779f401214e2182365d to your computer and use it in GitHub Desktop.
import sys
import synapseclient
syn=synapseclient.Synapse()
syn.login(silent=True)
md5 = sys.argv[1]
files = syn.restGET('/entity/md5/%s' % md5)
for f in files['results']:
print md5, f['name'], f['id'], f['versionNumber']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment