oceanprotocol-job-details 0.3.4__tar.gz → 0.3.9__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.
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/PKG-INFO +1 -1
- oceanprotocol_job_details-0.3.9/oceanprotocol_job_details/py.typed +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/settings.py +7 -2
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/pyproject.toml +5 -2
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/.gitignore +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/LICENSE +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/README.md +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/__init__.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/di.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/domain.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/helpers.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/loaders/__init__.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/loaders/impl/__init__.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/loaders/impl/ddo.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/loaders/impl/files.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/loaders/impl/job_details.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/loaders/loader.py +0 -0
- {oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/ocean.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oceanprotocol-job-details
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: A Python package to get details from OceanProtocol jobs
|
|
5
5
|
Project-URL: Homepage, https://github.com/AgrospAI/oceanprotocol-job-details
|
|
6
6
|
Project-URL: Issues, https://github.com/AgrospAI/oceanprotocol-job-details/issues
|
|
File without changes
|
|
@@ -23,7 +23,10 @@ class JobSettings(BaseSettings): # type: ignore[explicit-any]
|
|
|
23
23
|
|
|
24
24
|
@field_validator("dids", mode="before")
|
|
25
25
|
@classmethod
|
|
26
|
-
def split_dids(cls, v: list[str] | str) -> list[str]:
|
|
26
|
+
def split_dids(cls, v: list[str] | str | None) -> list[str]:
|
|
27
|
+
if v is None:
|
|
28
|
+
return []
|
|
29
|
+
|
|
27
30
|
if isinstance(v, str):
|
|
28
31
|
data = orjson.loads(v)
|
|
29
32
|
assert isinstance(data, list)
|
|
@@ -33,5 +36,7 @@ class JobSettings(BaseSettings): # type: ignore[explicit-any]
|
|
|
33
36
|
@model_validator(mode="after")
|
|
34
37
|
def validate_dids(self) -> Self:
|
|
35
38
|
if not self.dids:
|
|
36
|
-
self.dids.extend(
|
|
39
|
+
self.dids.extend(
|
|
40
|
+
[f.name for f in (self.base_dir / "ddos").glob("*") if f.is_file()]
|
|
41
|
+
)
|
|
37
42
|
return self
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "oceanprotocol-job-details"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.9"
|
|
4
4
|
description = "A Python package to get details from OceanProtocol jobs"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Agrospai", email = "agrospai@udl.cat" },
|
|
@@ -39,7 +39,10 @@ build-backend = "hatchling.build"
|
|
|
39
39
|
include = ["oceanprotocol_job_details"]
|
|
40
40
|
|
|
41
41
|
[tool.hatch.build.targets.wheel]
|
|
42
|
-
|
|
42
|
+
packages = ["oceanprotocol_job_details"]
|
|
43
|
+
|
|
44
|
+
[tool.hatch.build.targets.wheel.package-data]
|
|
45
|
+
oceanprotocol_job_details = ["py.typed"]
|
|
43
46
|
|
|
44
47
|
[tool.mypy]
|
|
45
48
|
plugins = ["pydantic.mypy"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{oceanprotocol_job_details-0.3.4 → oceanprotocol_job_details-0.3.9}/oceanprotocol_job_details/di.py
RENAMED
|
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
|