parsers
parsers¶
Argument value parsing
This module is mostly self-contained, and provides ways to construct Parser
instances
which parse string arguments into values.
During the configuration building, the parsed values are collected by a
configpile.collector.Collector
instance.
Types
This module uses the following types.
- _Parameter¶
Type received by a mapping function
- _ReturnType¶
Type returned by a mapping function
- _Item¶
Item in a sequence
Module attributes
Parses a path |
|
Parses an integer |
|
Parses a string, preserves whitespace |
|
Parses a string, stripping whitespace left and right |
|
Parses a float |
Classes
Generates formatted error messages when values are invalid |
|
Describes a parser, that takes a string and returns either a value or an error |
|
Defines a function or callable that takes a value and returns whether it is valid |