Skip to main content

OARepo model builder expansions

Plugin for oarepo-model-builder to allow invenio expandable fields. Expandable fields allow saving fields of other referenced records in the referencing record object.
Expandable fields are specified on model level as a list and the yaml for single expandable field has following structure:

  • field name path to the field in the referencing record
  • referenced keys list of paths to the fields in the referenced record
  • service service for the referenced record, used to retrieve the referenced record to get the field values
  • service-alias not required, specify alias for the service in the previous option
  • pid-field not required, specify the field in the referencing record holding the pid of the referenced record.
  • expandable-field-class not required, specify the class of the expandable field, by default it's oarepo_runtime.expansions.expandable_fields.ReferencedRecordExpandableField

Plugin use case example is in tests.

Metadata

Release files for oarepo-model-builder-expansions 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oarepo-model-builder-expansions 3.0.2
File Size Uploaded
oarepo-model-builder-expansions-3.0.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oarepo-model-builder-expansions 3.0.2
File Interpreter ABI Platform
oarepo_model_builder_expansions-3.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / oarepo-model-builder-expansions-3.0.2.tar.gz

Download URL oarepo-model-builder-expansions-3.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e96ca1983e7787ee3bd5ea5b9148bbedd6d5275a08fea5d938c70bd63a81a811
BLAKE2b-256 checksum
How to use checksums
834ad8d547af31b1d2d6231781302fa3f31cc221ed52914a617ab26ff5a49b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release files / oarepo_model_builder_expansions-3.0.2-py3-none-any.whl

Download URL oarepo_model_builder_expansions-3.0.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1936827f90022381435f7e9e9ff7ea476fa19cbfdefa4a622eb66027b9fd00ae
BLAKE2b-256 checksum
How to use checksums
5f992ee1cd798b3e78012565f5ada70f56419a2ee9d1dcd0df54a46ab99d32a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files

3.0.1

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page