A set of runtime extensions of Invenio repository
Project description
OARepo runtime
The base of invenio oarepo
client and a set of classes/functions that help with code-generated features:
Custom fields
Provides support for custom fields identification and iteration and invenio oarepo cf init
initialization tool for customfields.
Expansions
Provides expandable field implementation and service mixin for referenced record (in case you do not want to use relations).
Facets
An implementation of nested labeled facet.
i18n
Validator for language codes.
Relations
Support for PID relations that remove the "metadata" element when they are referenced. So for example:
# article, id 12
metadata:
title: blah
with this class a referencing dataset would like:
# dataset:
metadata:
articles:
- id: 12
@v: 1
title: blah
With Invenio PID relation, it would be:
# dataset:
metadata:
articles:
- id: 12
"@v": 1
metadata:
title: blah
Validation
This module provides a marshmallow validator for date strings.
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
Hashes for oarepo_runtime-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e03b02799136fced4c0779c776dd06b361d2f264732f7690095c520d61478e |
|
MD5 | 09059c19b4fc6df3afb4be3100009d40 |
|
BLAKE2b-256 | c87b9bf2577d67f20dba77174b4c76a583002fe2e59246b62701188fce92378e |