def print_header()

in aristotle/aristotle.py [0:0]


    def print_header(self, sids=None):
        """ Prints vanity header and stats.

        :param sids: list of SIDs to consider. If not provided, global list is used.
        :type sids: list, optional
        """
        if sids is None:
            sids = list(self.metadata_dict.keys())
        total = len(sids)
        enabled = len([sid for sid in sids
                       if not self.metadata_dict[sid]['disabled']])
        disabled = total - enabled
        print("\n" + INVERSE + BROWN + "       Aristotle       "
              + RESET + BROWN
              + "\n Ruleset Metadata Tool " + RESET + "\n")
        print(UNDERLINE + BOLD + GREEN + "All Rules:"
              + RESET + GREEN
              + " Total: {}; Enabled: {}; Disabled: {}".format(total, enabled, disabled)
              + RESET + "\n")