Skip to main content

quadros banner

CI PyPI Python License

quadros is a Python CLI package for rendering snapshots into checked frame sets and videos. It can run locally, over SSH, inside containers, or from scheduler jobs without copying scripts into case directories. Nek5000 is the format with dedicated support; other VTK-readable formats are supported via PyVista.

Features

  • Render one snapshot or a globbed case directory of snapshots (Nek5000 with dedicated support).
  • Keep JSON render configs compatible with the original auto_snp workflow.
  • Write manifests, logs, events, frames, and encoded movies under a run output directory.
  • Inspect render manifests before deleting dense snapshots.
  • Extract camera settings from ParaView .pvsm state files.
  • Gate NekStab omega-R renders with explicit field aliases and a rebuild hint.

Install

With uv (recommended for local development)

git clone https://github.com/openfluids/quadros.git
cd quadros
uv venv .venv
. .venv/bin/activate
uv pip install -e .
quadros doctor

For development tools and tests:

uv pip install -e . --group dev
python -m pytest

With standard venv + pip

git clone https://github.com/openfluids/quadros.git
cd quadros
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .
quadros doctor

For development tools and tests:

python -m pip install -e . pytest build twine
python -m pytest

For a cluster/native rendering setup, see docs/native-stack.md.

CLI

quadros doctor
quadros render snapshot.f00001 --config configs/render_scenes_example.json
quadros render-many --case-dir /path/to/case --pattern 'sphere0.f*' --config render.json
quadros inspect manifest.json
quadros encode --frames frames/ --out movies/movie.mp4
quadros extract-camera qp_comp.pvsm --out camera.json

By default, render outputs are written in loco under SNAPSHOT_PARENT/quadros for render and CASE_DIR/quadros for render-many. Use --out only when you intentionally want a different output root.

--check enables an omega-R preflight gate for configs that declare field_aliases for omR*/omega fields. If the configured payload is absent, the command points the operator to rebuild the NekStab case with ifvox = .true. and mks <CASE>.

Package layout

  • src/quadros/ — importable package and public CLI entrypoint.
  • configs/ — JSON render config examples compatible with the original workflow.
  • slurm/render_snapshots.sbatch — generic Slurm starter template; copy it and add cluster-specific account, partition, module, or container directives as needed.
  • tests/ — packaging and CLI smoke tests.
  • docs/ — native-stack notes and operating guidance.
  • PLAN.md — source migration plan.

Validation

python -m compileall src tests
python -m quadros --help
quadros doctor

Release files for quadros 0.1.2

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

Source distribution (sdist)

Source distribution for quadros 0.1.2
File Size Uploaded
quadros-0.1.2.tar.gz 43.1 kB Details

Built distribution (wheel)

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

Total release size: 83.0 kB

Release files / quadros-0.1.2.tar.gz

Download URL quadros-0.1.2.tar.gz
Size 43.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d4137d713d92c7013b44384010c27476d702f694db858347e98d07271192aa11
BLAKE2b-256 checksum
How to use checksums
88e1fc71fb71a17cd863ec74b1b8e465ba2e6dbfcac60c3df7b24be657618d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Aug 2, 2026.

Transparency log

Release files / quadros-0.1.2-py3-none-any.whl

Download URL quadros-0.1.2-py3-none-any.whl
Size 39.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f84f9895b614f025aad36cb834ca09d5c96ef5165cb6686e8123d9611ab5c4d
BLAKE2b-256 checksum
How to use checksums
8112a1edf1334bb5c4b53215c0de320d43a248f2a53da15a8c1cdb1020809764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Aug 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

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