rclone-api 1.3.20__py2.py3-none-any.whl → 1.3.22__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.
- rclone_api/cmd/copy_large_s3.py +16 -11
- rclone_api/rclone.py +1 -1
- {rclone_api-1.3.20.dist-info → rclone_api-1.3.22.dist-info}/METADATA +2 -1
- {rclone_api-1.3.20.dist-info → rclone_api-1.3.22.dist-info}/RECORD +8 -8
- {rclone_api-1.3.20.dist-info → rclone_api-1.3.22.dist-info}/LICENSE +0 -0
- {rclone_api-1.3.20.dist-info → rclone_api-1.3.22.dist-info}/WHEEL +0 -0
- {rclone_api-1.3.20.dist-info → rclone_api-1.3.22.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.3.20.dist-info → rclone_api-1.3.22.dist-info}/top_level.txt +0 -0
rclone_api/cmd/copy_large_s3.py
CHANGED
@@ -31,7 +31,7 @@ def _parse_args() -> Args:
|
|
31
31
|
parser.add_argument("dst", help="Destination file")
|
32
32
|
parser.add_argument("-v", "--verbose", help="Verbose output", action="store_true")
|
33
33
|
parser.add_argument(
|
34
|
-
"--config", help="Path to rclone config file", type=Path, required=
|
34
|
+
"--config", help="Path to rclone config file", type=Path, required=False
|
35
35
|
)
|
36
36
|
parser.add_argument(
|
37
37
|
"--chunk-size",
|
@@ -60,8 +60,14 @@ def _parse_args() -> Args:
|
|
60
60
|
)
|
61
61
|
|
62
62
|
args = parser.parse_args()
|
63
|
+
config: Path | None = args.config
|
64
|
+
if config is None:
|
65
|
+
config = Path("rclone.conf")
|
66
|
+
if not config.exists():
|
67
|
+
raise FileNotFoundError(f"Config file not found: {config}")
|
68
|
+
assert config is not None
|
63
69
|
out = Args(
|
64
|
-
config_path=
|
70
|
+
config_path=config,
|
65
71
|
src=args.src,
|
66
72
|
dst=args.dst,
|
67
73
|
chunk_size=SizeSuffix(args.chunk_size),
|
@@ -94,21 +100,20 @@ def main() -> int:
|
|
94
100
|
|
95
101
|
|
96
102
|
if __name__ == "__main__":
|
97
|
-
import os
|
98
103
|
import sys
|
99
104
|
|
100
|
-
here = Path(__file__).parent
|
101
|
-
project_root = here.parent.parent.parent
|
102
|
-
print(f"project_root: {project_root}")
|
103
|
-
os.chdir(str(project_root))
|
104
|
-
cwd = Path(__file__).parent
|
105
|
-
print(f"cwd: {cwd}")
|
105
|
+
# here = Path(__file__).parent
|
106
|
+
# project_root = here.parent.parent.parent
|
107
|
+
# print(f"project_root: {project_root}")
|
108
|
+
# os.chdir(str(project_root))
|
109
|
+
# cwd = Path(__file__).parent
|
110
|
+
# print(f"cwd: {cwd}")
|
106
111
|
sys.argv.append("--config")
|
107
112
|
sys.argv.append("rclone.conf")
|
108
113
|
sys.argv.append(
|
109
|
-
"45061:aa_misc_data/aa_misc_data/world_lending_library_2024_11.tar.zst
|
114
|
+
"45061:aa_misc_data/aa_misc_data/world_lending_library_2024_11.tar.zst"
|
110
115
|
)
|
111
116
|
sys.argv.append(
|
112
|
-
"dst:TorrentBooks/aa_misc_data/aa_misc_data/world_lending_library_2024_11.tar.zst
|
117
|
+
"dst:TorrentBooks/aa_misc_data/aa_misc_data/world_lending_library_2024_11.tar.zst"
|
113
118
|
)
|
114
119
|
main()
|
rclone_api/rclone.py
CHANGED
@@ -815,7 +815,7 @@ class Rclone:
|
|
815
815
|
|
816
816
|
chunk_size = chunk_size or SizeSuffix("64M")
|
817
817
|
MAX_CHUNKS = 10000
|
818
|
-
min_chunk_size = size_result.total_size // (MAX_CHUNKS - 1)
|
818
|
+
min_chunk_size = SizeSuffix(size_result.total_size // (MAX_CHUNKS - 1))
|
819
819
|
if min_chunk_size > chunk_size:
|
820
820
|
warnings.warn(
|
821
821
|
f"Chunk size {chunk_size} is too small for file size {size_result.total_size}, setting to {min_chunk_size}"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: rclone_api
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.22
|
4
4
|
Summary: rclone api in python
|
5
5
|
Home-page: https://github.com/zackees/rclone-api
|
6
6
|
License: BSD 3-Clause License
|
@@ -16,6 +16,7 @@ Requires-Dist: psutil
|
|
16
16
|
Requires-Dist: boto3<=1.35.99,>=1.20.1
|
17
17
|
Requires-Dist: sqlmodel>=0.0.23
|
18
18
|
Requires-Dist: psycopg2-binary>=2.9.10
|
19
|
+
Requires-Dist: httpx>=0.28.1
|
19
20
|
Dynamic: home-page
|
20
21
|
|
21
22
|
# rclone-api
|
@@ -17,7 +17,7 @@ rclone_api/log.py,sha256=VZHM7pNSXip2ZLBKMP7M1u-rp_F7zoafFDuR8CPUoKI,1271
|
|
17
17
|
rclone_api/mount.py,sha256=TE_VIBMW7J1UkF_6HRCt8oi_jGdMov4S51bm2OgxFAM,10045
|
18
18
|
rclone_api/mount_read_chunker.py,sha256=7jaF1Rsjr-kXIZW--Ol1QuG7WArBgdIcpQ0AJMYn7bI,4764
|
19
19
|
rclone_api/process.py,sha256=BGXJTZVT__jeaDyjN8_kRycliOhkBErMPdHO1hKRvJE,5271
|
20
|
-
rclone_api/rclone.py,sha256=
|
20
|
+
rclone_api/rclone.py,sha256=JYSilA0cFn6UQ0_72kqWgNhGyIAOqhbTilrbZkRnfXs,54111
|
21
21
|
rclone_api/remote.py,sha256=jq3dPbAGvYZFW5cTviqxT2w6_jG2LLfS1RIcYSmMsQQ,503
|
22
22
|
rclone_api/rpath.py,sha256=8ZA_1wxWtskwcy0I8V2VbjKDmzPkiWd8Q2JQSvh-sYE,2586
|
23
23
|
rclone_api/scan_missing_folders.py,sha256=Kulca2Q6WZodt00ATFHkmqqInuoPvBkhTcS9703y6po,4740
|
@@ -26,7 +26,7 @@ rclone_api/util.py,sha256=F9Q3zbWRsgPF4NG6OWB63cZ7GVq82lsraP47gmmDohU,5416
|
|
26
26
|
rclone_api/walk.py,sha256=-54NVE8EJcCstwDoaC_UtHm73R2HrZwVwQmsnv55xNU,3369
|
27
27
|
rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
28
28
|
rclone_api/cmd/analyze.py,sha256=RHbvk1G5ZUc3qLqlm1AZEyQzd_W_ZjcbCNDvW4YpTKQ,1252
|
29
|
-
rclone_api/cmd/copy_large_s3.py,sha256=
|
29
|
+
rclone_api/cmd/copy_large_s3.py,sha256=etOMCyN2FECev7sF_Z3Ftp-2UHRE09Yhfg6AgflDHek,3573
|
30
30
|
rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
|
31
31
|
rclone_api/cmd/save_to_db.py,sha256=ylvnhg_yzexM-m6Zr7XDiswvoDVSl56ELuFAdb9gqBY,1957
|
32
32
|
rclone_api/db/__init__.py,sha256=OSRUdnSWUlDTOHmjdjVmxYTUNpTbtaJ5Ll9sl-PfZg0,40
|
@@ -42,9 +42,9 @@ rclone_api/s3/chunk_types.py,sha256=oSWv8No9V3BeM7IcGnowyR2a7YrszdAXzEJlxaeZcp0,
|
|
42
42
|
rclone_api/s3/create.py,sha256=wgfkapv_j904CfKuWyiBIWJVxfAx_ftemFSUV14aT68,3149
|
43
43
|
rclone_api/s3/types.py,sha256=Elmh__gvZJyJyElYwMmvYZIBIunDJiTRAbEg21GmsRU,1604
|
44
44
|
rclone_api/s3/upload_file_multipart.py,sha256=UlrUl8fB0oK8_r0w8ZwH79jlOCHQrMOKWZeNCmHrT7M,12052
|
45
|
-
rclone_api-1.3.
|
46
|
-
rclone_api-1.3.
|
47
|
-
rclone_api-1.3.
|
48
|
-
rclone_api-1.3.
|
49
|
-
rclone_api-1.3.
|
50
|
-
rclone_api-1.3.
|
45
|
+
rclone_api-1.3.22.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
46
|
+
rclone_api-1.3.22.dist-info/METADATA,sha256=jf9TZCxwZIaOD_4bqJQ_SrVJxygQS2fqlBuEHj0tEGc,4628
|
47
|
+
rclone_api-1.3.22.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
|
48
|
+
rclone_api-1.3.22.dist-info/entry_points.txt,sha256=fJteOlYVwgX3UbNuL9jJ0zUTuX2O79JFAeNgK7Sw7EQ,255
|
49
|
+
rclone_api-1.3.22.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
50
|
+
rclone_api-1.3.22.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|