def run(config):

    # --------------------------------------------------------------------------
    # Checks Python version
    # --------------------------------------------------------------------------
    if version_info < (3, 3):
        raise RuntimeError("You need Python 3.3.x or higher to run Plecost")

    # Check reporter
    if config.report_filename is not None:
        # Select appropriate report.
        reporter_function = get_reporter(config.report_filename)

    # Find wordpress and plugins versions
    data = find_versions(config)

    # Generate reports
    if config.report_filename is not None:

        report = reporter_function(config.report_filename)

        # Get report content
        content = report.generate(data)

        # Save report content
        report.save(content)
Main function of libs:
dataset/ETHPy150Open iniqua/plecost/plecost_lib/api.py/run