SEP: library for source extraction and photometry in C and Python | Hugonweb Annotated Link Bibliography
https://github.com/sep-developers/sep
Source Extractor has been made into a library. I used Source Extractor a decade ago messing around with astronomy images.