flywheel-sdk 20.2.0__py2.py3-none-any.whl → 20.2.0rc1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/flywheel.py +7 -1
- flywheel/models/__init__.py +1 -1
- {flywheel_sdk-20.2.0.dist-info → flywheel_sdk-20.2.0rc1.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.2.0.dist-info → flywheel_sdk-20.2.0rc1.dist-info}/RECORD +9 -9
- {flywheel_sdk-20.2.0.dist-info → flywheel_sdk-20.2.0rc1.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.2.0.dist-info → flywheel_sdk-20.2.0rc1.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-20.2.0.dist-info → flywheel_sdk-20.2.0rc1.dist-info}/top_level.txt +0 -0
flywheel/api_client.py
CHANGED
|
@@ -84,7 +84,7 @@ class ApiClient(object):
|
|
|
84
84
|
self.default_query_params = []
|
|
85
85
|
self.cookie = cookie
|
|
86
86
|
# Set default User-Agent.
|
|
87
|
-
self.user_agent = 'Swagger-Codegen/20.2.0/python'
|
|
87
|
+
self.user_agent = 'Swagger-Codegen/20.2.0-rc1/python'
|
|
88
88
|
self.last_response = None
|
|
89
89
|
self._version_check_fn = None
|
|
90
90
|
self._context = context
|
flywheel/configuration.py
CHANGED
|
@@ -252,6 +252,6 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
252
252
|
return "Python SDK Debug Report:\n"\
|
|
253
253
|
"OS: {env}\n"\
|
|
254
254
|
"Python Version: {pyversion}\n"\
|
|
255
|
-
"Version of the API: 20.2.0\n"\
|
|
256
|
-
"SDK Package Version: 20.2.0".\
|
|
255
|
+
"Version of the API: 20.2.0-rc1\n"\
|
|
256
|
+
"SDK Package Version: 20.2.0-rc1".\
|
|
257
257
|
format(env=sys.platform, pyversion=sys.version)
|
flywheel/flywheel.py
CHANGED
|
@@ -40,7 +40,7 @@ from flywheel.view_builder import ViewBuilder
|
|
|
40
40
|
from flywheel.finder import Finder
|
|
41
41
|
import flywheel.api
|
|
42
42
|
|
|
43
|
-
SDK_VERSION = "20.2.0"
|
|
43
|
+
SDK_VERSION = "20.2.0-rc1"
|
|
44
44
|
|
|
45
45
|
def config_from_api_key(api_key):
|
|
46
46
|
parts = api_key.split(':')
|
|
@@ -9460,6 +9460,7 @@ class Flywheel:
|
|
|
9460
9460
|
|
|
9461
9461
|
def _upload_to_signed_url(self, urls, fdata, fsize, headers):
|
|
9462
9462
|
is_s3_upload = ".s3." in urls[0] or ".amazonaws." in urls[0]
|
|
9463
|
+
is_gc_upload = ".googleapis." in urls[0]
|
|
9463
9464
|
e_tags = list()
|
|
9464
9465
|
upload_id = None
|
|
9465
9466
|
|
|
@@ -9469,6 +9470,11 @@ class Flywheel:
|
|
|
9469
9470
|
remaining = fsize - part_size * part_num
|
|
9470
9471
|
content_length = remaining if remaining < part_size else part_size
|
|
9471
9472
|
reader = PartialReader(fdata, content_length)
|
|
9473
|
+
if is_gc_upload:
|
|
9474
|
+
headers['Content-Length'] = str(content_length)
|
|
9475
|
+
start = part_num * part_size
|
|
9476
|
+
end = start + content_length - 1
|
|
9477
|
+
headers['Content-Range'] = f"bytes {start}-{end}/{fsize}"
|
|
9472
9478
|
upload_response = self.api_client.rest_client.session.put(
|
|
9473
9479
|
url, data=reader, headers=headers
|
|
9474
9480
|
)
|
flywheel/models/__init__.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Flywheel: API for data import, automated curation, image processing, machine learning workflows, and secure collaboration. # noqa: E501
|
|
8
8
|
|
|
9
|
-
OpenAPI spec version: 20.2.0
|
|
9
|
+
OpenAPI spec version: 20.2.0-rc1
|
|
10
10
|
|
|
11
11
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
"""
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
flywheel/__init__.py,sha256=g26nuNZtLOTrOYUjgLJ3SKaqM0vNk7CHHssM-j0C1UQ,44814
|
|
2
|
-
flywheel/api_client.py,sha256=
|
|
2
|
+
flywheel/api_client.py,sha256=Gtd0fq-MAn6yGZEimI0abCPwIq8EGMlkejLjRTZcF28,29574
|
|
3
3
|
flywheel/client.py,sha256=LMvn2aSdtn-waCpXzux8FKJxEB0469SJg5ZNnB5BqTc,10476
|
|
4
|
-
flywheel/configuration.py,sha256=
|
|
4
|
+
flywheel/configuration.py,sha256=1DVg8kb1DxUojw9nVQiKJqPg45yGLrULBRM0yMUUdRA,8647
|
|
5
5
|
flywheel/drone_login.py,sha256=8nELIBYBJMuPHQ0zdrGjWB20C3OTZbxpFVyxWmQ0kr0,2229
|
|
6
6
|
flywheel/file_spec.py,sha256=0BnFgyH0qsDxuupJG5_g9LX2cLq7JxRiSODN3HdI-ak,2220
|
|
7
7
|
flywheel/finder.py,sha256=h5hxD03Ye4lZJflxh3Ub_zwFS273wWq2wTLf2CQz-lM,6887
|
|
8
|
-
flywheel/flywheel.py,sha256=
|
|
8
|
+
flywheel/flywheel.py,sha256=r3Gv5JhDGOXXKI65y0V0uuz5Hd49s2AWP6RecSe4rq8,413420
|
|
9
9
|
flywheel/gear_context.py,sha256=cFJs8cC_on6v184HVUTXSSVS9y5ee73QN0lCkPTQ5jk,13701
|
|
10
10
|
flywheel/partial_reader.py,sha256=SkMgwaGZeeVaN7f9dzmVitBFnQv8ARLJgEaQP36l92s,1222
|
|
11
11
|
flywheel/rest.py,sha256=Luybe_pjqufXgw3LHSwPrSWFKrrAH6UU3IvTtSeCoAQ,13604
|
|
@@ -47,7 +47,7 @@ flywheel/api/uids_api.py,sha256=mFStWRKbdgymR_FYDHq8EsOiTfDKjz2XEcWT1XQUYtQ,4946
|
|
|
47
47
|
flywheel/api/upload_api.py,sha256=emrzAmurhGb-uBI7Ewckbn5DyP9LBkfn6OI1zxhKnb8,38540
|
|
48
48
|
flywheel/api/users_api.py,sha256=t6CgyTGKdr-ojDi_wW3Zpgw3XhiUE7shDXxKLK3__ZY,85397
|
|
49
49
|
flywheel/api/views_api.py,sha256=ZbPYA_sOQ9qnOjkOUeioV0v08VPbsuuOnMP3EBySEVY,44375
|
|
50
|
-
flywheel/models/__init__.py,sha256=
|
|
50
|
+
flywheel/models/__init__.py,sha256=wpZOIR9CmKcb95TPO-wdBV4aQ1I-8MvA8dXfHBoPvII,42633
|
|
51
51
|
flywheel/models/access_level.py,sha256=zSgO2gWTTSo-p1v49ilz3Q5ZizZ7DESA5P6Ur67fgX0,575
|
|
52
52
|
flywheel/models/access_permission.py,sha256=-IYmy-yb8zecmGZx7iE0bhZW7PvuWpm3zAHr2FwCyLI,5336
|
|
53
53
|
flywheel/models/access_permission_output.py,sha256=faCnvyMYozmSVSlLFYMdJw84hQc3ugxx7LH2JzBfnoE,5202
|
|
@@ -704,8 +704,8 @@ flywheel/models/virus_scan_state.py,sha256=zBmk7x3ZoDhEozIeD-Gw7CEkU7yWYKFMFXklL
|
|
|
704
704
|
flywheel/models/work_in_progress_features.py,sha256=dZ_cJTztcU3wPIUKptwZzb7hdv9mo27wXfWgolkJa1k,3944
|
|
705
705
|
flywheel/models/zipfile_info.py,sha256=8ivqs0rTQaiC8KirTaK_WqSGkLvCndI_58dylOBKwa4,5243
|
|
706
706
|
flywheel/models/zipfile_member_info.py,sha256=zAg9wRUeYXbz6bvXdo4xYFHtvv9eRSCjvyaTrQ3zvN4,6346
|
|
707
|
-
flywheel_sdk-20.2.
|
|
708
|
-
flywheel_sdk-20.2.
|
|
709
|
-
flywheel_sdk-20.2.
|
|
710
|
-
flywheel_sdk-20.2.
|
|
711
|
-
flywheel_sdk-20.2.
|
|
707
|
+
flywheel_sdk-20.2.0rc1.dist-info/licenses/LICENSE.txt,sha256=F_Wp8b8L-2vc2xxcRr402gN1gg-2y0p2oG8aSj3hdMA,1057
|
|
708
|
+
flywheel_sdk-20.2.0rc1.dist-info/METADATA,sha256=4JhLJXVj0H5G3GvlO1b5Ag_6Jb3g9T_gf7F6-vmb1us,1046
|
|
709
|
+
flywheel_sdk-20.2.0rc1.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
|
710
|
+
flywheel_sdk-20.2.0rc1.dist-info/top_level.txt,sha256=BQ1fXyhiudo2To7zMNcPOOGa6qtZuhx0V_I7CO-vU6w,9
|
|
711
|
+
flywheel_sdk-20.2.0rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|