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
Replacement of Invenio relations. Fixes the following issues:
- Invenio relations can occur only on specific paths and for each pattern, different class must be used (Relation, ListRelation, NestedListRelation)
- PID Cache is isolated per request, not set directly on field
- Allows to map keys - A key from related object can be renamed/remapped to a different key/path
- Provides classes to reference parts of the same record
# article, id 12
metadata:
title: blah
with mapping referenced article would look like (mapping: {key: 'metadata.title', target: 'title'}
):
# 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.
Config
Provides interface and definitions for loading preconfigured permission sets to service config.
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.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 457d39e3031cbd4c3c6fe814c1bad364f1e5ba1f22f79e27f0cfd2625cdc8117 |
|
MD5 | 3e4889eb59f6bb82deef590a0e277827 |
|
BLAKE2b-256 | 006b8ecc82e11119188569656fe9688f45e0e7bf611225b5fcc876b73a3196d0 |