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

Module binary

source code

Debian binary package related queries.


Copyright:

License: GNU General Public License version 2 or later

Functions [hide private]
dictionary
binary_metadata_keys()
List all possible metadata keys
source code
dictionary
binary_by_metadata(key=None)
Finds all Debian binary packages which have the specified metadata set in their correspondig source package.
source code

Imports: bottle, json, DBConn, DBBinary, DBSource, SourceMetadata, MetadataKey, QueryRegister


Function Details [hide private]

binary_metadata_keys()

source code 

List all possible metadata keys

Returns: dictionary
A list of metadata keys
Decorators:
  • @bottle.route('/binary/metadata_keys/')

binary_by_metadata(key=None)

source code 

Finds all Debian binary packages which have the specified metadata set in their correspondig source package.

E.g., to find out the Go import paths of all Debian Go packages, query /binary/by_metadata/Go-Import-Path.

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