There are 2 repositories under spatial-light-modulator topic.
Spatial light modulator in Python
Computer Generated Hologram Projector using Gerchberg-Saxton and an SLM
Package to holographically generate light potentials of arbitrary shape using a phase-modulating spatial light modulator (SLM).
CPU and GPU (using HIP) implementations of phase pattern generators for use with spatial light modulators
Python interface for programmable masks / spatial light modulators