oarepo-runtime 2.0.0.dev35__tar.gz → 2.0.0.dev36__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.
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/PKG-INFO +1 -1
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/__init__.py +1 -1
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/typing.py +8 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/.gitignore +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/LICENSE +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/README.md +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/api.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/cli/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/cli/search.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/config.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/ext.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/info/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/info/views.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/proxies.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/py.typed +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/drafts.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/mapping.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/pid_providers.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/systemfields/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/systemfields/base.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/systemfields/custom_fields.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/systemfields/mapping.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/systemfields/publication_status.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/systemfields/selectors.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/resources/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/resources/config.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/config/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/config/components.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/config/link_conditions.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/config/permissions.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/base.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/date.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/nested_facet.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/params.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/utils.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/generators.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/records/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/records/custom_fields.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/records/links.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/records/mapping.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/results.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/__init__.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/i18n.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/i18n_ui.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/ui.py +0 -0
- {oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/pyproject.toml +0 -0
@@ -16,6 +16,9 @@ from typing import TYPE_CHECKING, Any
|
|
16
16
|
if TYPE_CHECKING:
|
17
17
|
from collections.abc import Callable
|
18
18
|
|
19
|
+
from invenio_records_resources.records.api import Record
|
20
|
+
from invenio_records_resources.services.records.results import RecordItem
|
21
|
+
|
19
22
|
|
20
23
|
def require_kwargs(*kwargs_names: str) -> Any:
|
21
24
|
"""Wrap function to require specific kwargs in a function call.
|
@@ -58,3 +61,8 @@ def require_kwargs(*kwargs_names: str) -> Any:
|
|
58
61
|
return wrapped_f
|
59
62
|
|
60
63
|
return wrapper
|
64
|
+
|
65
|
+
|
66
|
+
def record_from_result(result: RecordItem) -> Record:
|
67
|
+
"""Convert a RecordItem to a Record."""
|
68
|
+
return result._record # noqa: SLF001
|
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
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/records/pid_providers.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/resources/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/resources/config.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/config/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/base.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/date.py
RENAMED
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/params.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/facets/utils.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/generators.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/records/links.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/records/mapping.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/results.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/__init__.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/i18n.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/i18n_ui.py
RENAMED
File without changes
|
{oarepo_runtime-2.0.0.dev35 → oarepo_runtime-2.0.0.dev36}/oarepo_runtime/services/schema/ui.py
RENAMED
File without changes
|
File without changes
|