Package dakweb :: Package queries :: Module source
[hide private]
[frames] | no frames]

Module source

source code

Queries related to source packages


Contact: Debian FTPMaster <ftpmaster@debian.org>

Copyright:

License: GNU General Public License version 2 or later

Functions [hide private]
list of dictionaries
dsc_in_suite(suite=None, source=None)
Find all dsc files for a given source package name in a given suite.
source code
list of dictionaries
file_in_archive(filepattern=None)
Check if a file pattern is known to the archive.
source code
list of dictionaries
sha256sum_in_archive(sha256sum=None)
Check if files with matching sha256sums are known to the archive.
source code
list of dictionaries
sources_in_suite(suite=None)
Returns all source packages and their versions in a given suite.
source code
list of dictionaries
all_sources()
Returns all source packages and their versions known to the archive (this includes NEW).
source code
dictionary
source_by_metadata(key=None)
Finds all Debian source packages which have the specified metadata set.
source code

Imports: or_, bottle, json, DBConn, DBSource, Suite, DSCFile, PoolFile, SourceMetadata, MetadataKey, QueryRegister


Function Details [hide private]

dsc_in_suite(suite=None, source=None)

source code 

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

Parameters:
  • suite (string) - Name of the suite.
  • source (string) - Source package to query for.
Returns: list of dictionaries
Dictionaries made out of
  • version
  • component
  • filename
  • filesize
  • sha256sum
Decorators:
  • @bottle.route('/dsc_in_suite//')

Since: December 2014

See Also: suites on how to receive a list of valid suites.

file_in_archive(filepattern=None)

source code 

Check if a file pattern is known to the archive. Note that the patterns are matched against the location of the files in the pool, so for %tmux_2.3-1.dsc it will return t/tmux/tmux_2.3-1.dsc as filename.

Parameters:
  • filepattern (string) - Pattern of the filenames to match. SQL LIKE statement wildcard matches are supported, that is % for zero, one or more characters, _ for a single character match.
Returns: list of dictionaries
Dictionaries made out of
  • filename
  • sha256sum
  • component
Decorators:
  • @bottle.route('/file_in_archive/')

Since: October 2016

sha256sum_in_archive(sha256sum=None)

source code 

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

Parameters:
  • sha256sum (string) - SHA256 sum of the file.
Returns: list of dictionaries
Dictionaries made out of
  • filename
  • sha256sum
  • component
Decorators:
  • @bottle.route('/sha256sum_in_archive/')

Since: June 2018

sources_in_suite(suite=None)

source code 

Returns all source packages and their versions in a given suite.

Parameters:
  • suite (string) - Name of the suite.
Returns: list of dictionaries
Dictionaries made out of
  • source
  • version
Decorators:
  • @bottle.route('/sources_in_suite/')

Since: December 2014

See Also: suites on how to receive a list of valid suites.

all_sources()

source code 

Returns all source packages and their versions known to the archive (this includes NEW).

Returns: list of dictionaries
Dictionaries made out of
  • source
  • version
Decorators:
  • @bottle.route('/all_sources')

source_by_metadata(key=None)

source code 

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

E.g., to find out the Maintainer of all source packages, query /source/by_metadata/Maintainer.

Parameters:
  • key (string) - Metadata key to search for.
Returns: dictionary
A list of dictionaries of
  • source
  • metadata value
Decorators:
  • @bottle.route('/source/by_metadata/')