pyclientutils API Documentation
cmd
Command line entry point
ClientUtilsCmd
Bases: BaseCmd
Command Line Interface
Source code in clientutils/cmd.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
getArgParser(description, version_msg)
get the argument parser
Source code in clientutils/cmd.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
handle_args(args)
Handle the parsed arguments
Source code in clientutils/cmd.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
Version
Version information
Source code in clientutils/cmd.py
13 14 15 16 17 18 19 20 | |
main(argv=None)
Main entry point.
Source code in clientutils/cmd.py
61 62 63 64 | |
webserver
Simple REST server for serving file icons
ClientUtilsServer
Serves static file icons via HTTP
Source code in clientutils/webserver.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
get_icons_directory()
Get the path to the icons directory.
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Absolute path to the icons directory |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If icons directory doesn't exist |
Source code in clientutils/webserver.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |
start()
Start the web server
Source code in clientutils/webserver.py
50 51 52 | |