dakweb.routers.source

Functions

all_sources([db])

Return all source packages and versions known to the archive (includes NEW).

dsc_in_suite(suite, source[, db])

Find all dsc files for a given source package in a given suite.

file_in_archive(filepattern[, db])

Check if a file pattern is known to the archive (SQL LIKE syntax).

sha256sum_in_archive(sha256sum[, db])

Check if files with matching sha256sums are known to the archive.

source_by_metadata(key[, db])

Find all Debian source packages which have the specified metadata set.

sources_in_suite(suite[, db])

Return all source packages and versions in a given suite.

Classes

DscInSuite(*, version, component, filename, ...)

FileInArchive(*, filename, component, sha256sum)

SourceByMetadata(*, source, metadata_value)

SourcesInSuite(*, source, version)

class dakweb.routers.source.DscInSuite(*, version: str, component: str, filename: str, filesize: int, sha256sum: str)[source]
_abc_impl = <_abc._abc_data object>
component: str
filename: str
filesize: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

sha256sum: str
version: str
class dakweb.routers.source.FileInArchive(*, filename: str, component: str, sha256sum: str)[source]
_abc_impl = <_abc._abc_data object>
component: str
filename: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

sha256sum: str
class dakweb.routers.source.SourceByMetadata(*, source: str, metadata_value: str)[source]
_abc_impl = <_abc._abc_data object>
metadata_value: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

source: str
class dakweb.routers.source.SourcesInSuite(*, source: str, version: str)[source]
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

source: str
version: str
dakweb.routers.source.all_sources(db: Session = Depends(get_db)) list[SourcesInSuite][source]

Return all source packages and versions known to the archive (includes NEW).

dakweb.routers.source.dsc_in_suite(suite: str, source: str, db: Session = Depends(get_db)) list[DscInSuite][source]

Find all dsc files for a given source package in a given suite.

dakweb.routers.source.file_in_archive(filepattern: str, db: Session = Depends(get_db)) list[FileInArchive][source]

Check if a file pattern is known to the archive (SQL LIKE syntax).

dakweb.routers.source.sha256sum_in_archive(sha256sum: str, db: Session = Depends(get_db)) list[FileInArchive][source]

Check if files with matching sha256sums are known to the archive.

dakweb.routers.source.source_by_metadata(key: str, db: Session = Depends(get_db)) list[SourceByMetadata][source]

Find all Debian source packages which have the specified metadata set.

dakweb.routers.source.sources_in_suite(suite: str, db: Session = Depends(get_db)) list[SourcesInSuite][source]

Return all source packages and versions in a given suite.