🕊️ Radically lightweight command-line interfaces
MIT License
Bot releases are hidden (Show)
Published by ines over 1 year ago
--no-
prefix in auto-generated docs for boolean args with True
default.Published by ines over 1 year ago
True
defaults, e.g. --foo
and --no-foo
.Published by ines over 1 year ago
Radicli.document
to auto-generate Markdown docs.Published by ines over 1 year ago
has_converter
for enums for nicer display_type
.Published by ines over 1 year ago
fill_defaults=False
option to not fill in defaults in Radicli.parse
and Radicli.run
.Published by ines over 1 year ago
Radicli.call
to call single commands.Published by ines over 1 year ago
stringify_type
to handle complex types.Published by ines over 1 year ago
format_type
works identical across Python versions.format_type
.Published by ines over 1 year ago
UUID
, Union[str, UUID]
and utility for list conversion.Published by ines over 1 year ago
allow_partial
on Radicli.parse
.converters
argument on StaticRadicli
and from_static_json
methods to support deserialization of custom types.Published by ines over 1 year ago
Radicli.handle_errors
context manager that can be used separately, e.g. if parse
and command function are called manually.Published by ines over 1 year ago
Radicli.parse
take Command
objects instead of ArgparseArg
s and additional keyword arguments.Published by ines over 1 year ago
Command.from_function
classmethod.Published by ines over 1 year ago
None
or False
.Published by ines over 1 year ago
StaticRadicli
to load static CLI from JSON representation for faster --help
and errors.Radicli.to_static
and Radicli.to_static_json
to generate static JSON data.Published by ines over 1 year ago
--version
for top-level in multi-command setup.Command.is_placeholder
.ErrorHandlersType
.__all__
export.Published by ines over 1 year ago
Published by ines over 1 year ago
ArgparseArg.display_type
for easier type display in custom help.Published by ines over 1 year ago
version
argument, which is automatically added as --version
.