origen.helpers#
Submodules#
origen.helpers.docorigen.helpers.envorigen.helpers.numorigen.helpers.regressions- Submodules
origen.helpers.regressions.cli- Submodules
origen.helpers.regressions.cli._origenorigen.helpers.regressions.cli.command- Classes
CmdCmd.extend()Cmd.full_nameCmd.gen_error()Cmd.get_help_msg()Cmd.get_help_msg_str()Cmd.global_demo()Cmd.is_app_cmdCmd.is_aux_cmdCmd.is_core_cmdCmd.is_pl_cmdCmd.num_argsCmd.num_optsCmd.replace_subcmds()Cmd.reserved_opt_ln_conflict_msg()Cmd.reserved_opt_lna_conflict_msg()Cmd.reserved_opt_sn_conflict_msg()Cmd.reserved_opt_sna_conflict_msg()Cmd.run()Cmd.update_subc()Cmd.visible_opts
CmdArgCmdArgOptCmdDemoCmdExtOptCmdOptSrcTypes
- Classes
origen.helpers.regressions.cli.help_msg- Classes
HelpMsgHelpMsg.assert_arg_at()HelpMsg.assert_args()HelpMsg.assert_bare_app_opts()HelpMsg.assert_bare_opts()HelpMsg.assert_cmd()HelpMsg.assert_ext_at()HelpMsg.assert_help_opt_at()HelpMsg.assert_help_subcmd_at()HelpMsg.assert_mode_opt_at()HelpMsg.assert_no_targets_opt_at()HelpMsg.assert_not_extendable()HelpMsg.assert_num_args()HelpMsg.assert_num_opts()HelpMsg.assert_opt_at()HelpMsg.assert_opts()HelpMsg.assert_subcmd_at()HelpMsg.assert_subcmds()HelpMsg.assert_summary()HelpMsg.assert_targets_opt_at()HelpMsg.assert_v_opt_at()HelpMsg.assert_vk_opt_at()HelpMsg.logged_errorsHelpMsg.not_extendable_msgHelpMsg.subcmd_names
- Classes
origen.helpers.regressions.cli.origen- Functions
- Classes
CoreCommandsCoreCommandsPropertiesCoreErrorMessagesCoreErrorMessages.cmd_building_err_prefix()CoreErrorMessages.conflict_msg()CoreErrorMessages.invalid_subc_msg()CoreErrorMessages.missing_arg_val_msg()CoreErrorMessages.missing_ln_val_msg()CoreErrorMessages.missing_required_arg()CoreErrorMessages.missing_sn_val_msg()CoreErrorMessages.reserved_opt_ln_conflict_msg()CoreErrorMessages.reserved_opt_lna_conflict_msg()CoreErrorMessages.reserved_opt_sn_conflict_msg()CoreErrorMessages.reserved_opt_sna_conflict_msg()CoreErrorMessages.too_many_args()CoreErrorMessages.unknown_arg_msg()CoreErrorMessages.unknown_opt_msg()
CoreOptsGlobalCommandsGlobalCommands.NamesGlobalCommands.Names.aux_cmdsGlobalCommands.Names.buildGlobalCommands.Names.credsGlobalCommands.Names.envGlobalCommands.Names.evalGlobalCommands.Names.execGlobalCommands.Names.fmtGlobalCommands.Names.iGlobalCommands.Names.newGlobalCommands.Names.plGlobalCommands.Names.plsGlobalCommands.Names.proj
GlobalCommands.aux_cmdsGlobalCommands.cmdsGlobalCommands.commandsGlobalCommands.credsGlobalCommands.envGlobalCommands.evalGlobalCommands.execGlobalCommands.iGlobalCommands.namesGlobalCommands.newGlobalCommands.origenGlobalCommands.plGlobalCommands.plsGlobalCommands.v
InAppCommandsInAppCommands.NamesInAppCommands.Names.appInAppCommands.Names.aux_cmdsInAppCommands.Names.credsInAppCommands.Names.envInAppCommands.Names.evalInAppCommands.Names.execInAppCommands.Names.generateInAppCommands.Names.iInAppCommands.Names.plInAppCommands.Names.plsInAppCommands.Names.save_refInAppCommands.Names.targetInAppCommands.Names.web
InAppCommands.appInAppCommands.aux_cmdsInAppCommands.cmdsInAppCommands.commandsInAppCommands.credsInAppCommands.envInAppCommands.evalInAppCommands.execInAppCommands.generateInAppCommands.iInAppCommands.in_app_optsInAppCommands.namesInAppCommands.origenInAppCommands.plInAppCommands.plsInAppCommands.save_refInAppCommands.standard_opts()InAppCommands.targetInAppCommands.vInAppCommands.web
InAppOpts
- Classes
CLICLI.CmdCLI.Cmd.extend()CLI.Cmd.full_nameCLI.Cmd.gen_error()CLI.Cmd.get_help_msg()CLI.Cmd.get_help_msg_str()CLI.Cmd.global_demo()CLI.Cmd.is_app_cmdCLI.Cmd.is_aux_cmdCLI.Cmd.is_core_cmdCLI.Cmd.is_pl_cmdCLI.Cmd.num_argsCLI.Cmd.num_optsCLI.Cmd.replace_subcmds()CLI.Cmd.reserved_opt_ln_conflict_msg()CLI.Cmd.reserved_opt_lna_conflict_msg()CLI.Cmd.reserved_opt_sn_conflict_msg()CLI.Cmd.reserved_opt_sna_conflict_msg()CLI.Cmd.run()CLI.Cmd.update_subc()CLI.Cmd.visible_opts
CLI.CmdArgCLI.CmdOptCLI.HelpMsgCLI.HelpMsg.assert_arg_at()CLI.HelpMsg.assert_args()CLI.HelpMsg.assert_bare_app_opts()CLI.HelpMsg.assert_bare_opts()CLI.HelpMsg.assert_cmd()CLI.HelpMsg.assert_ext_at()CLI.HelpMsg.assert_help_opt_at()CLI.HelpMsg.assert_help_subcmd_at()CLI.HelpMsg.assert_mode_opt_at()CLI.HelpMsg.assert_no_targets_opt_at()CLI.HelpMsg.assert_not_extendable()CLI.HelpMsg.assert_num_args()CLI.HelpMsg.assert_num_opts()CLI.HelpMsg.assert_opt_at()CLI.HelpMsg.assert_opts()CLI.HelpMsg.assert_subcmd_at()CLI.HelpMsg.assert_subcmds()CLI.HelpMsg.assert_summary()CLI.HelpMsg.assert_targets_opt_at()CLI.HelpMsg.assert_v_opt_at()CLI.HelpMsg.assert_vk_opt_at()CLI.HelpMsg.logged_errorsCLI.HelpMsg.not_extendable_msgCLI.HelpMsg.subcmd_names
CLI.app_sub_cmd()CLI.aux_cmd()CLI.aux_sub_cmd()CLI.cmdsCLI.common_namesCLI.core_optsCLI.err_msgsCLI.error_messagesCLI.eval()CLI.extract_logged_errors()CLI.gen_error()CLI.global_cmdsCLI.global_commandsCLI.global_core_cmdsCLI.global_core_commandsCLI.in_app_cmdsCLI.in_app_commandsCLI.in_app_core_cmdsCLI.in_app_core_commandsCLI.optsCLI.pl_cmd()CLI.pl_sub_cmd()CLI.run_cli_cmd()
CLIProperties
- Submodules
- Submodules
Functions#
calling_filename(): Undocumented.continue_on_exception(): Decorator to run a given function but catch any exceptions, output them to the logger, but continue onward.has_method(): Undocumented.mod_from_file(): Undocumented.try_method(): Undocumented.
- origen.helpers.calling_filename(frame=1)#
- origen.helpers.continue_on_exception(logger=None, *, method='error')#
Decorator to run a given function but catch any exceptions, output them to the logger, but continue onward. This should not be used in place of a ``finally`` block. This is only a helper for methods which may fail but which we don’t want to entirely stop execution.
Use sphinx-arg
-Wto turn these back into errorsThis will let system errors or process-killing exception (such as
SystemExit) through:See also
Examples * :func:origen.web.clean
- origen.helpers.has_method(obj, m)#
- origen.helpers.mod_from_file(path, name=None)#
- origen.helpers.try_method(obj, m, args)#