You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
develop | [](https://github.com/Sage-Bionetworks/synapsePythonClient/actions?query=branch%3Adevelop)
7
-
master | [](https://github.com/Sage-Bionetworks/synapsePythonClient/actions?query=branch%3Amaster)
6
+
develop | [](https://github.com/Sage-Bionetworks/synapsePythonClient/actions?query=branch%3Adevelop)
7
+
master | [](https://github.com/Sage-Bionetworks/synapsePythonClient/actions?query=branch%3Amaster)
8
8
9
9
[](https://pypi.python.org/pypi/synapseclient/)[](https://pypi.python.org/pypi/synapseclient/)
10
10
11
-
A Python client for [Sage Bionetworks'](https://www.sagebase.org)[Synapse](https://www.synapse.org/), a collaborative, open-source research platform that allows teams to share data, track analyses, and collaborate. The Python client can be used as a library for development of software that communicates with Synapse or as a command-line utility.
11
+
A Python client for [Sage Bionetworks'](https://sagebionetworks.org/)[Synapse](https://www.synapse.org/), a collaborative, open-source research platform that allows teams to share data, track analyses, and collaborate. The Python client can be used as a library for development of software that communicates with Synapse or as a command-line utility.
12
12
13
13
There is also a [Synapse client for R](https://github.com/Sage-Bionetworks/synapser/).
14
14
@@ -156,15 +156,15 @@ synapseutils.syncToSynapse(
156
156
#### Store a Project to Synapse
157
157
```
158
158
import synapseclient
159
-
from synapseclient.entity import Project
159
+
from synapseclient.models import Project
160
160
161
161
syn = synapseclient.Synapse()
162
162
163
163
## log in using auth token
164
164
syn.login(authToken='auth_token')
165
165
166
166
project = Project('My uniquely named project')
167
-
project = syn.store(project)
167
+
project.store()
168
168
169
169
print(project.id)
170
170
print(project)
@@ -173,14 +173,15 @@ print(project)
173
173
#### Store a Folder to Synapse (Does not upload files within the folder)
Once an external S3 storage folder exists, you can interact with it as you would any other folder using Synapse tools. If you wish to add an object that is stored within the bucket to Synapse you can do that by adding a file handle for that object using the Python client and then storing the file to that handle.
- The upcoming v5.0 release will include a number of breaking changes. Take a look at
8
-
this [pubpub](https://sagebionetworks.pubpub.org/pub/828a3x4k/release/1) article
9
-
detailing some of the changes.
10
-
- A release date has not been set. A number of these changes will be available within
11
-
the 4.x.x versions hidden behind optional feature flags or different import paths. Any
12
-
breaking changes will not be included until v5.0.
5
+
!!! note "Notice for the upcoming v5.0 release"
6
+
- The upcoming v5.0 release will include a number of breaking changes. Take a look at
7
+
this [pubpub](https://sagebionetworks.pubpub.org/pub/828a3x4k/release/1) article
8
+
detailing some of the changes.
9
+
- A release date has not been set. A number of these changes will be available within
10
+
the 4.x.x versions hidden behind optional feature flags or different import paths. Any
11
+
breaking changes will not be included until v5.0.
13
12
14
13
The `synapseclient` package provides an interface to [Synapse](http://www.synapse.org), a collaborative, open-source research platform that allows teams to share data, track analyses, and collaborate, providing support for:
0 commit comments