|
wloc 1.1.0
Simple Wi-Fi geolocation library and tool
|
Public Member Functions | |
| None | __init__ (self) |
| None | run (self) |
Private Member Functions | |
| None | __call_backend (self, str name) |
| None | __check_arguments (self) |
| None | __get_results (self) |
| None | __parse_arguments (self) |
| None | __parser_add_arguments (self) |
| None | __parser_create (self) |
| None | __set_backends (self) |
| None | __setlogger (self) |
Private Attributes | |
| __arguments = self.__parser.parse_args() | |
| __locator | |
| __logger = logging.getLogger(__name__) | |
| __parser = argparse.ArgumentParser() | |
| dict | __selector |
| None wloc.app.App.__init__ | ( | self | ) |
Main constructor of the App class.
|
private |
Directly calls one of the supported geolocation backend. :param name: Backend name.
|
private |
Checks if at least one of the optional command-line arguments present. :exception MissingArgumentError: No backends were selected.
|
private |
Calls enabled by user backends.
|
private |
Parses command-line arguments and provides a special object to work with.
|
private |
Adds new options to the command-line arguments parser.
|
private |
Creates an instance of the command-line arguments parser.
|
private |
Creates an instance of the WiFiLocator class and special switch surrogate.
|
private |
Configures logger for internal use.
| None wloc.app.App.run | ( | self | ) |
Run the application.
|
private |
|
private |