swh.lister.gnu.lister module

class swh.lister.gnu.lister.GNULister(scheduler: swh.scheduler.interface.SchedulerInterface, credentials: Optional[Dict[str, Dict[str, List[Dict[str, str]]]]] = None)[source]

Bases: swh.lister.pattern.StatelessLister[Mapping[str, Any]]

List all GNU projects and associated artifacts.

LISTER_NAME: str = 'GNU'
GNU_FTP_URL = 'https://ftp.gnu.org'
get_pages() Iterator[Mapping[str, Any]][source]

Yield a single page listing all GNU projects.

get_origins_from_page(page: Mapping[str, Any]) Iterator[swh.scheduler.model.ListedOrigin][source]

Iterate on all GNU projects and yield ListedOrigin instances.