Skip to main content

FourCIPP logo

FourCIPP (FourC Input Python Parser) holds a Python Parser to simply interact with 4C YAML input files. This tool provides a streamlined approach to data handling for third party tools.

Overview

Installation

Python Environment

FourCIPP is a Python project supporting Python versions 3.10 - 3.13. To use FourCIPP it is recommended to install it into a virtual Python environment such as Conda/Miniforge or venv.

An exemplary Conda/Miniforge environment can be created and loaded with

# Create the environment (this only has to be done once)
conda create -n fourcipp python=3.13
# Activate the environment
conda activate fourcipp

To now install FourCIPP different ways exist.

Installation from PyPI

FourCIPP is published on PyPI as a universal wheel, meaning you can install it on Windows, Linux and macOS with:

pip install fourcipp

or a specific version with:

pip install fourcipp==0.28.0

Installation from Github (most recent version)

Additionally, the latest main version of FourCIPP can be installed directly from Github via:

pip install git+https://github.com/4C-multiphysics/fourcipp.git@main

Installation from source

If you intend on developing FourCIPP it is crucial to install FourCIPP from source, i.e., cloning the repository from Github. You can then either install it in a non-editable or editable fashion.

  • Install all requirements without fixed versions in a non-editable fashion via:

    # located at the root of the repository
    pip install .
    

    and without fixed versions in an editable fashion via:

    # located at the root of the repository
    pip install -e .
    

    Note: This is the default behavior. This allows to use fourcipp within other projects without version conflicts.

  • Alternatively, you can install all requirements with fixed versions in a non-editable fashion with:

    pip install .[safe]
    

    and with fixed versions in an editable fashion via:

    # located at the root of the repository
    pip install -e .[safe]
    

Once installed, FourCIPP is ready to be used 🎉

Quickstart example

from fourcipp.fourc_input import FourCInput

# Create a new 4C input via
input_4C = FourCInput()

# Or load an existing input file
input_4C = FourCInput.from_4C_yaml(input_file_path)

# Add or overwrite sections
input_4C["PROBLEM TYPE"] = {"PROBLEMTYPE": "Structure"}
input_4C["PROBLEM SIZE"] = {"DIM": 3, "ELEMENTS": 1_000}

# Update section parameter
input_4C["PROBLEM SIZE"]["ELEMENTS"] = 1_000_000

# Add new parameter
input_4C["PROBLEM SIZE"]["NODES"] = 10_000_000

# Remove section
removed_section = input_4C.pop("PROBLEM SIZE")

# Dump to file
input_4C.dump(input_file_path, validate=True)

Configuration

FourCIPP utilizes the 4C_metadata.yaml and schema.json files generated during the 4C build to remain up-to-date with your 4C build. By default, the files for the latest 4C input version can be found in src/fourcipp/config. You can add custom metadata and schema paths to the configuration file src/fourcipp/config/config.yaml by adding a new profile:

profile: your_custom_files
profiles:
  your_custom_files:
    4C_metadata_path: /absolute/path/to/your/4C_metadata.yaml
    json_schema_path: /absolute/path/to/your/4C_schema.json
  default:
    4C_metadata_path: 4C_metadata.yaml
    json_schema_path: 4C_schema.json
    description: 4C metadata from the latest successful nightly 4C build
  4C_docker_main:
    4C_metadata_path: /home/user/4C/build/4C_metadata.yaml
    json_schema_path: /home/user/4C/build/4C_schema.json
    description: 4C metadata in the main 4C docker image

and select it using the profile entry.

Developing FourCIPP

If you plan on actively developing FourCIPP it is advisable to install in editable mode with the additional developer requirements like

pip install -e .[dev]

Note: The developer requirements can also be installed in non-editable installs. Finally, you can install the pre-commit hook with:

pre-commit install

Dependency Management

To ease the dependency update process pip-tools is utilized. To create the necessary requirements.txt file simply execute

pip-compile --all-extras --output-file=requirements.txt requirements.in

To upgrade the dependencies simply execute

pip-compile --all-extras --output-file=requirements.txt --upgrade requirements.in

License

This project is licensed under a MIT license. For further information check LICENSE.

Release files for FourCIPP 1.155.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 FourCIPP 1.155.0
File Size Uploaded
fourcipp-1.155.0.tar.gz 719.0 kB Details

Built distribution (wheel)

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

Total release size:1.5 MB

Release files / fourcipp-1.155.0.tar.gz

Download URL fourcipp-1.155.0.tar.gz
Size 719.0 kB
Tags Source
SHA-256 checksum
How to use checksums
24d8226b64c4576266007086ff505e3178f5af096e29ebc2eab6c907c05a6978
BLAKE2b-256 checksum
How to use checksums
818b6bc4dc3a212d97b6499f64acaab5cd53d8a9969b627bd9e4a022c1565199
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 Sep 19, 2026.

Transparency log

Release files / fourcipp-1.155.0-py3-none-any.whl

Download URL fourcipp-1.155.0-py3-none-any.whl
Size 782.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a11d0f2053538adf8735cf45b8ad678601b3560fbb7a0348d8ff6681fe1bca76
BLAKE2b-256 checksum
How to use checksums
2e17f7d312fe6f3fe043054286108801c31591f90bf2d0b39a2b6d55f574e267
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 Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.155.0 This release

2 release files

1.99.0

2 release files

1.98.0

2 release files

1.97.0

2 release files

1.96.0

2 release files

1.95.0

2 release files

1.94.0

2 release files

1.93.0

2 release files

1.92.0

2 release files

1.91.0

2 release files

1.90.0

2 release files

1.89.0

2 release files

1.78.0

2 release files

1.77.0

2 release files

1.76.0

2 release files

1.75.0

2 release files

1.74.0

2 release files

1.73.0

2 release files

1.72.0

2 release files

1.66.0

2 release files

1.65.0

2 release files

1.64.0

2 release files

1.63.0

2 release files

1.62.0

2 release files

1.61.0

2 release files

1.60.0

2 release files

1.59.0

2 release files

1.58.0

2 release files

1.53.0

2 release files

1.52.0

2 release files

1.51.0

2 release files

1.50.0

2 release files

1.49.0

2 release files

1.47.0

2 release files

1.46.0

2 release files

1.45.0

2 release files

1.39.0

2 release files

1.38.0

2 release files

1.37.0

2 release files

1.36.0

2 release files

1.35.0

2 release files

1.34.0

2 release files

1.32.0

2 release files

1.31.0

2 release files

1.30.0

2 release files

1.29.0

2 release files

1.28.0

2 release files

1.27.0

2 release files

1.26.0

2 release files

1.25.0

2 release files

1.24.0

2 release files

1.23.0

2 release files

1.22.0

2 release files

1.21.0

2 release files

1.18.0

2 release files

1.17.0

2 release files

1.16.0

2 release files

1.15.0

2 release files

1.14.0

2 release files

1.13.0

2 release files

1.12.0

2 release files

1.11.0

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

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