oceanprotocol-job-details 0.0.6__py3-none-any.whl → 0.0.8__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.
@@ -9,7 +9,7 @@ from oceanprotocol_job_details.loaders.loader import Loader
9
9
  # Logging setup for the module
10
10
  logging.basicConfig(
11
11
  level=logging.INFO,
12
- format="%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s",
12
+ format="%(asctime)s [%(threadName)s] [%(levelname)s] %(message)s",
13
13
  handlers=[
14
14
  logging.StreamHandler(),
15
15
  ],
@@ -45,7 +45,17 @@ class Map(Loader[JobDetails]):
45
45
  )
46
46
 
47
47
  def _root(self) -> Path:
48
- root = Path(self._mapper.get(self._keys.ROOT, Path.home()))
48
+ """
49
+ Retrieves the root of the data from the default keys, defaults to '/'
50
+
51
+ Raises:
52
+ FileNotFoundError: If the given root folder does not exist
53
+
54
+ Returns:
55
+ Path: the root folder
56
+ """
57
+
58
+ root = Path(self._mapper.get(self._keys.ROOT, Path("/")))
49
59
 
50
60
  if not root.exists():
51
61
  raise FileNotFoundError(f"Root folder {root} does not exist")
@@ -64,7 +74,6 @@ class Map(Loader[JobDetails]):
64
74
  root: Path,
65
75
  dids: Optional[Sequence[Path]],
66
76
  ) -> Mapping[str, Sequence[Path]]:
67
-
68
77
  files: Mapping[str, Sequence[Path]] = {}
69
78
 
70
79
  for did in dids:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: oceanprotocol-job-details
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: A Python package to get details from OceanProtocol jobs
5
5
  License: Copyright 2025 Agrospai
6
6
 
@@ -2,12 +2,12 @@ oceanprotocol_job_details/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
2
2
  oceanprotocol_job_details/dataclasses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  oceanprotocol_job_details/dataclasses/constants.py,sha256=0hUnY2ccbvbRmxwgJC3GYaN7yoG6fccLqjxQWkH88Bo,846
4
4
  oceanprotocol_job_details/dataclasses/job_details.py,sha256=pnbNvCg0jg5rx8K9B8qbHPFetTGaMdXK94qP4PvGilw,2692
5
- oceanprotocol_job_details/job_details.py,sha256=eelJK85bnJIYQie65nubIwnQK3Do9X5E8cOZ1FPxSz8,1275
5
+ oceanprotocol_job_details/job_details.py,sha256=efY8Er97k_R-dRPbxd2gcCyp0l0oyHLL8FxQ8ldB6ms,1265
6
6
  oceanprotocol_job_details/loaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  oceanprotocol_job_details/loaders/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- oceanprotocol_job_details/loaders/impl/map.py,sha256=F6AxfRpPeRVdXtgS6jhZZM13EcGed0SszPPT5NVJmOo,3508
8
+ oceanprotocol_job_details/loaders/impl/map.py,sha256=3ogBztt1LX_717EVK1ehna_MtcVsncCvOiJFJLqvf2s,3748
9
9
  oceanprotocol_job_details/loaders/loader.py,sha256=JwR6OSkzIQQkeeyAU-ad_F89W9WNvoRwvHQY7Q3zIXI,256
10
- oceanprotocol_job_details-0.0.6.dist-info/LICENSE,sha256=ni3ix7P_GxK1W3VGC4fJ3o6QoCngCEpSuTJwO4nkpbw,1055
11
- oceanprotocol_job_details-0.0.6.dist-info/METADATA,sha256=j82kvwEl86u2N0zOcM8KOGrJyUZnKJJWYB9qKfm6N4s,2793
12
- oceanprotocol_job_details-0.0.6.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
13
- oceanprotocol_job_details-0.0.6.dist-info/RECORD,,
10
+ oceanprotocol_job_details-0.0.8.dist-info/LICENSE,sha256=ni3ix7P_GxK1W3VGC4fJ3o6QoCngCEpSuTJwO4nkpbw,1055
11
+ oceanprotocol_job_details-0.0.8.dist-info/METADATA,sha256=XH-voirr1aGWDNyIDVRz6IWaN9dAX3J9wJbpu3SAPes,2793
12
+ oceanprotocol_job_details-0.0.8.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
13
+ oceanprotocol_job_details-0.0.8.dist-info/RECORD,,