utils
#
Utilities for codegen.
Functions:
Name | Description |
---|---|
create_server |
Helper to create an HTTP server |
mapping_representer |
Helper to represent any Mapping as yaml. |
FileTypeExtension
#
FileTypeExtension(mode: str = 'r', bufsize: int = -1, encoding: str | None = None, errors: str | None = None, extensions: Iterable[str] | None = None)
Extension argparse.FileType
that adds checking for file extensions.
create_server
#
Helper to create an HTTP server
mapping_representer
#
Helper to represent any Mapping as yaml.
Paramaters
dumper: SafeRepresenter
A yaml dumper using the yaml.representer.SafeRepresenter
mixin
data:
the collections.abc.Mapping
object to be represented
Notes
Useful for represnting collection.OrderedDict
objects.
Returns:
Type | Description |
---|---|
MappingNode
|
a |