plexus-python-common 1.0.21__tar.gz → 1.0.22__tar.gz

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.
Files changed (76) hide show
  1. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/PKG-INFO +1 -1
  2. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/s3utils.py +10 -8
  3. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus_python_common.egg-info/PKG-INFO +1 -1
  4. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/.editorconfig +0 -0
  5. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/.github/workflows/pr.yml +0 -0
  6. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/.github/workflows/push.yml +0 -0
  7. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/.gitignore +0 -0
  8. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/MANIFEST.in +0 -0
  9. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/README.md +0 -0
  10. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/VERSION +0 -0
  11. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/pyproject.toml +0 -0
  12. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/jsonutils/dummy.0.jsonl +0 -0
  13. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/jsonutils/dummy.1.jsonl +0 -0
  14. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/jsonutils/dummy.2.jsonl +0 -0
  15. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.baz/file.bar.baz +0 -0
  16. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.baz/file.foo.bar +0 -0
  17. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.baz/file.foo.baz +0 -0
  18. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
  19. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
  20. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
  21. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
  22. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/file.bar +0 -0
  23. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/file.baz +0 -0
  24. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/s3utils/dir.foo/file.foo +0 -0
  25. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/0-dummy +0 -0
  26. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/1-dummy +0 -0
  27. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/2-dummy +0 -0
  28. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.0.0.jsonl +0 -0
  29. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.0.0.vol-0.jsonl +0 -0
  30. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.0.jsonl +0 -0
  31. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.1.1.jsonl +0 -0
  32. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.1.1.vol-1.jsonl +0 -0
  33. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.1.jsonl +0 -0
  34. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.2.2.jsonl +0 -0
  35. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.2.2.vol-2.jsonl +0 -0
  36. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.2.jsonl +0 -0
  37. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.csv.part0 +0 -0
  38. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.csv.part1 +0 -0
  39. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.csv.part2 +0 -0
  40. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/resources/unittest/shutils/dummy.txt +0 -0
  41. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/setup.cfg +0 -0
  42. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/setup.py +0 -0
  43. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/__init__.py +0 -0
  44. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/carto/OSMFile.py +0 -0
  45. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/carto/OSMNode.py +0 -0
  46. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/carto/OSMTags.py +0 -0
  47. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/carto/OSMWay.py +0 -0
  48. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/carto/__init__.py +0 -0
  49. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/config.py +0 -0
  50. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/pose.py +0 -0
  51. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/proj.py +0 -0
  52. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/__init__.py +0 -0
  53. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/bagutils.py +0 -0
  54. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/datautils.py +0 -0
  55. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/jsonutils.py +0 -0
  56. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/ormutils.py +0 -0
  57. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/shutils.py +0 -0
  58. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus/common/utils/strutils.py +0 -0
  59. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus_python_common.egg-info/SOURCES.txt +0 -0
  60. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus_python_common.egg-info/dependency_links.txt +0 -0
  61. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus_python_common.egg-info/not-zip-safe +0 -0
  62. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus_python_common.egg-info/requires.txt +0 -0
  63. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/src/plexus_python_common.egg-info/top_level.txt +0 -0
  64. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_test.py +0 -0
  65. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/__init__.py +0 -0
  66. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/carto/osm_file_test.py +0 -0
  67. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/carto/osm_tags_test.py +0 -0
  68. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/pose_test.py +0 -0
  69. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/proj_test.py +0 -0
  70. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/bagutils_test.py +0 -0
  71. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/datautils_test.py +0 -0
  72. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/jsonutils_test.py +0 -0
  73. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/ormutils_test.py +0 -0
  74. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/s3utils_test.py +0 -0
  75. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/shutils_test.py +0 -0
  76. {plexus_python_common-1.0.21 → plexus_python_common-1.0.22}/test/plexus_tests/common/utils/strutils_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plexus-python-common
3
- Version: 1.0.21
3
+ Version: 1.0.22
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.12
6
6
  Classifier: Programming Language :: Python :: 3.13
@@ -9,10 +9,10 @@ import os.path
9
9
  import tempfile
10
10
  from collections.abc import Callable, Generator
11
11
  from pathlib import Path
12
- from typing import Iterable, Literal
12
+ from typing import Literal
13
13
 
14
14
  import boto3
15
- from cloudpathlib import AnyPath, CloudPath, S3Client, S3Path
15
+ from cloudpathlib import CloudPath, S3Client, S3Path
16
16
  from iker.common.utils.shutils import glob_match, listfile, path_depth
17
17
  from iker.common.utils.strutils import is_empty, trim_to_none
18
18
  from rich.progress import BarColumn, DownloadColumn, Progress, TaskID, TextColumn, TransferSpeedColumn
@@ -63,7 +63,7 @@ def s3_make_client(
63
63
  yield S3Client(boto3_session=session, endpoint_url=trim_to_none(endpoint_url))
64
64
 
65
65
 
66
- def s3_list_objects(client: S3Client, bucket: str, prefix: str, limit: int = None) -> Iterable[S3ObjectMeta]:
66
+ def s3_list_objects(client: S3Client, bucket: str, prefix: str, limit: int = None) -> Generator[S3ObjectMeta]:
67
67
  """
68
68
  Lists all objects from the given S3 ``bucket`` and ``prefix``.
69
69
 
@@ -105,7 +105,7 @@ def s3_listfile(
105
105
  include_patterns: list[str] | None = None,
106
106
  exclude_patterns: list[str] | None = None,
107
107
  depth: int = 0,
108
- ) -> Iterable[S3ObjectMeta]:
108
+ ) -> Generator[S3ObjectMeta]:
109
109
  """
110
110
  Lists all objects from the given S3 ``bucket`` and ``prefix``, filtered by patterns and directory depth.
111
111
 
@@ -323,7 +323,7 @@ class S3TransferCallbackClient(S3Client):
323
323
  def __init__(
324
324
  self,
325
325
  *args,
326
- transfer_callback: Callable[[CloudPath, TransferDirection, TransferState, int], None],
326
+ transfer_callback: Callable[[Path | CloudPath, TransferDirection, TransferState, int], None],
327
327
  **kwargs,
328
328
  ):
329
329
  super().__init__(*args, **kwargs)
@@ -367,10 +367,12 @@ class S3TransferCallbackClient(S3Client):
367
367
  return cloud_path
368
368
 
369
369
 
370
- def s3_make_progress_callback(progress: Progress) -> Callable[[AnyPath, TransferDirection, TransferState, int], None]:
371
- task_ids: dict[AnyPath, TaskID] = {}
370
+ def s3_make_progress_callback(
371
+ progress: Progress,
372
+ ) -> Callable[[Path | CloudPath, TransferDirection, TransferState, int], None]:
373
+ task_ids: dict[Path | CloudPath, TaskID] = {}
372
374
 
373
- def progress_callback(path: AnyPath, direction: TransferDirection, state: TransferState, bytes_sent: int):
375
+ def progress_callback(path: Path | CloudPath, direction: TransferDirection, state: TransferState, bytes_sent: int):
374
376
  if state == "start":
375
377
  size = path.stat().st_size
376
378
  task_ids[path] = progress.add_task(direction, total=size, filename=path.name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plexus-python-common
3
- Version: 1.0.21
3
+ Version: 1.0.22
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.12
6
6
  Classifier: Programming Language :: Python :: 3.13