types.py 522 B

1234567891011121314151617
  1. from load_data import load_DBs
  2. from plot_functions import plot_all
  3. class Mydata:
  4. def __init__(self, load):
  5. if load:
  6. (self.dsatable, self.src2dsa, self.dsa2cve, self.cvetable, self.src2month, self.src2sloccount, self.src2pop, self.src2deps, self.pkg_with_cvss) = load_DBs()
  7. else:
  8. print('no load command given')
  9. def main():
  10. data = Mydata(True)
  11. print('Done')
  12. i = plot_all(data.src2month, data.src2sloccount, data.pkg_with_cvss)
  13. if __name__ == "__main__":
  14. main()