Skip to main content

title: "Relocatable Ocean Modelling in PYthon (rompy)"

DOI GitHub Pages PyPI version GitHub Workflow Status (with event) PyPI - Downloads Code style: black PyPI - Python Version

Introduction

Relocatable Ocean Modelling in PYthon (rompy) is a modular Python library that aims to streamline the setup, configuration, execution, and analysis of coastal ocean models. Rompy combines templated model configuration with powerful xarray-based data handling and pydantic validation, enabling users to efficiently generate model control files and input datasets for a variety of ocean and wave models. The architecture centers on high-level execution control (ModelRun) and flexible configuration objects, supporting both persistent scientific model state and runtime backend selection. Rompy provides unified interfaces for grids, data sources, boundary conditions, and spectra, with extensible plugin support for new models and execution environments. Comprehensive documentation, example Jupyter notebooks, and a robust logging/formatting framework make rompy accessible for both research and operational workflows. Current model support includes SWAN and SCHISM, with ongoing development for additional models and cloud/HPC backends.

Key Features:

  • Modular architecture with clear separation of configuration and execution logic
  • Templated, reproducible model configuration using pydantic and xarray
  • Unified interfaces for grids, data, boundaries, and spectra
  • Extensible plugin system for models, data sources, backends, and postprocessors
  • Robust logging and formatting for consistent output and diagnostics
  • Example notebooks and comprehensive documentation for rapid onboarding
  • Support for local, Docker, and HPC execution backends

rompy is under active development—features, model support, and documentation are continually evolving. Contributions and feedback are welcome!

Documentation

See https://rom-py.github.io/rompy/

Code Formatting and Pre-commit Hooks

This repository enforces Python code formatting using black via the pre-commit framework.

To set up pre-commit hooks locally (required for all contributors)::

pip install pre-commit
pre-commit install

This will automatically check code formatting before each commit. To format your code manually, run::

pre-commit run --all-files

All code must pass black formatting before it can be committed or merged.

Versioning and Release

This project uses tbump for version management.

To bump the version, run::

tbump <new_version>

This will update the version in src/rompy/__init__.py, commit the change, and optionally create a git tag.

tbump is included in the development requirements (requirements_dev.txt).

For more advanced configuration, see tbump.toml in the project root.

Relevant packages

Metadata

Release files for rompy-swan 0.11.1

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

Source distribution (sdist)

Source distribution for rompy-swan 0.11.1
File Size Uploaded Provenance Actions
rompy_swan-0.11.1.tar.gz 137.3 kB With provenance Details for rompy_swan-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rompy-swan 0.11.1
File Interpreter ABI Platform Actions
rompy_swan-0.11.1-py3-none-any.whl Python 3 none any Details for rompy_swan-0.11.1-py3-none-any.whl

Total release size: 263.9 kB

Release files / rompy_swan-0.11.1.tar.gz

Download URL rompy_swan-0.11.1.tar.gz
Size 137.3 kB
Tags Source
SHA-256 checksum
How to use checksums
990339549ff330e360a4ca665bf9178b7ee2f5019c59c54d7c9d1d6c7c97aaad
BLAKE2b-256 checksum
How to use checksums
d3a705ed3d1962e434d3c3b23fa6143ffa6231402f02a696562133c791004e3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Release files / rompy_swan-0.11.1-py3-none-any.whl

Download URL rompy_swan-0.11.1-py3-none-any.whl
Size 126.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
541b431aea275c61053c6fb896750070b035c2aae44bbbe65439033cc4403d70
BLAKE2b-256 checksum
How to use checksums
8d16313ee8a1675d432f97bba486c39a8ea396cae5d4c101e87cf19afc05c70d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Security for rompy-swan 0.11.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rompy_swan-0.11.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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