ki-tools / kitools-py

Tools for working with data in Ki analyses
Apache License 2.0
3 stars 0 forks source link

Plug in Synapse login as part of project initialization #7

Open hafen opened 5 years ago

hafen commented 5 years ago

It would be very convenient not to have to add the lines

import synapseclient
syn = synapseclient.Synapse()
syn.login()

to the top of every analysis script, but instead have this called whenever a project is loaded, handling the case where it's the first time a user has logged in and therefore might need to be interactively prompted for their username and password.