geoips.commandline package#
Submodules#
geoips.commandline.args module#
Command line script for kicking off geoips based procflows.
- geoips.commandline.args.add_args(parser, arglist=None)[source]#
List of available standard arguments for calling data processing command line.
- Parameters:
parser (ArgumentParser) – argparse ArgumentParser to add appropriate arguments
arglist (list, optional) – list of requested arguments to add to the ArgumentParser, default None. if None, include all arguments
- Return type:
No return values (parser modified in place)
- geoips.commandline.args.check_command_line_args(arglist, argdict)[source]#
Check formatting of command line arguments.
- Parameters:
arglist (list of str) – List of desired command line arguments to check within argdict for appropriate formatting
argdict (dict) – Dictionary of command line arguments
- Returns:
Return True if all arguments are of appropriate formatting.
- Return type:
bool
- Raises:
TypeError – Incorrect command line formatting
- geoips.commandline.args.get_command_line_args(arglist=None, description=None, add_args_func=None, check_args_func=None)[source]#
Parse command line arguments specified by the requested list of arguments.
- Parameters:
arglist (list, optional) – list of requested arguments to add to the ArgumentParser, default None. if None, include all arguments
description (str, optional) – String description of arguments, default None
add_args_func (function, optional) – Alternative “add_args” function, default None If None, use internal “add_args”
check_args_func (function, optional) – Alternative “check_args” function, default None If None, use internal “check_args”
- Returns:
Dictionary of command line arguments
- Return type:
dict
geoips.commandline.list_available_modules module#
Simple script to list available modules for each interface.
This includes both dev and stable interfaces. Note this will be deprecated with v2.0, replaced with a new class-based interface implementation.
geoips.commandline.log_setup module#
Geoips module for setting up logging handlers with a specified verbosity.
geoips.commandline.run_procflow module#
Command line script for kicking off geoips based procflows.
MUST call with –procflow.
- geoips.commandline.run_procflow.main(get_command_line_args_func=None)[source]#
Script to kick off processing based on command line args.
- Parameters:
get_command_line_args_func (function, optional) – Function to use in place of “get_command_line_args”, default None If None, use geoips.commandline.args.get_command_line_args
geoips.commandline.test_interfaces module#
Simple test script to run “test_<interface>_interface” for each interface.
This includes both dev and stable interfaces. Note this will be deprecated with v2.0 - replaced with a new class-based interface implementation.
geoips.commandline.update_tc_tracks_database module#
Command line script for updating the TC database.
Module contents#
geoips.commandline init file.