preCICE Adapter Schema
Here the adapter configuration schema is stored, together with validation utility.
A schema ...
- defines how a configuration file looks like (thus replaces any explicit documentation).
- enables interoperability (through standardization).
- simplifies auto-generation.
- enables tooling support (e.g. IDEs or GUIs).
- enables automatic LLM-based conversion from and to other configuration languages.
- ...
Installation
Install the package using pip:
pip install precice-adapter-schema
For development, install in editable mode:
pip install -e .
Usage
The preciceadapterschema package provides a validate function to validate preCICE adapter configurations against the JSON schema.
import preciceadapterschema
# Your configuration data
config_data = {
}
# Validate the configuration
try:
preciceadapterschema.validate(config_data)
print("Configuration is valid!")
except Exception as e:
print(f"Validation failed: {e}")
The schema file (precice_adapter_config.schema.json) is included in the package and loaded automatically by the validate function.
Configuring preCICE Adapters
We recommend using MetaConfigurator to create and edit preCICE adapter configurations. It provides a user-friendly interface and ensures that your configurations are always valid according to the schema.
Development
Running Tests
Run tests using unittest:
python -m unittest discover -s tests -v
Metadata
Release files for precice-adapter-schema 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| precice_adapter_schema-0.4.2.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| precice_adapter_schema-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / precice_adapter_schema-0.4.2.tar.gz
| Download URL | precice_adapter_schema-0.4.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
897bcec281ac71bb8ea2c86043188f150de50460ab86686a125a7bc6941364b4
|
|
BLAKE2b-256 checksum How to use checksums |
e38723cb609db0c850bdfb29ecda308b7ac3f038f115b9a7c8f69a606562927b
|
| 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 Oct 1, 2026.
Transparency logRelease files / precice_adapter_schema-0.4.2-py3-none-any.whl
| Download URL | precice_adapter_schema-0.4.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53586ddab9057d5b6c110fb5e9ddcb73a6a016a3fd05b617bdfbcb2c19523c80
|
|
BLAKE2b-256 checksum How to use checksums |
6e57d8ede7919e8ea233269475d63483a6135695428134220d7ef3f03a6f0c97
|
| 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 Oct 1, 2026.
Transparency log