Пример #1
0
    def refresh_cache_and_update_db(self):
        self.LOGGER.info("Updating CVE data. This will take a few minutes.")
        # refresh the nvd cache
        run_coroutine(self.refresh())

        # if the database isn't open, open it
        self.init_database()
        self.populate_db()
Пример #2
0
 def parse(self):
     return run_coroutine(self.aio_parse())
Пример #3
0
def is_binary(filename):
    return run_coroutine(aio_is_binary(filename))
Пример #4
0
 def extract(self, filename):
     return run_coroutine(self.aio_extract(filename))