  In the multi-messenger era, astronomical projects share information about
transients phenomena issuing science alerts to the Scientific Community through
different communications networks. This coordination is mandatory to understand
the nature of these physical phenomena. For this reason, astrophysical projects
rely on real-time analysis software pipelines to identify as soon as possible
transients (e.g. GRBs), and to speed up external alerts' reaction time. These
pipelines can share and receive the science alerts through the Gamma-ray
Coordinates Network. This work presents a framework designed to simplify the
development of real-time scientific analysis pipelines. The framework provides
the architecture and the required automatisms to develop a real-time analysis
pipeline, allowing the researchers to focus more on the scientific aspects. The
framework has been successfully used to develop real-time pipelines for the
scientific analysis of the AGILE space mission data. It is planned to reuse
this framework for the Super-GRAWITA and AFISS projects. A possible future use
for the Cherenkov Telescope Array (CTA) project is under evaluation.
