oceanprotocol-job-details 0.0.7__tar.gz → 0.0.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: oceanprotocol-job-details
3
- Version: 0.0.7
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
 
@@ -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:
@@ -2,7 +2,7 @@
2
2
  license = { file = "LICENSE" }
3
3
 
4
4
  name = "oceanprotocol-job-details"
5
- version = "0.0.7"
5
+ version = "0.0.8"
6
6
  authors = [
7
7
  { name = "Christian López García", email = "christian.lopez@udl.cat" },
8
8
  ]