swh.lister package#

Subpackages#

Submodules#

Module contents#

swh.lister.TARBALL_EXTENSIONS = ['crate', 'gem', 'jar', 'love', 'zip', 'tar', 'gz', 'tgz', 'tbz', 'bz2', 'bzip2', 'lzma', 'lz', 'txz', 'xz', 'z', 'Z', '7z', 'oxt', 'pak', 'war', 'whl', 'vsix', 'VSIXPackage', 'zst']#

Tarball recognition pattern

swh.lister.get_lister(lister_name, db_url=None, **conf)[source]#

Instantiate a lister given its name.

Parameters:
  • lister_name (str) – Lister’s name

  • conf (dict) – Configuration dict (lister db cnx, policy, priority…)

Returns:

Tuple (instantiated lister, drop_tables function, init schema function, insert minimum data function)