pywikitools.resourcesbot.post_processing#
Base classes for all functionality doing useful stuff with the data gathered previously.
If the functionality looks only at one language at a time, implement LanguagePostProcessor. If the functionality needs to look at everything, implement GlobalPostProcessor. The resourcesbot will first call any LanguagePostProcessors for each language and afterwards call any GlobalPostProcessor
Module Contents#
Classes#
Base class for all functionality doing useful stuff with the data on one language. |
|
Base class for all functionality doing useful stuff with the data on all languages |
- class pywikitools.resourcesbot.post_processing.LanguagePostProcessor#
Bases:
abc.ABCBase class for all functionality doing useful stuff with the data on one language.
We include information on English as well because several post-processors need it as reference
- abstract run(self, language_info: pywikitools.resourcesbot.data_structures.LanguageInfo, english_info: pywikitools.resourcesbot.data_structures.LanguageInfo, change_log: pywikitools.resourcesbot.changes.ChangeLog)#
Entry point
- class pywikitools.resourcesbot.post_processing.GlobalPostProcessor#
Bases:
abc.ABCBase class for all functionality doing useful stuff with the data on all languages
- abstract run(self, language_data: Dict[str, pywikitools.resourcesbot.data_structures.LanguageInfo], changes: Dict[str, pywikitools.resourcesbot.changes.ChangeLog])#
Entry point