API Docs¶
Serializers¶
Record serializers.
Loaders¶
Loaders.
This file contains sample loaders that can be used to deserialize input data in an application level data structure. The marshmallow_loader() method can be parameterized with different schemas for the record metadata. In the provided json_v1 instance, it uses the MetadataSchemaV1, defining the PersistentIdentifier field.
-
invenio_records_lom.loaders.json_v1()¶ JSON loader using Marshmallow for data validation.
Validation¶
Schemas for marshmallow.
-
class
invenio_records_lom.marshmallow.LomMetadataSchemaV1(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Lom for the author metadata.
-
class
invenio_records_lom.marshmallow.LomSchemaV1(*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)[source]¶ Lom schema.
Extension¶
Flask extension for invenio-records-lom.
Views¶
Blueprint definitions.
-
invenio_records_lom.views.blueprint= <flask.blueprints.Blueprint object>¶ Blueprint used for loading templates and static assets
The sole purpose of this blueprint is to ensure that Invenio can find the templates and static files located in the folders of the same names next to this file.