No project description provided
Project description
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 namepath to the field in the referencing recordreferenced keyslist of paths to the fields in the referenced recordserviceservice for the referenced record, used to retrieve the referenced record to get the field valuesservice-aliasnot required, specify alias for the service in the previous optionpid-fieldnot required, specify the field in the referencing record holding the pid of the referenced record.expandable-field-classnot 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oarepo-model-builder-expansions-3.0.2.tar.gz.
File metadata
- Download URL: oarepo-model-builder-expansions-3.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e96ca1983e7787ee3bd5ea5b9148bbedd6d5275a08fea5d938c70bd63a81a811
|
|
| MD5 |
a2cab02ab27dac2381700ec0ecc25908
|
|
| BLAKE2b-256 |
834ad8d547af31b1d2d6231781302fa3f31cc221ed52914a617ab26ff5a49b4a
|
File details
Details for the file oarepo_model_builder_expansions-3.0.2-py3-none-any.whl.
File metadata
- Download URL: oarepo_model_builder_expansions-3.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1936827f90022381435f7e9e9ff7ea476fa19cbfdefa4a622eb66027b9fd00ae
|
|
| MD5 |
8c357457085cd9707a565587d2b85bbd
|
|
| BLAKE2b-256 |
5f992ee1cd798b3e78012565f5ada70f56419a2ee9d1dcd0df54a46ab99d32a1
|