Skip to main content

Marinerg-i Facility Service

The record of MARINERG-i's marine renewable energy test facilities and their equipment: who runs each facility, where it is, and the persistent identifiers (ROR, PIDINST) that let the wider research infrastructure cite it.

It is an installable Django app, marinerg_facility, exposing a REST API. It runs standalone for development, and in production is composed into the Test Access Service, which depends on it. Built for the Marinerg-i preparatory phase project.

Quick start

Inspect the script, then run it:

./infra/quick_start.sh

It creates a virtualenv, installs dependencies, loads the demo settings from infra/dev.txt, sets up a local database, creates an admin user, and starts the development server. Then browse to localhost:8000/api for the facilities, equipment and tag endpoints.

Development

uv sync --group dev
source infra/set_dev_environment.sh
uv run python manage.py migrate
uv run python manage.py runserver

Tests, linting and types — the same commands CI runs:

uv run python -m pytest        # add --no-cov to drop the coverage report
uv run ruff format --check src tests
uv run ruff check src tests
uv run mypy src

Tests run against SQLite by default; CI runs them against Postgres, which is what production uses. The full-text-search tests self-skip on SQLite, so run them against Postgres before trusting a search change.

More detail in the Developer Guide.

Partner ROR identifiers

Partner facilities carry a ROR identifier. The values live in a reviewable data file, applied by a management command that validates each ROR — format, checksum, and existence in the public registry — before writing it:

uv run python manage.py populate_ror --emit-template > facility_rors.yaml
# fill in each `ror:` field, then apply (idempotent)
uv run python manage.py populate_ror --mapping facility_rors.yaml

--dry-run previews, --no-verify skips the registry check, --strict fails if a partner facility is left without one, and --all widens the template beyond partners. See populate_ror --help.

Release

Published by the shared python-package CI component: run a web pipeline with RELEASE_FIELD=patch|minor|major. Consumers pin this package exactly, so a release is only visible once they bump their pin.

Licensing

Copyright of the Irish Centre for High End Computing (ICHEC), released under the MIT License. See LICENSE for the full terms.

Release files for marinerg-facility 2.6.0

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

Source distribution (sdist)

Source distribution for marinerg-facility 2.6.0
File Size Uploaded
marinerg_facility-2.6.0.tar.gz 49.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marinerg-facility 2.6.0
File Interpreter ABI Platform
marinerg_facility-2.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 90.9 kB

Release files / marinerg_facility-2.6.0.tar.gz

Download URL marinerg_facility-2.6.0.tar.gz
Size 49.3 kB
Tags Source
SHA-256 checksum
How to use checksums
85b71808739c140c5e5472977ad04c0350b73028d5e688c82e4f24a04003a8f1
BLAKE2b-256 checksum
How to use checksums
b49e8384c945831613115928715a9e1ddb1ce47bacb4386c9be420393ea7f25e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / marinerg_facility-2.6.0-py3-none-any.whl

Download URL marinerg_facility-2.6.0-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d8f1fb54831ca0f889b18766f2c0d07bed5bbd830bd3926e79808f5aef68b87
BLAKE2b-256 checksum
How to use checksums
7091e1e36ff0d49bdb04242f80207245bafd1e5079147d02f43cd515c63de050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

2.8.1

2 release files

2.8.0

2 release files

2.7.0

2 release files

This release

2.6.0 This release

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.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