argclz.types#
Functions
Parse a string into its literal Python value |
|
Convert a string to a boolean. |
|
Attempt to convert a string to int, returning original or None on failure. |
|
Attempt to convert a string to float, returning original or None on failure. |
|
tuple[int, ...] |
|
tuple[str, ...] |
|
tuple[float, ...] |
|
Create a caster that splits a comma-separated string into a tuple of typed values. |
|
Caster which converts a delimited string into a list of typed values |
|
Caster that tries multiple converters in order until one succeeds. |
|
Caster that accumulates key-value pairs from 'key:value' or 'key=value' strings. |
|
Convert a 'start:end' string into a slice object. |
|
Caster enforcing membership in a set of string literals with optional prefix matching |