CIRCL / AIL-framework

AIL framework - Analysis Information Leak framework. Project moved to https://github.com/ail-project
https://github.com/ail-project/ail-framework
GNU Affero General Public License v3.0
1.29k stars 283 forks source link

feat: module factorization #549

Closed osagit closed 3 years ago

osagit commented 3 years ago

The aims of this refactoring is to :

You can focus on the file module/abstract_module.py which is an abstract class for all modules.

the init class constructor is used to initilize queue, logger process en the pending time between calls the run method is generic and get the messages. the method compute is to compute a message from queue and should be override the method computeNone is optional if treatments have to be done when no message in queue

Then focus on other files like phone.py which is very simple and template.py

Terrtia commented 3 years ago

Merged 77a708845c197a5143fd944656866249c9be0a6d https://github.com/ail-project/ail-framework/pull/97#issuecomment-812556042