Skip to main content

Sirocco logo Sirocco logo

Documentation · Getting started · Changelog

Sirocco is a Python workflow tool for climate and weather applications running on HPC systems. Workflows are described in a YAML dialect inspired by Cylc and AiiDA, and unrolled into a graph of tasks and data.

  • Data as graph nodes. Tasks explicitly declare the data they consume and produce, through named ports. No task needs to make assumptions on where others read or write, so workflows are truly composable.
  • Cycles. Recurring sets of tasks with their own periodicity, so that describing climate and weather workflows feels natural.
  • Parameters. Ensemble and sensitivity experiments through parameterized tasks and data.
  • Deep propagating task front. Tasks are submitted ahead of time, chained by scheduler dependencies, in a window that moves through the graph as tasks complete. Tasks no longer wait for their parents to finish before entering the queue.
  • Plugins. A general purpose shell plugin and a dedicated plugin for the ICON model, covering complex setups such as coupled runs on hybrid CPU/GPU architectures.
  • Two engines. A standalone engine running autonomously on the HPC system, with the scheduler as the sole daemon, and an AiiDA based engine (under development) running on a dedicated server.

Example

An ICON atmosphere simulation running month by month, restarting from its previous state, with its output streams post-processed by a user script:

scheduler: slurm
cycles:
  - monthly:
      cycling:
        start_date: "2000-01-01T00:00"
        stop_date: "2000-07-01T00:00"
        period: "P1M"
      tasks:
        - icon:
            components:
              atm:
                inputs:
                  dynamics_grid_file: [icon grid]
                  restart_in:
                    - restart:
                        when:
                          after: "2000-01-01T00:00"
                        target_cycle:
                          lag: "-P1M"
                outputs:
                  restart_out: [restart]
                  output_streams: [atm 2d, atm 3d]
        - post proc:
            inputs:
              streams: [atm 2d, atm 3d]
            outputs:
              diagnostics: [diagnostics]
tasks:
  - ROOT:
      computer: santis
      account: my_account
      walltime: "01:00:00"
  - SIROCCO:  # For the standalone orchestration engine
      walltime: "00:05:00"
      venv: /path/to/sirocco/.venv
  - icon:
      plugin: icon
      uenv: icon/25.2:v3
      nodes: 4
      procs_per_node: 128
      exe:
        cpu:
          path: /path/to/icon
          procs:
            atm:
              compute_weight: 1
              streams: 2
      namelists:
        - ICON/icon_master.namelist
        - ICON/NAMELIST_exclaim_ape_R02B04
  - post proc:
      plugin: shell
      src: scripts/post_proc.sh
      command: ./post_proc.sh {PORT::streams}
data:
  available:
    - icon grid:
        path: /path/to/icon_grid_0013_R02B04_R.nc
  generated:
    - restart: {}
    - atm 2d: {}
    - atm 3d: {}
    - diagnostics:
        path: diagnostics

The namelists are files of the configuration directory, next to sirocco.yaml. See the configuration and ICON plugin documentation for the complete syntax.

Getting started

Sirocco requires Python >=3.12 and, for the standalone engine, an HPC system using the SLURM scheduler (currently the only supported one). Install it on the HPC system, preferably with uv:

uv pip install sirocco

Then, from the configuration directory (containing sirocco.yaml):

sirocco verify      # validate the configuration
sirocco visualize   # render the unrolled workflow graph as an svg
sirocco start       # start the workflow
sirocco stviz       # render the current state of the task front

See Usage for all commands, including stop and restart.

The AiiDA engine requires a development install (git clone then uv sync --group aiida or hatch shell), see the AiiDA engine documentation.

Development

Sirocco uses hatch to manage environments:

git clone https://github.com/C2SM/Sirocco.git
cd Sirocco
hatch test                # run the tests
hatch test --all          # run the tests on all supported Python versions
hatch check fmt           # check formatting
hatch check code          # lint
hatch run types:check     # type check
hatch run docs:serve      # live preview of the documentation

Contact

For questions about Sirocco or to discuss a use case, contact Matthieu Leclair. For bugs and feature requests, please open an issue.

License

Sirocco is released under the MIT license.

Acknowledgments

We would like to acknowledge the EXCLAIM and Swiss Twins projects for the initial funding of Sirocco.

Metadata

Release files for sirocco 0.1.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 sirocco 0.1.0
File Size Uploaded Provenance Actions
sirocco-0.1.0.tar.gz 96.9 kB Without provenance Details for sirocco-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sirocco 0.1.0
File Interpreter ABI Platform Actions
sirocco-0.1.0-py3-none-any.whl Python 3 none any Details for sirocco-0.1.0-py3-none-any.whl

Total release size: 215.7 kB

Release files / sirocco-0.1.0.tar.gz

Download URL sirocco-0.1.0.tar.gz
Size 96.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dfb936ae9567a4de8cf11415804ee913fbe8e14e3e86bffd154d3aa49bb06537
BLAKE2b-256 checksum
How to use checksums
fdbb80fa9cd94f46d7f634f4a82e37be1b5642a02740e250c9c90e490eb9eded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.12.16"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.12.16","system":{"name":"Linux","release":"7.0.0-1019-azure"}} HTTPX2/2.16.2

Release files / sirocco-0.1.0-py3-none-any.whl

Download URL sirocco-0.1.0-py3-none-any.whl
Size 118.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e02f44182714172df3a9c6f8a4fdea90c4ee142fac947de846dffc962ddeb203
BLAKE2b-256 checksum
How to use checksums
d9d04aaeb6a813ce4008682b593dfe9378442031e9d34ec059003303c070196f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.12.16"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.12.16","system":{"name":"Linux","release":"7.0.0-1019-azure"}} HTTPX2/2.16.2

Security for sirocco 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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