prefixmaps.io package
Submodules
prefixmaps.io.parser module
- prefixmaps.io.parser.load_context(name, refresh=False)
Loads a context by name from standard location
- Parameters:
name (
str
) –refresh – if True, fetch from upstream
- Return type:
- Returns:
- prefixmaps.io.parser.load_converter(names, refresh=False)
Get a converter.
- Return type:
Converter
prefixmaps.io.writer module
- prefixmaps.io.writer.context_to_file(context, file, *, include_expansion_source=False)
Writes a context to a file
- Parameters:
context (
Context
) –file (
TextIO
) –include_expansion_source (
bool
) – If true, include a “source” column. This is useful for writing merged contexts since it says the highest priority simple context from which the row corresponding to aPrefixExpansion
came.
- Return type:
None
- Returns: