pyDIA performs star detection, kernel-based difference imaging, and photometry on astronomical images. Its modular design separates routines for image alignment, image subtraction, source detection, and photometric measurement, so users can run end-to-end difference-imaging pipelines or call individual components in custom workflows. pyDIA is written in Python with some C components.