swh.lister.debian.models module

class swh.lister.debian.models.Distribution(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

A distribution (e.g. Debian, Ubuntu, Fedora, …)

id
name
type
mirror_uri
areas
origin_for_package(package_name: str) → str[source]

Return the origin url for the given package

class swh.lister.debian.models.Area(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

id
distribution_id
name
active
distribution
index_uris()[source]

Get possible URIs for this component’s package index

class swh.lister.debian.models.Package(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

id
area_id
name
version
directory
files
origin_id
task_id
revision_id
area
property distribution
fetch_uri(filename)[source]

Get the URI to fetch the filename file associated with the package

loader_dict()[source]
class swh.lister.debian.models.DistributionSnapshot(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

id
date
distribution_id
distribution
areas
task_for_package(package_name: str, package_versions: Mapping) → Mapping[str, Any][source]

Return the task dictionary for the given list of package versions

get_packages()[source]
class swh.lister.debian.models.AreaSnapshot(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

id
snapshot_id
area_id
snapshot
area
packages
class swh.lister.debian.models.TempPackage(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

id
area_id
name
version