rclone-api 1.2.3__py2.py3-none-any.whl → 1.2.5__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.
@@ -21,6 +21,7 @@ _MIN_UPLOAD_CHUNK_SIZE = 5 * 1024 * 1024 # 5MB
21
21
  def upload_task(
22
22
  info: UploadInfo, chunk: bytes, part_number: int, retries: int
23
23
  ) -> FinishedPiece:
24
+ assert len(chunk) > 0
24
25
  retries = retries + 1 # Add one for the initial attempt
25
26
  for retry in range(retries):
26
27
  try:
@@ -55,6 +56,7 @@ def handle_upload(
55
56
  ) -> FinishedPiece | Exception | None:
56
57
  if file_chunk is None:
57
58
  return None
59
+ print(f"Handling upload for {file_chunk.part_number}, size {len(file_chunk.data)}")
58
60
  chunk, part_number = file_chunk.data, file_chunk.part_number
59
61
  try:
60
62
  part: FinishedPiece = upload_task(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  License: BSD 3-Clause License
@@ -32,10 +32,10 @@ rclone_api/s3/chunk_file.py,sha256=dCF5PcI3ygw4PXuaLluBU6euW4QYYpHjsLR_jjhZxQc,4
32
32
  rclone_api/s3/chunk_types.py,sha256=2n9U1BZ_5mcpoLLbSqkhvzgKj814jtSMnih9CWKcChU,10592
33
33
  rclone_api/s3/create.py,sha256=wgfkapv_j904CfKuWyiBIWJVxfAx_ftemFSUV14aT68,3149
34
34
  rclone_api/s3/types.py,sha256=ZUw9s164wljCEMTS4CoHXNzFIhYJEgKD6NDAu-RXyr8,1551
35
- rclone_api/s3/upload_file_multipart.py,sha256=aApXXnGt7MP1KQcYKIZHJvb6pGRaVxGJMq397bDxFgo,10792
36
- rclone_api-1.2.3.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
37
- rclone_api-1.2.3.dist-info/METADATA,sha256=t_v6jdm2t9UmtBzhZDGNC6kcJ_I3w4yjRNeyi1Cc8As,4536
38
- rclone_api-1.2.3.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
39
- rclone_api-1.2.3.dist-info/entry_points.txt,sha256=TV8kwP3FRzYwUEr0RLC7aJh0W03SAefIJNXTJ-FdMIQ,200
40
- rclone_api-1.2.3.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
41
- rclone_api-1.2.3.dist-info/RECORD,,
35
+ rclone_api/s3/upload_file_multipart.py,sha256=aDaLF2FWSvU_jurxiFphGZBncvkPqWN47VFNzYSSTWM,10906
36
+ rclone_api-1.2.5.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
37
+ rclone_api-1.2.5.dist-info/METADATA,sha256=LOI7QwDVmTqYaOvpvtF0-jQwM5dzpJQ4urbe3m0YQvg,4536
38
+ rclone_api-1.2.5.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
39
+ rclone_api-1.2.5.dist-info/entry_points.txt,sha256=TV8kwP3FRzYwUEr0RLC7aJh0W03SAefIJNXTJ-FdMIQ,200
40
+ rclone_api-1.2.5.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
41
+ rclone_api-1.2.5.dist-info/RECORD,,