You CAN use CellProfiler as a Python package; I’ve linked to our documentation on it below. It’s a good way to get up and running quickly with an existing CellProfiler workflow.
However, my advice would be that there aren’t that many situations where I would recommend that as your best option- in general, if you need a string of modules/a whole pipeline, I’d just recommend you use our headless run tools, and if you need only one module, I’d just grab the underlying skimage and/or centrosome code and save yourself the “overhead” of all CellProfiler’s requirements. Nevertheless, if you do choose to do it, here’s how.