cloud-files 4.28.0__py3-none-any.whl → 4.29.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloud-files
3
- Version: 4.28.0
3
+ Version: 4.29.0
4
4
  Summary: Fast access to cloud storage and local FS.
5
5
  Home-page: https://github.com/seung-lab/cloud-files/
6
6
  Author: William Silversmith
@@ -1,5 +1,5 @@
1
1
  cloudfiles/__init__.py,sha256=pLB4CcV2l3Jgv_ni1520Np1pfzFj8Cpr87vNxFT3rNI,493
2
- cloudfiles/cloudfiles.py,sha256=KcHgVjLjPcOsgXVTr3edFFWcuz53xcOtWpxznkiAMos,48989
2
+ cloudfiles/cloudfiles.py,sha256=kkzKwqbeqne-g8fMLQ4Qag3WHROoKQftEN7CoUlp3mY,49157
3
3
  cloudfiles/compression.py,sha256=pqYdpu5vfFv-094BpfZ2pgRjVu7ESM9pAZC09P6E8bY,6150
4
4
  cloudfiles/connectionpools.py,sha256=aL8RiSjRepECfgAFmJcz80aJFKbou7hsbuEgugDKwB8,4814
5
5
  cloudfiles/exceptions.py,sha256=H2IcMlZoy2Bsn-6wCPwyLDjg66LZCyxtcf3s_p21FDw,770
@@ -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=HGlX8oyIL7XASl57KXMlVQunF7pA_MVbMq-lpPA90LY,33911
18
- cloud_files-4.28.0.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
19
- cloud_files-4.28.0.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
20
- cloud_files-4.28.0.dist-info/METADATA,sha256=gY-SuRG7iU8PM4ckUSGrZyuhGiOkCt6qQ4bsLhYknBY,27046
21
- cloud_files-4.28.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
- cloud_files-4.28.0.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
23
- cloud_files-4.28.0.dist-info/pbr.json,sha256=nMag4w8eL7zh1OBHgElm2bR8KdiVNL-xEh79OlA1LPI,46
24
- cloud_files-4.28.0.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
25
- cloud_files-4.28.0.dist-info/RECORD,,
18
+ cloud_files-4.29.0.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
19
+ cloud_files-4.29.0.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
20
+ cloud_files-4.29.0.dist-info/METADATA,sha256=RXb-6Haql_UlezObf6UNWzrO4Ng5CsuMtCEJ1tbBgT8,27046
21
+ cloud_files-4.29.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
+ cloud_files-4.29.0.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
23
+ cloud_files-4.29.0.dist-info/pbr.json,sha256=PTOoErqIO3mXz8vni4r9bHwM8yaRZ_dD2Mma3rRz-00,46
24
+ cloud_files-4.29.0.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
25
+ cloud_files-4.29.0.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "be87fb6", "is_release": true}
cloudfiles/cloudfiles.py CHANGED
@@ -837,8 +837,10 @@ class CloudFiles:
837
837
 
838
838
  def size(
839
839
  self, paths:GetPathType,
840
- total:Optional[int] = None, progress:Optional[bool] = None
841
- ) -> Union[Dict[str,int],List[Dict[str,int]]]:
840
+ total:Optional[int] = None,
841
+ progress:Optional[bool] = None,
842
+ return_sum:bool = False,
843
+ ) -> Union[Dict[str,int],List[Dict[str,int]],int]:
842
844
  """
843
845
  Get the size in bytes of one or more files in its stored state.
844
846
  """
@@ -859,6 +861,9 @@ class CloudFiles:
859
861
  green=self.green,
860
862
  )
861
863
 
864
+ if return_sum:
865
+ return sum(( sz for sz in results.values() ))
866
+
862
867
  if return_multiple:
863
868
  return results
864
869
  return first(results.values())
@@ -1586,6 +1591,9 @@ class CloudFile:
1586
1591
  reencode=reencode,
1587
1592
  )
1588
1593
 
1594
+ def join(self, *args):
1595
+ return self.cf.join(*args)
1596
+
1589
1597
  def touch(self):
1590
1598
  return self.cf.touch(self.filename)
1591
1599
 
@@ -1 +0,0 @@
1
- {"git_version": "e9510b0", "is_release": true}