Skip to main content

CADET-Python

CADET-Python provides a file-based Python interface for CADET-Core, which must be installed separately. For this, please refer to the installation instructions and the CADET-Core repository.

The CADET-Python package simplifies access by mapping to the CADET interface, with all dataset names in lowercase.

Installation

To install CADET-Python, use:

pip install cadet-python

Usage Example

The package includes two primary classes:

  • CADET: The main class to configure and run simulations.
  • H5: A general-purpose HDF5 interface.

Setting Up a Simulation

To set a simulation parameter, such as the column porosity for column 1.

Referring to this path in the CADET interface:

/input/model/unit_001/COL_POROSITY

In CADET-Python, this is now set as:

from cadet import Cadet

# Initialize simulation
sim = Cadet()

# Set column porosity for unit 001
sim.root.input.model.unit_001.col_porosity = 0.33

Saving the Simulation File

Before running, save the simulation configuration to a file:

sim.filename = "/path/to/your/file.hdf5"
sim.save()

Setting the Path to CADET

To execute the simulation, specify the path to CADET-Core. On Windows, set the path to cadet-cli.exe:

sim.cadet_path = '/path/to/cadet-cli'

Running the Simulation and Loading Data

Run the simulation and load the output data with:

print(sim.run())
sim.load()

Reading Data from a Pre-Simulated File

If you have a pre-simulated file, you can read it directly:

# Initialize a new simulation object
sim = Cadet()

# Set the filename for the existing simulation data
sim.filename = "/path/to/your/file.hdf5"
sim.load()

At this point, any data in the file can be accessed.

Metadata

Release files for CADET-Python 1.3.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 CADET-Python 1.3.0
File Size Uploaded
cadet_python-1.3.0.tar.gz 42.5 kB Details

Built distribution (wheel)

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

Total release size: 71.2 kB

Release files / cadet_python-1.3.0.tar.gz

Download URL cadet_python-1.3.0.tar.gz
Size 42.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f61f573c636cdac257c5d64083275f25511e63fc85558915e7c18baa76c7f4b6
BLAKE2b-256 checksum
How to use checksums
a664db39c922caeed12e6adcf47d10fa717b62d0adb044bbc06984b02f7e1ad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 24, 2026.

Transparency log

Release files / cadet_python-1.3.0-py3-none-any.whl

Download URL cadet_python-1.3.0-py3-none-any.whl
Size 28.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7085ac12ddc5ded812580ba25afa234f5a9485f32df9e0f625a716bc78c5c109
BLAKE2b-256 checksum
How to use checksums
691fb9b312ee9dfdde5e6577093c5a4bb78ae557704069faf013380bf57ed7f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.14.1

2 release files

0.14

2 release files

0.12

2 release files

0.11

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