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.
Source Distribution
File details
Details for the file NWSh-0.1.3.tar.gz
.
File metadata
- Download URL: NWSh-0.1.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a70a9498ddbd7ec7065a4d88c4cfe1af2bb4d32622b7ff80f24d4f36c2c26451 |
|
MD5 | 06dab6d81e30290eb1851e45d026573f |
|
BLAKE2b-256 | c98325a389bb94b2feff955b56f8fef767af1e0ffc294f7c4f5e69c2a0c2b709 |