— 2026
PyCAPIO - Transparent Streaming in File-Based Python Workflows
Marco Edoardo Santimaria
Abstract
This work introduces PyCAPIO, a new Python module that transparently improves the performance of file-based Python workflows by avoiding slow disk I/O and enabling work-flow steps to stream data through memory. PyCAPIO interfaces the Python interpreter directly with the CAPIO middleware, eliminating the need for syscall interception. This simplifies the integration of streaming capabilities into Python workflows and provides native bindings for the CAPIO-CL coordination language, making the CAPIO methodology easier to adopt. In addition, removing syscall interception enables support for RISC-V, ARM, and potentially any Linux-based CPU architecture that supports Python. Using both synthetic benchmarks and two real-world workflows (a scientific workflow and an AI-focused workflow), we show that PyCAPIO delivers performance comparable to, or better than, the existing CAPIO approach for Python workflows.
@misc{26:santimaria:escience:pycapio,
title = {PyCAPIO - Transparent Streaming in File-Based Python Workflows},
author = {Marco Edoardo Santimaria},
abstract = {This work introduces PyCAPIO, a new Python module that transparently improves the performance of file-based Python workflows by avoiding slow disk I/O and enabling work-flow steps to stream data through memory. PyCAPIO interfaces the Python interpreter directly with the CAPIO middleware, eliminating the need for syscall interception. This simplifies the integration of streaming capabilities into Python workflows and provides native bindings for the CAPIO-CL coordination language, making the CAPIO methodology easier to adopt. In addition, removing syscall interception enables support for RISC-V, ARM, and potentially any Linux-based CPU architecture that supports Python. Using both synthetic benchmarks and two real-world workflows (a scientific workflow and an AI-focused workflow), we show that PyCAPIO delivers performance comparable to, or better than, the existing CAPIO approach for Python workflows.},
address = {Naples, Italy},
keywords = {capio,dare},
month = oct,
year = 2026,
url = {https://datacloud.di.unito.it/index.php/s/f3aCmtHZJaWfRHQ},
bdsk-url-1 = {https://datacloud.di.unito.it/index.php/s/f3aCmtHZJaWfRHQ}
}