rclone-api 1.0.24__tar.gz → 1.0.26__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. {rclone_api-1.0.24 → rclone_api-1.0.26}/PKG-INFO +1 -1
  2. {rclone_api-1.0.24 → rclone_api-1.0.26}/pyproject.toml +1 -1
  3. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/rclone.py +30 -3
  4. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/PKG-INFO +1 -1
  5. {rclone_api-1.0.24 → rclone_api-1.0.26}/.aiderignore +0 -0
  6. {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/lint.yml +0 -0
  7. {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/push_macos.yml +0 -0
  8. {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/push_ubuntu.yml +0 -0
  9. {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/push_win.yml +0 -0
  10. {rclone_api-1.0.24 → rclone_api-1.0.26}/.gitignore +0 -0
  11. {rclone_api-1.0.24 → rclone_api-1.0.26}/.pylintrc +0 -0
  12. {rclone_api-1.0.24 → rclone_api-1.0.26}/.vscode/launch.json +0 -0
  13. {rclone_api-1.0.24 → rclone_api-1.0.26}/.vscode/settings.json +0 -0
  14. {rclone_api-1.0.24 → rclone_api-1.0.26}/.vscode/tasks.json +0 -0
  15. {rclone_api-1.0.24 → rclone_api-1.0.26}/LICENSE +0 -0
  16. {rclone_api-1.0.24 → rclone_api-1.0.26}/MANIFEST.in +0 -0
  17. {rclone_api-1.0.24 → rclone_api-1.0.26}/README.md +0 -0
  18. {rclone_api-1.0.24 → rclone_api-1.0.26}/clean +0 -0
  19. {rclone_api-1.0.24 → rclone_api-1.0.26}/install +0 -0
  20. {rclone_api-1.0.24 → rclone_api-1.0.26}/lint +0 -0
  21. {rclone_api-1.0.24 → rclone_api-1.0.26}/requirements.testing.txt +0 -0
  22. {rclone_api-1.0.24 → rclone_api-1.0.26}/setup.cfg +0 -0
  23. {rclone_api-1.0.24 → rclone_api-1.0.26}/setup.py +0 -0
  24. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/__init__.py +0 -0
  25. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/assets/example.txt +0 -0
  26. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/cli.py +0 -0
  27. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/cmd/list_files.py +0 -0
  28. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/config.py +0 -0
  29. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/convert.py +0 -0
  30. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/dir.py +0 -0
  31. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/dir_listing.py +0 -0
  32. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/exec.py +0 -0
  33. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/file.py +0 -0
  34. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/filelist.py +0 -0
  35. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/process.py +0 -0
  36. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/remote.py +0 -0
  37. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/rpath.py +0 -0
  38. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/util.py +0 -0
  39. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/walk.py +0 -0
  40. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/SOURCES.txt +0 -0
  41. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/dependency_links.txt +0 -0
  42. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/entry_points.txt +0 -0
  43. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/requires.txt +0 -0
  44. {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/top_level.txt +0 -0
  45. {rclone_api-1.0.24 → rclone_api-1.0.26}/test +0 -0
  46. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_cmd_list_files.py +0 -0
  47. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_copy.py +0 -0
  48. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_is_synced.py +0 -0
  49. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_ls.py +0 -0
  50. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_mount.py +0 -0
  51. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_mount_s3.py +0 -0
  52. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_mount_webdav.py +0 -0
  53. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_obscure.py +0 -0
  54. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_remotes.py +0 -0
  55. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_serve_webdav.py +0 -0
  56. {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_walk.py +0 -0
  57. {rclone_api-1.0.24 → rclone_api-1.0.26}/tox.ini +0 -0
  58. {rclone_api-1.0.24 → rclone_api-1.0.26}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.0.24
3
+ Version: 1.0.26
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  Maintainer: Zachary Vorhies
@@ -15,7 +15,7 @@ dependencies = [
15
15
  "python-dotenv>=1.0.0",
16
16
  ]
17
17
  # Change this with the version number bump.
18
- version = "1.0.24"
18
+ version = "1.0.26"
19
19
 
20
20
  [tool.setuptools]
21
21
  package-dir = {"" = "src"}
@@ -345,14 +345,23 @@ class Rclone:
345
345
  self,
346
346
  url: str,
347
347
  outdir: Path,
348
+ allow_writes=False,
348
349
  vfs_cache_mode="full",
349
- transfers: int | None = 16,
350
+ # dir-cache-time
351
+ dir_cache_time: str | None = "1h",
352
+ attribute_timeout: str | None = "1h",
353
+ # --vfs-cache-max-size
354
+ # vfs-cache-max-size
355
+ vfs_disk_space_total_size: str | None = "100M",
356
+ transfers: int | None = 128,
350
357
  modtime_strategy: (
351
358
  ModTimeStrategy | None
352
359
  ) = ModTimeStrategy.USE_SERVER_MODTIME, # speeds up S3 operations
353
360
  vfs_read_chunk_streams: int | None = 16,
354
361
  vfs_read_chunk_size: str | None = "4M",
355
362
  vfs_fast_fingerprint: bool = True,
363
+ # vfs-refresh
364
+ vfs_refresh: bool = True,
356
365
  other_cmds: list[str] | None = None,
357
366
  ) -> Process:
358
367
  """Mount a remote or directory to a local path.
@@ -365,10 +374,24 @@ class Rclone:
365
374
  if modtime_strategy is not None:
366
375
  other_cmds.append(f"--{modtime_strategy.value}")
367
376
  if (vfs_cache_mode == "full" or vfs_cache_mode == "writes") and (
368
- transfers is not None
377
+ transfers is not None and "--transfers" not in other_cmds
369
378
  ):
370
379
  other_cmds.append("--transfers")
371
380
  other_cmds.append(str(transfers))
381
+ if dir_cache_time is not None and "--dir-cache-time" not in other_cmds:
382
+ other_cmds.append("--dir-cache-time")
383
+ other_cmds.append(dir_cache_time)
384
+ if (
385
+ vfs_disk_space_total_size is not None
386
+ and "--vfs-cache-max-size" not in other_cmds
387
+ ):
388
+ other_cmds.append("--vfs-cache-max-size")
389
+ other_cmds.append(vfs_disk_space_total_size)
390
+ if vfs_refresh and "--vfs-refresh" not in other_cmds:
391
+ other_cmds.append("--vfs-refresh")
392
+ if attribute_timeout is not None and "--attr-timeout" not in other_cmds:
393
+ other_cmds.append("--attr-timeout")
394
+ other_cmds.append(attribute_timeout)
372
395
  if vfs_read_chunk_streams:
373
396
  other_cmds.append("--vfs-read-chunk-streams")
374
397
  other_cmds.append(str(vfs_read_chunk_streams))
@@ -380,7 +403,11 @@ class Rclone:
380
403
 
381
404
  other_cmds = other_cmds if other_cmds else None
382
405
  return self.mount(
383
- url, outdir, vfs_cache_mode=vfs_cache_mode, other_cmds=other_cmds
406
+ url,
407
+ outdir,
408
+ allow_writes=allow_writes,
409
+ vfs_cache_mode=vfs_cache_mode,
410
+ other_cmds=other_cmds,
384
411
  )
385
412
 
386
413
  def serve_webdav(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.0.24
3
+ Version: 1.0.26
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  Maintainer: Zachary Vorhies
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes