swh.loader.git.base module#
- class swh.loader.git.base.BaseGitLoader(*args, **kwargs)[source]#
- Bases: - BaseLoader- This base class is a pattern for both git loaders - Those loaders are able to load all the data in one go. - get_contents() Iterable[BaseContent][source]#
- Get the contents that need to be loaded 
 - maybe_log(msg: str, *args, level=20, force=False, **kwargs)[source]#
- Only log if - LOGGING_INTERVALhas elapsed since the last log line was printed.- Arguments are identical to those of - logging.Logger.log, except if the log format arguments are callable, the call only happens if the log is actually being printed.