xylem.sources package¶
Submodules¶
xylem.sources.impl module¶
- xylem.sources.impl.get_default_source_urls()¶
Return the list of default source urls.
Returns: lists of source urls keyed by spec type Return type: dict`(:py:obj:`str: list`(:py:obj:`str))
- xylem.sources.impl.get_source_urls(prefix)¶
Return a list of source urls.
Parameters: prefix – prefix on which to look for etc/xylem/sources.list.d Type: prefix: str Returns: lists of source urls keyed by spec, or None if no configs found Return type: dict`(:py:obj:`str: list`(:py:obj:`str))
- xylem.sources.impl.load_source_lists_from_path(path)¶
Return a list of source urls from a given directory of source lists.
Only files which have the .yaml extension are processed, other files, hidden files, and directories are ignored.
Parameters: path (str) – directory containing source list files Returns: lists of source urls keyed by spec type Return type: dict`(:py:obj:`str: list`(:py:obj:`str))
- xylem.sources.impl.parse_list(data, file_path='<string>')¶
Parse a given list of urls and returns them as a list of source urls.
Parameters: data (str) – string containing a list of source urls Returns: lists of source urls keyed by spec type Return type: dict`(:py:obj:`str: list`(:py:obj:`str)) Raises: ValueError, yaml.YAMLError
Module contents¶
- xylem.sources.get_default_source_urls()¶
Return the list of default source urls.
Returns: lists of source urls keyed by spec type Return type: dict`(:py:obj:`str: list`(:py:obj:`str))
- xylem.sources.get_source_urls(prefix)¶
Return a list of source urls.
Parameters: prefix – prefix on which to look for etc/xylem/sources.list.d Type: prefix: str Returns: lists of source urls keyed by spec, or None if no configs found Return type: dict`(:py:obj:`str: list`(:py:obj:`str))