procodile 0.2.1.dev1__tar.gz → 0.4.0__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.
- {procodile-0.2.1.dev1 → procodile-0.4.0}/.gitignore +6 -2
- {procodile-0.2.1.dev1 → procodile-0.4.0}/PKG-INFO +3 -3
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/job.py +1 -1
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/process.py +8 -4
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/registry.py +3 -3
- {procodile-0.2.1.dev1 → procodile-0.4.0}/pyproject.toml +2 -2
- {procodile-0.2.1.dev1 → procodile-0.4.0}/LICENSE +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/README.md +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/__init__.py +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/artifacts.py +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/cli/__init__.py +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/cli/cli.py +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/py.typed +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/reporter.py +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/schema.py +0 -0
- {procodile-0.2.1.dev1 → procodile-0.4.0}/procodile/workflow.py +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Testing
|
|
2
2
|
*.zarr/
|
|
3
3
|
.cov-report
|
|
4
|
+
notebooks/auth-test.ipynb
|
|
4
5
|
|
|
5
|
-
#
|
|
6
|
-
docs/notebooks
|
|
6
|
+
# Legacy generated documentation (excluded from the site)
|
|
7
|
+
docs/notebooks/
|
|
7
8
|
|
|
8
9
|
# Byte-compiled / optimized / DLL files
|
|
9
10
|
__pycache__/
|
|
@@ -202,3 +203,6 @@ cython_debug/
|
|
|
202
203
|
# refer to https://docs.cursor.com/context/ignore-files
|
|
203
204
|
.cursorignore
|
|
204
205
|
.cursorindexingignore
|
|
206
|
+
|
|
207
|
+
# Downloaded font assets
|
|
208
|
+
docs/assets/downloaded/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: procodile
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: A light-weight processor development framework
|
|
5
5
|
Project-URL: Documentation, https://eo-tools.github.io/eozilla
|
|
6
6
|
Project-URL: Repository, https://github.com/eo-tools/eozilla
|
|
@@ -27,7 +27,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
27
27
|
Classifier: Topic :: Software Development
|
|
28
28
|
Classifier: Typing :: Typed
|
|
29
29
|
Requires-Python: >=3.10
|
|
30
|
-
Requires-Dist: gavicore>=0.
|
|
30
|
+
Requires-Dist: gavicore>=0.4.0
|
|
31
31
|
Requires-Dist: pydantic
|
|
32
32
|
Requires-Dist: pyyaml
|
|
33
33
|
Requires-Dist: typer<1,>=0.26.0
|
|
@@ -9,7 +9,7 @@ from typing import Any, Callable, Literal, Optional, get_args, get_origin
|
|
|
9
9
|
from pydantic import BaseModel, Field, ValidationError, create_model
|
|
10
10
|
from pydantic.fields import FieldInfo
|
|
11
11
|
|
|
12
|
-
from gavicore.models import (
|
|
12
|
+
from gavicore.models.core import (
|
|
13
13
|
InputDescription,
|
|
14
14
|
OutputDescription,
|
|
15
15
|
ProcessDescription,
|
|
@@ -77,14 +77,14 @@ class Process:
|
|
|
77
77
|
provided, the function's docstring, if any, will be used.
|
|
78
78
|
inputs: Optional mapping from function argument names
|
|
79
79
|
to [`pydantic.Field`](https://docs.pydantic.dev/latest/concepts/fields/)
|
|
80
|
-
or [`InputDescription`][gavicore.models.InputDescription] instances.
|
|
80
|
+
or [`InputDescription`][gavicore.models.core.InputDescription] instances.
|
|
81
81
|
The preferred way is to annotate the arguments directly
|
|
82
82
|
as described in [The Annotated Pattern](https://docs.pydantic.dev/latest/concepts/fields/#the-annotated-pattern).
|
|
83
83
|
Use `InputDescription` instances to pass extra information that cannot
|
|
84
84
|
be represented by a `pydantic.Field`, e.g., `additionalParameters` or `keywords`.
|
|
85
85
|
outputs: Mapping from output names to
|
|
86
86
|
[`pydantic.Field`](https://docs.pydantic.dev/latest/concepts/fields/)
|
|
87
|
-
or [`OutputDescription`][gavicore.models.
|
|
87
|
+
or [`OutputDescription`][gavicore.models.core.OutputDescription] instances.
|
|
88
88
|
Required, if you have multiple outputs returned as a
|
|
89
89
|
dictionary. In this case, the function must return a typed `tuple` and
|
|
90
90
|
output names refer to the items of the tuple in given order.
|
|
@@ -469,7 +469,11 @@ def _merge_dicts_flat(d1: dict[str, Any], d2: dict[str, Any]) -> dict[str, Any]:
|
|
|
469
469
|
|
|
470
470
|
def _schema_to_schema_dict(schema: Schema) -> dict[str, Any]:
|
|
471
471
|
return schema.model_dump(
|
|
472
|
-
mode="json",
|
|
472
|
+
mode="json",
|
|
473
|
+
by_alias=True,
|
|
474
|
+
exclude_unset=True,
|
|
475
|
+
exclude_defaults=True,
|
|
476
|
+
exclude_none=True,
|
|
473
477
|
)
|
|
474
478
|
|
|
475
479
|
|
|
@@ -8,7 +8,7 @@ from typing import Callable, Optional
|
|
|
8
8
|
|
|
9
9
|
from pydantic.fields import FieldInfo
|
|
10
10
|
|
|
11
|
-
from gavicore.models import InputDescription, OutputDescription
|
|
11
|
+
from gavicore.models.core import InputDescription, OutputDescription
|
|
12
12
|
|
|
13
13
|
from .process import Process
|
|
14
14
|
from .workflow import Workflow
|
|
@@ -116,14 +116,14 @@ class ProcessRegistry(Mapping[str, Process]):
|
|
|
116
116
|
provided, the function's docstring, if any, will be used.
|
|
117
117
|
inputs: Optional mapping from function argument names
|
|
118
118
|
to [`pydantic.Field`](https://docs.pydantic.dev/latest/concepts/fields/)
|
|
119
|
-
or [`InputDescription`][gavicore.models.InputDescription] instances.
|
|
119
|
+
or [`InputDescription`][gavicore.models.core.InputDescription] instances.
|
|
120
120
|
The preferred way is to annotate the arguments directly
|
|
121
121
|
as described in [The Annotated Pattern](https://docs.pydantic.dev/latest/concepts/fields/#the-annotated-pattern).
|
|
122
122
|
Use `InputDescription` instances to pass extra information that cannot
|
|
123
123
|
be represented by a `pydantic.Field`, e.g., `additionalParameters` or `keywords`.
|
|
124
124
|
outputs: Mapping from output names to
|
|
125
125
|
[`pydantic.Field`](https://docs.pydantic.dev/latest/concepts/fields/)
|
|
126
|
-
or [`OutputDescription`][gavicore.models.
|
|
126
|
+
or [`OutputDescription`][gavicore.models.core.OutputDescription] instances.
|
|
127
127
|
Required, if you have multiple outputs returned as a
|
|
128
128
|
dictionary. In this case, the function must return a typed `tuple` and
|
|
129
129
|
output names refer to the items of the tuple in given order.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "procodile"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "A light-weight processor development framework"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -44,7 +44,7 @@ dependencies = [
|
|
|
44
44
|
"pyyaml",
|
|
45
45
|
"typer >=0.26.0,<1",
|
|
46
46
|
# local dependency
|
|
47
|
-
"gavicore >=0.
|
|
47
|
+
"gavicore >=0.4.0",
|
|
48
48
|
]
|
|
49
49
|
|
|
50
50
|
[project.urls]
|
|
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
|