Skip to main content
styro

The package manager for OpenFOAM

Simplify your OpenFOAM workflows with easy package installation, management, and distribution

CI Codecov PyPI Conda Version OpenFOAM

Ruff ty uv Publish Binaries Docker


✨ Why styro?

styro brings modern package management to the OpenFOAM ecosystem, making it easy to discover, install, and manage community-contributed packages. Whether you're a researcher, engineer, and/or developer, styro streamlines your workflow by eliminating manual compilation and dependency management.

🎯 Key benefits

  • 🚀 One-command installation - Install OpenFOAM packages with a single command
  • 🌎 Community-driven - Access packages from the OpenFOAM Package Index (OPI)
  • 🧩 Broad compatibility - Works seamlessly with OpenFOAM from openfoam.com and openfoam.org
  • 📦 Multiple sources - Install from OPI, local directories, or Git repositories
  • 🔄 Easy updates - Upgrade packages with automatic dependency resolution
  • 🛠️ Developer-friendly - Simple package testing, definition and distribution

▶️ Demo

Demo

📋 Requirements

Before using styro, ensure you have:

⏬ Installation

Choose any of the following methods:

  • With pip (requires Python 3.9 or later):

    pip install styro
    
  • With conda:

    conda install -c conda-forge styro
    
  • With Homebrew:

    brew install gerlero/openfoam/styro
    
  • Standalone binary (installs to $FOAM_USER_APPBIN):

    /bin/bash -c "$(curl https://raw.githubusercontent.com/gerlero/styro/main/install.sh)"
    
  • Docker image:

    docker pull microfluidica/styro
    

🧑‍💻 Command reference

Command Description Example
⏬ styro install <packages> Install one or more packages styro install cfmesh
⬆️ styro install --upgrade <packages> Upgrade already installed packages styro install --upgrade cfmesh
🗑️ styro uninstall <packages> Remove installed packages styro uninstall cfmesh
🔍 styro freeze List all installed packages styro freeze
🔄 styro install --upgrade styro Upgrade styro itself (only for standalone installs) styro install --upgrade styro

📦 Package sources

✨ OpenFOAM Package Index (OPI)

styro automatically discovers packages from the community-maintained OpenFOAM Package Index.

styro install cfmesh

🖥️ Local packages

Install packages from your local filesystem:

styro install /path/to/my-custom-package

Pro tip: Add a metadata.json file to the package directory to customize installation behavior.

🌎 Git repositories

Install directly from any Git repository:

styro install https://github.com/username/my-openfoam-package.git

Just like local packages, add a metadata.json file to the repository root for custom installation settings.

🤝 Contributing

We welcome contributions! Here's how you can help:

Metadata

Release files for styro 0.1.37

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

Source distribution (sdist)

Source distribution for styro 0.1.37
File Size Uploaded
styro-0.1.37.tar.gz 27.2 kB Details

Built distribution (wheel)

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

Total release size: 56.3 kB

Release files / styro-0.1.37.tar.gz

Download URL styro-0.1.37.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bee23d5e91ce141e34ac96e7d6cbe683cf4e6389b98e3ad8b6f3b0879b9648b9
BLAKE2b-256 checksum
How to use checksums
c79d3825ca99d989ce1a25c37c9f1fdfdb6abe783aaba5f64c55233301463359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / styro-0.1.37-py3-none-any.whl

Download URL styro-0.1.37-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8882ae78be13a379c14e3cf88799afe2373ff42ceae8090308d21a5bc8631059
BLAKE2b-256 checksum
How to use checksums
5bf51399e3268256c429f6ca1bef58dc7d8b69c96fe225e8853399fccceb0c17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
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