Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

oarepo-runtime

Latest version: v9.0.0a1

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: oarepo
0 Stars
3 Forks
7 Versions
4.9K Downloads
Python Repo language

Scan summary

oarepo-runtime was last scanned on 1 Dec 2026 at version 9.0.0a1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 9.0.0a1.
  • Downloads: 4,867 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
9.0.0a1 LATEST 1 Dec 2026 No rules fired
8.0.0 16 Nov 2026 No rules fired
7.13.1 10 Nov 2026 No rules fired
7.13.0 30 Oct 2026 Not shown
7.12.1 23 Oct 2026 Not shown

No rules fired in 9.0.0a1

Findings

Findings for v9.0.0a1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 9.0.0a1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

OARepo Runtime

Runtime extensions for Invenio framework.

Overview

This package extends Invenio with:

  • Model registry for unified record type configuration
  • Typed system fields with dynamic OpenSearch mapping
  • Nested and date-range facets with permission-based filtering
  • Service component dependency ordering
  • Multilingual schema support (I18N)
  • FAIR Signposting implementation (HTTP Link headers and linksets)
  • Repository information endpoints
  • Custom field mapping updates
  • CLI extensions for search initialization

Installation

pip install oarepo-runtime
Requirements
  • Python 3.14+
  • Invenio 14.x
  • OpenSearch/Elasticsearch compatible search backend

Key Features

1. Model Registry and Management

Source: oarepo_runtime/api.py, oarepo_runtime/ext.py, oarepo_runtime/config.py

The Model class provides a unified configuration structure for record types in your repository:

from oarepo_runtime import Model
from flask_babel import lazy_gettext as _

model = Model(
    code="my_record",
    name=_("My Record Type"),
    version="1.0.0",
    service="my_records",
    resource_config="my_app.resources.config.MyRecordResourceConfig",
    description=_("Custom record type for my repository"),
    exports=[
        Export(
            code="datacite",
            name=_("DataCite JSON"),
            mimetype="application/vnd.datacite.datacite+json",
            serializer=DataCiteSerializer(),
        )
    ],
    records_alias_enabled=True,
)

Normally, it is created automatically when using the oarepo-model library.

The OARepoRuntime extension manages all registered models:

from oarepo_runtime import current_runtime

# Access models by code
model = current_runtime.models["my_record"]

# Get service for a record instance
service = current_runtime.get_record_service_for_record(record)

# Find records by PID type
record_class = current_runtime.record_class_by_pid_type["recid"]

# Get all RDM-compatible models
rdm_models = list(current_runtime.rdm_models)

Key capabilities:

  • Centralized model registration via OAREPO_MODELS configuration
  • Automatic service and resource resolution
  • PID type to record class mapping
  • Schema to model mapping for serialization
  • Support for draft/published record workflows
  • File service integration
2. Enhanced System Fields

Source: oarepo_runtime/records/systemfields/

Typed System Fields

Base class for system fields with type hints and proper typing support:

from oarepo_runtime.records.systemfields import TypedSystemField


class MyCustomField(TypedSystemField[MyRecord, str]):
    def obj_get(self, record: MyRecord) -> str:
        # Implementation
        pass
Mapping System Fields

Dynamic OpenSearch mapping support for system fields that need custom indexing:

from oarepo_runtime.records.systemfields import MappingSystemFieldMixin


class DynamicField(MappingSystemFieldMixin, TypedSystemField):
    def mapping_settings(self, record_class):
        return {"type": "keyword", "eager_global_ordinals": True}
Publication Status System Field

Built-in field for tracking record publication status:

from oarepo_runtime.records.systemfields import PublicationStatusSystemField


class MyRecord(Record):
    publication_status = PublicationStatusSystemField()
3. Advanced Faceting System

Source: oarepo_runtime/services/facets/

Date Range Facets

Support for date-based faceting with configurable intervals:

from oarepo_runtime.services.facets.date import DateRangeFacet

facets = {"created": DateRangeFacet(field="created", label="Created Date", interval="year")}
Nested Facets

Faceting on nested objects with label resolution:

from oarepo_runtime.services.facets.nested_facet import NestedLabeledFacet

facets = {
    "contributors": NestedLabeledFacet(
        field="metadata.contributors.person.id",
        nested_path="metadata.contributors",
        value_labels={"person123": {"cs": "Jan Novák", "en": "Jan Novak"}},
    )
}
Grouped Facets with Permissions

Permission-based facet grouping for different user roles:

from invenio_records_resources.services.records.config import SearchOptions
from invenio_records_resources.services.records.facets import TermsFacet


class MySearchOptions(SearchOptions):
    facets = {
        "publication_status": TermsFacet(field="publication_status"),
        "internal_status": TermsFacet(field="internal_status"),
        "workflow_state": TermsFacet(field="workflow_state"),
    }

    facet_groups = {
        "default": ["publication_status"],
        "admin": ["internal_status", "workflow_state"],
    }
4. Service Component Ordering

Source: oarepo_runtime/services/config/components.py

Deterministic ordering of service components with dependency resolution:

class ComponentOrderingMixin:
    """Mixin that ensures service components execute in the correct order."""

    @property
    def components(self):
        # Components are automatically ordered based on:
        # - depends_on declarations
        # - affects declarations
        # - wildcard semantics (*)
        # - input order preservation where possible
        return self._ordered_components

Components can declare dependencies:

class MyComponent(ServiceComponent):
    depends_on = [ValidationComponent]  # Runs after ValidationComponent
    affects = "*"  # Affects all subsequent components
5. Multilingual Support

Source: oarepo_runtime/services/schema/

I18N UI Schema Support

Marshmallow schemas with multilingual field support:

from oarepo_runtime.services.schema.i18n_ui import I18nUISchema, MultilingualUIField


class MyUISchema(I18nUISchema):
    title = MultilingualUIField()
    description = MultilingualUIField(
        ui_params={"widget": "textarea", "placeholder": {"en": "Enter description", "cs": "Zadejte popis"}}
    )
Locale Handling
from oarepo_runtime.services.schema.i18n import LocalizedDateTime


class RecordSchema(Schema):
    created = LocalizedDateTime()  # Automatically formats dates per locale
6. Signposting and FAIR Data

Source: oarepo_runtime/resources/signposting/

Full implementation of FAIR Signposting for machine-readable links:

from oarepo_runtime.resources.signposting import landing_page_signpost_links_list, create_linkset, create_linkset_json

# Generate signposting links for a landing page
links = landing_page_signpost_links_list(datacite_dict, record_dict, short=False)

# Create HTTP Link header
header = list_of_signpost_links_to_http_header(links)

# Create application/linkset format
linkset = create_linkset(datacite_dict, record_dict)

# Create application/linkset+json format
linkset_json = create_linkset_json(datacite_dict, record_dict)

Supported relation types:

  • author - Links to author identifiers
  • cite-as - Persistent identifier (DOI)
  • describedby - Metadata export formats
  • item - File contents
  • license - License URIs
  • type - Resource type (schema.org)
7. Repository Information API

Source: oarepo_runtime/info/views.py

Machine-readable endpoint for repository metadata:

# GET /.well-known/repository
{
    "models": {
        "my_record": {
            "code": "my_record",
            "name": "My Record Type",
            "version": "1.0.0",
            "links": {
                "html": "/my-records/",
                "records": "/api/my-records/",
                "deposit": "/api/my-records/",
                "drafts": "/api/user/my-records/",
            },
            "jsonschemas": {"record": "https://localhost/schemas/my-records-1.0.0.json"},
            "exports": [{"code": "datacite", "mimetype": "application/vnd.datacite.datacite+json"}],
        }
    }
}
8. CLI Extensions

Source: oarepo_runtime/cli/

Enhanced search index initialization:

# Initialize search indices with custom field mapping updates
invenio index init

# The init command automatically runs registered hooks from:
# - oarepo.cli.search.init entry point
# - Updates dynamic mappings for all registered models

Extension point for custom initialization:

# In your package's entry points:
[project.entry-points."oarepo.cli.search.init"]
my_init = "my_app.init:update_custom_mappings"
9. Custom Fields and Relations

Source: oarepo_runtime/services/records/

Support for updating record mappings with custom fields:

from oarepo_runtime.services.records.custom_fields import update_all_records_mappings_relation_fields

# Update OpenSearch mappings for all records with relation fields
update_all_records_mappings_relation_fields()
10. Permission Generators

Source: oarepo_runtime/services/config/permissions.py

Pre-configured permission policy for open access repositories:

from oarepo_runtime.services.config.permissions import EveryonePermissionPolicy


class MyServiceConfig(RecordServiceConfig):
    permission_policy_cls = EveryonePermissionPolicy
    # Grants all permissions to any authenticated or anonymous user

Development

Setup
# Clone repository
git clone https://github.com/oarepo/oarepo-runtime.git
cd oarepo-runtime

./run.sh venv
Running Tests
./run.sh test

Entry Points

The package registers several Invenio entry points:

[project.entry-points."invenio_base.api_apps"]
oarepo_runtime = "oarepo_runtime.ext:OARepoRuntime"

[project.entry-points."invenio_base.apps"]
oarepo_runtime = "oarepo_runtime.ext:OARepoRuntime"

[project.entry-points."flask.commands"]
oarepo = "oarepo_runtime.cli:oarepo"

[project.entry-points."oarepo.cli.search.init"]
runtime_update_mappings = "oarepo_runtime.services.records.mapping:update_all_records_mappings"

[project.entry-points."invenio_base.blueprints"]
oarepo_runtime_info = "oarepo_runtime.info.views:create_wellknown_blueprint"

License

Copyright (c) 2020-2025 CESNET z.s.p.o.

OARepo Runtime is free software; you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE file for more details.

Links

Acknowledgments

This project builds upon Invenio Framework and is developed as part of the OARepo ecosystem.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases oarepo-runtime

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229