Created
September 19, 2016 21:50
-
-
Save larssono/49b5d3f8c0642779f401214e2182365d to your computer and use it in GitHub Desktop.
This file contains 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 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