A little library for the NWSh development
Project description
NWShDev
This package provides a set of tools to facilitate the development of the NWSh shell.
API Documentation
NWSh.arguments
Provides a set of functions to ask for arguments.
NWSh.arguments.Arguments
A class to ask for arguments.
NWSh.arguments.Arguments.ask_argument(name, description, type)
Asks for arguments, with a name, a description and a type.
Note: The type can bestring
,int
,float
. Conversion is done automatically.
NWSh.arguments.Arguments.get_argument(name)
Returns the value of the argument with the given name. If the argument is not found, returns
None
and prints an error message.
NWSh.commands
Provides a set of functions to create commands.
NWSh.commands.register_command_subsystem(subsystem, command, func)
Registers a command in a subsystem. Arguments are not supported yet
NWSh.commands.register_command_system(system, command, func)
Same as
NWSh.commands.register_command_subsystem
, but for theSystem
class.
NWSh.printing
Provides a set of functions to print messages.
NWSh.printing.print_error(subsystem, message)
Prints an error message.
NWSh.printing.print_info(subsystem, message)
Prints an info message.
NWSh.printing.print_warning(subsystem, message)
Prints a warning message.
NWSh.printing.print_result(subsystem, message)
Prints a result message.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.