UPDATE: Zenodo migration postponed to Oct 13 from 06:00-08:00 UTC. Read the announcement.

Software Open Access

Calling Python from TRNSYS with CFFI

Bernier, Nicolas; Marcotte, Bruno; Kummert, Michaël

This software package provides all the files required to use the component calling Python from TRNSYS (version 18) using CFFI. The coupling method allows importing existing Python libraries (such as numpy) in your Python modules, providing more flexibility than the existing standard TRNSYS component (Type 169).

The software is provided as a zip archive with all the required files to integrate the new component into your TRNSYS installation, including some examples. Please check the documentation included in the zip file (in the TRNLib\Documentation subdirectory) before trying the examples – they will only work “out of the box” if your Python version matches the one used to develop the component and is on Windows’ search path, but instructions are provided to install and/or configure different versions.

Files (6.0 MB)
Name Size
CallingPython-Cffi v0.5 (2022-04-11).zip
2.5 MB Download
CallingPython-Cffi v0.6.0 (2022-05-06).zip
3.5 MB Download
All versions This version
Views 1,8491,806
Downloads 485480
Data volume 1.6 GB1.6 GB
Unique views 1,6041,583
Unique downloads 389386


Cite as