cloud-files 5.0.3__py3-none-any.whl → 5.1.1__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.
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/METADATA +1 -1
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/RECORD +11 -11
- cloud_files-5.1.1.dist-info/pbr.json +1 -0
- cloudfiles/cloudfiles.py +1 -1
- cloudfiles/interfaces.py +9 -0
- cloudfiles/paths.py +6 -0
- cloud_files-5.0.3.dist-info/pbr.json +0 -1
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/AUTHORS +0 -0
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/LICENSE +0 -0
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/WHEEL +0 -0
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/entry_points.txt +0 -0
- {cloud_files-5.0.3.dist-info → cloud_files-5.1.1.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
cloudfiles/__init__.py,sha256=pLB4CcV2l3Jgv_ni1520Np1pfzFj8Cpr87vNxFT3rNI,493
|
|
2
|
-
cloudfiles/cloudfiles.py,sha256=
|
|
2
|
+
cloudfiles/cloudfiles.py,sha256=K8rKzrzDzbi1HjGoPMsXSMFzTbe_KLfDIyk4tRjoGEI,51070
|
|
3
3
|
cloudfiles/compression.py,sha256=pqYdpu5vfFv-094BpfZ2pgRjVu7ESM9pAZC09P6E8bY,6150
|
|
4
4
|
cloudfiles/connectionpools.py,sha256=aL8RiSjRepECfgAFmJcz80aJFKbou7hsbuEgugDKwB8,4814
|
|
5
5
|
cloudfiles/exceptions.py,sha256=N0oGQNG-St6RvnT8e5p_yC_E61q2kgAe2scwAL0F49c,843
|
|
6
6
|
cloudfiles/gcs.py,sha256=unqu5KxGKaPq6N4QeHSpCDdtnK1BzPOAerTZ8FLt2_4,3820
|
|
7
|
-
cloudfiles/interfaces.py,sha256=
|
|
7
|
+
cloudfiles/interfaces.py,sha256=8Gez-1q1Ulb6p_qSfydwAKXvJybVi-QS0yfkvSnm44I,43862
|
|
8
8
|
cloudfiles/lib.py,sha256=9YFGMCy0mi23baqtsr-f5Gd1ewAGvD7x3UVNt772Z9E,5317
|
|
9
|
-
cloudfiles/paths.py,sha256=
|
|
9
|
+
cloudfiles/paths.py,sha256=4B3qWjR2TP8wAYK4NLw-iy2KUn3VNspKp6_Vy4j3I8A,11592
|
|
10
10
|
cloudfiles/resumable_tools.py,sha256=NyuSoGh1SaP5akrHCpd9kgy2-JruEWrHW9lvJxV7jpE,6711
|
|
11
11
|
cloudfiles/scheduler.py,sha256=DqDANmOpB3NdzFgJDNMMibRIkCrXQqIh2XGL8GWoc9c,3668
|
|
12
12
|
cloudfiles/secrets.py,sha256=791b5a8nWSBYtlleGzKeoYIR5jl-FI1bw6INRM4Wy-0,5295
|
|
@@ -15,11 +15,11 @@ cloudfiles/typing.py,sha256=f3ZYkNfN9poxhGu5j-P0KCxjCCqSn9HAg5KiIPkjnCg,416
|
|
|
15
15
|
cloudfiles_cli/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
|
|
16
16
|
cloudfiles_cli/__init__.py,sha256=Wftt3R3F21QsHtWqx49ODuqT9zcSr0em7wk48kcH0WM,29
|
|
17
17
|
cloudfiles_cli/cloudfiles_cli.py,sha256=_2Amjp3vsdq7vQgF2utD6BJqjOPKXOTjrJyehnlojpQ,34893
|
|
18
|
-
cloud_files-5.
|
|
19
|
-
cloud_files-5.
|
|
20
|
-
cloud_files-5.
|
|
21
|
-
cloud_files-5.
|
|
22
|
-
cloud_files-5.
|
|
23
|
-
cloud_files-5.
|
|
24
|
-
cloud_files-5.
|
|
25
|
-
cloud_files-5.
|
|
18
|
+
cloud_files-5.1.1.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
|
|
19
|
+
cloud_files-5.1.1.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
|
|
20
|
+
cloud_files-5.1.1.dist-info/METADATA,sha256=BvXLKejFeTRrk-xA-C43tBNwBToAWNb0kc_wArTYFwk,27047
|
|
21
|
+
cloud_files-5.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
22
|
+
cloud_files-5.1.1.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
|
|
23
|
+
cloud_files-5.1.1.dist-info/pbr.json,sha256=0f1MfoUsmR8uufmjDCLBvW5H2ILfcWRnzLTzR_0ufbg,46
|
|
24
|
+
cloud_files-5.1.1.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
|
|
25
|
+
cloud_files-5.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "39ec622", "is_release": true}
|
cloudfiles/cloudfiles.py
CHANGED
cloudfiles/interfaces.py
CHANGED
|
@@ -707,6 +707,7 @@ class GoogleCloudStorageInterface(StorageInterface):
|
|
|
707
707
|
key = self.get_path_to_file(src)
|
|
708
708
|
blob = self._bucket.blob(key)
|
|
709
709
|
try:
|
|
710
|
+
mkdir(os.path.dirname(dest))
|
|
710
711
|
blob.download_to_filename(
|
|
711
712
|
filename=dest,
|
|
712
713
|
raw_download=True,
|
|
@@ -834,6 +835,14 @@ class GoogleCloudStorageInterface(StorageInterface):
|
|
|
834
835
|
elif flat and '/' not in blob.name.removeprefix(path):
|
|
835
836
|
yield filename
|
|
836
837
|
|
|
838
|
+
# When there are no regular items at this level
|
|
839
|
+
# we need to still print the directories.
|
|
840
|
+
if first and blobs.prefixes:
|
|
841
|
+
yield from (
|
|
842
|
+
item.removeprefix(path)
|
|
843
|
+
for item in blobs.prefixes
|
|
844
|
+
)
|
|
845
|
+
|
|
837
846
|
def release_connection(self):
|
|
838
847
|
global GC_POOL
|
|
839
848
|
with GCS_BUCKET_POOL_LOCK:
|
cloudfiles/paths.py
CHANGED
|
@@ -18,6 +18,8 @@ ExtractedPath = namedtuple('ExtractedPath',
|
|
|
18
18
|
('format', 'protocol', 'bucket', 'path', 'host', 'alias')
|
|
19
19
|
)
|
|
20
20
|
|
|
21
|
+
PRECOMPUTED_SUFFIX = '|neuroglancer-precomputed:'
|
|
22
|
+
|
|
21
23
|
ALIAS_FILE = os.path.join(CLOUD_FILES_DIR, "aliases.json")
|
|
22
24
|
OFFICIAL_ALIASES = {
|
|
23
25
|
"matrix": "s3://https://s3-hpcrc.rc.princeton.edu/",
|
|
@@ -161,6 +163,9 @@ for alias, host in OFFICIAL_ALIASES.items():
|
|
|
161
163
|
|
|
162
164
|
@lru_cache(maxsize=10, typed=False)
|
|
163
165
|
def normalize(path):
|
|
166
|
+
|
|
167
|
+
path = path.removesuffix(PRECOMPUTED_SUFFIX)
|
|
168
|
+
|
|
164
169
|
fmt, proto, endpoint, cloudpath, alias = extract_format_protocol(
|
|
165
170
|
path, allow_defaults=False
|
|
166
171
|
)
|
|
@@ -294,6 +299,7 @@ def extract_format_protocol(cloudpath:str, allow_defaults=True) -> tuple:
|
|
|
294
299
|
|
|
295
300
|
groups = m.groups()
|
|
296
301
|
cloudpath = re.sub(CLOUDPATH_REGEXP, '', cloudpath, count=1)
|
|
302
|
+
cloudpath = cloudpath.removesuffix(PRECOMPUTED_SUFFIX)
|
|
297
303
|
|
|
298
304
|
fmt = m.group('fmt')
|
|
299
305
|
if not fmt and allow_defaults:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "589559d", "is_release": true}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|