The SPIR-V Tools project provides an API and commands for processing SPIR-V modules.
conda install conda-forge::spirv-tools