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.3.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.3.0
File Size Uploaded
marinerg_facility-2.3.0.tar.gz 49.2 kB Details

Built distribution (wheel)

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

Total release size: 90.8 kB

Release files / marinerg_facility-2.3.0.tar.gz

Download URL marinerg_facility-2.3.0.tar.gz
Size 49.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd54b5fe901777727fe7d6dec864a81b66bb9c0ae56413c517f0d67744795b2e
BLAKE2b-256 checksum
How to use checksums
5484960bdedfced245ca31558b8d48b6063ea125f17ea27660dadca94035f0a3
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.3.0-py3-none-any.whl

Download URL marinerg_facility-2.3.0-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
107060039d56a51e3922068c6e1bb77e8af8974b29594a014b2ab31107b252ea
BLAKE2b-256 checksum
How to use checksums
2e75e94ee17e947c93c88fd88625654b94e87f3e03581e111c869885045c4980
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

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

This release

2.3.0 This release

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