lwe.core Package

lwe.core Submodules

lwe.core.config module

class lwe.core.config.Config(config_dir=None, data_dir=None, profile='default', config=None, args=None)[source]

Bases: object

property debug
get(keys=None, config=None)[source]
load_from_file(profile=None)[source]
make_profile_dir(base_dir, profile)[source]
property properties
set(keys, value, transform=True)[source]

lwe.core.constants module

lwe.core.doc_parser module

lwe.core.doc_parser.func_to_openai_tool_spec(name, func)[source]
lwe.core.doc_parser.merge_argument_attrs_from_doc(attrs, param_name, parsed_doc)[source]
lwe.core.doc_parser.parse_docstring(docstring: str) Dict[str, Dict[str, Any]][source]
lwe.core.doc_parser.parse_rst(text: str) document[source]
lwe.core.doc_parser.parse_type(type_str: str) Dict[str, Any][source]
lwe.core.doc_parser.type_mapping(dtype)[source]

Map a Python data type to a corresponding JSON type string.

Parameters

dtypetype

The Python data type to map (e.g., float, int, str).

Returns

str

The corresponding JSON type string (e.g., ‘number’, ‘integer’, ‘string’).

lwe.core.editor module

lwe.core.editor.discover_editor()[source]

Discovers and returns the appropriate editor command as a list of arguments.

Handles cases where the editor command includes arguments, including quoted arguments with spaces (e.g. ‘vim -c “set noswapfile”’).

Returns:

A list of command parts ready for subprocess execution

Return type:

list[str]

lwe.core.editor.file_editor(filepath)[source]

Opens the specified file in the system’s configured editor.

Parameters:

filepath (str) – Path to the file to edit

lwe.core.editor.get_environment_editor(default=None)[source]

Fetches the preferred editor from the environment variables.

This function checks the following environment variables in order to determine the user’s preferred editor:

  • LWE_EDITOR

  • VISUAL

  • EDITOR

Parameters:

default (str or None) – The default editor to return if no environment variable is set.

Returns:

The preferred editor as specified by environment variables or the default value.

Return type:

str or None

lwe.core.editor.pipe_editor(input_data='', suffix=None)[source]

Opens the system editor with optional input data and returns the edited content.

This function creates a temporary file with the provided input data, opens it in the system editor, waits for the user to make changes and close the editor, then reads and returns the modified content. The temporary file is deleted afterwards.

Parameters:
  • input_data (str) – Initial content to populate the editor with

  • suffix (str or None) – Optional file extension for the temporary file (e.g. ‘.txt’, ‘.md’)

Returns:

The edited content after the editor is closed

Return type:

str

lwe.core.error module

exception lwe.core.error.NoInputError[source]

Bases: Exception

lwe.core.tool module

class lwe.core.tool.Tool(config)[source]

Bases: object

get_config()[source]
set_filepath(filepath)[source]
set_name(name)[source]

lwe.core.tool_cache module

class lwe.core.tool_cache.ToolCache(config, tool_manager, customizations=None)[source]

Bases: object

Manage tools in a cache.

add(tool_name, raise_on_missing=True)[source]

Add a tool to the cache if valid.

add_customizations_tools()[source]
add_message_tools(messages)[source]

Add any tool calls in messages to cache.

lwe.core.tool_manager module

class lwe.core.tool_manager.ToolManager(config=None, additional_tools=None)[source]

Bases: object

Manage tools.

cleanup_tool_definition(tool)[source]

Remove items that are not needed in the tool definition.

dereference_tool_schema(schema, defs)[source]
get_langchain_tool(tool_name)[source]
get_langchain_tool_spec(tool_name)[source]
get_tool(tool_name)[source]
get_tool_config(tool_name)[source]
is_langchain_tool(tool_name)[source]
is_system_tool(filepath)[source]
load_tool(tool_name)[source]
load_tools()[source]
make_user_tool_dirs()[source]
run_langchain_tool(tool_name, input_data)[source]
run_tool(tool_name, input_data)[source]
setup_tool_instance(tool_name, tool_path)[source]

lwe.core.logger module

class lwe.core.logger.Logger(name, config=None)[source]

Bases: object

lwe.core.monkey_patch module

lwe.core.plugin module

class lwe.core.plugin.Plugin(config=None, cache_manager=None)[source]

Bases: PluginBase, ABC

abstract default_config()[source]
abstract setup()[source]
class lwe.core.plugin.PluginBase(config=None, cache_manager=None)[source]

Bases: object

property description
get_shell_completions(_base_shell_completions)[source]
incompatible_backends()[source]
make_llm(args=None)[source]
property plugin_cache_filename
property plugin_type
query_llm(messages)[source]
set_backend(backend)[source]
set_name(name)[source]
set_shell(shell)[source]
write_plugin_cache_file(data)[source]

lwe.core.plugin_manager module

class lwe.core.plugin_manager.PluginManager(config=None, backend=None, cache_manager=None, search_path=None, additional_plugins=None)[source]

Bases: object

get_default_plugin_paths()[source]
get_plugins()[source]
inject_plugin(plugin_name, plugin_class)[source]
load_package_plugins(plugin_list)[source]
load_plugin(plugin_name)[source]
load_plugins(plugin_list)[source]
merge_plugin_config(plugin_instance)[source]
reload_plugin(plugin_name)[source]
setup_plugin(plugin_name, plugin_instance)[source]

lwe.core.preset_manager module

class lwe.core.preset_manager.PresetManager(config=None, additional_presets=None)[source]

Bases: object

Manage presets.

delete_preset(preset_name, preset_dir=None)[source]
ensure_preset(preset_name)[source]
is_system_preset(filepath)[source]
load_presets()[source]
load_test_preset()[source]
make_user_preset_dirs()[source]
parse_preset_dict(content)[source]
save_preset(preset_name, metadata, customizations, preset_dir=None)[source]
user_metadata_fields()[source]
lwe.core.preset_manager.parse_llm_dict(content)[source]

lwe.core.provider module

class lwe.core.provider.PresetValue(value_type, min_value=None, max_value=None, options=None, include_none=False, private=False)[source]

Bases: object

build_completions()[source]
cast(value)[source]
class lwe.core.provider.Provider(config=None, cache_manager=None)[source]

Bases: ProviderBase

abstract property capabilities
abstract customization_config()[source]
abstract property default_model
abstract llm_factory()[source]
class lwe.core.provider.ProviderBase(config=None, cache_manager=None)[source]

Bases: Plugin

property available_models
calculate_customization_value(orig_keys, new_value)[source]
cast_dict_value(value)[source]
convert_ai_dict_to_message(message: Mapping[str, Any]) AIMessage[source]

Convert an LWE message dictionary to a LangChain AIMessage.

This default implementation supports a format suitable for OpenAI. Other providers plugins may need to override this method depending on the structure of their AI messages.

convert_dict_to_message(message: Mapping[str, Any]) BaseMessage[source]

Convert an LWE message dictionary to a LangChain message.

customizations_to_completions()[source]
default_config()[source]
default_customizations(defaults=None)[source]
property display_name
get_capability(capability, default=False)[source]
get_customization_value(keys)[source]
get_customizations(customizations=None)[source]
get_model()[source]
invalid_model_message(model_name)[source]
load_models()[source]
make_llm(customizations=None, tools=None, tool_choice=None, use_defaults=False)[source]
max_submission_tokens()[source]
property model_property_name
property plugin_type
prepare_file_for_llm(file: dict)[source]
prepare_messages_for_llm(messages)[source]
prepare_messages_for_llm_chat(messages)[source]
prepare_messages_for_llm_last_message(messages)[source]
prepare_messages_for_llm_stuff_messages(messages)[source]
prepare_messages_method()[source]
set_customization_value(keys, new_value)[source]
set_customizations(customizations)[source]
set_model(model_name)[source]
set_value(keys, value)[source]
setup()[source]
property static_models
transform_openai_tool_spec_to_json_schema_spec(spec)[source]
transform_tools(tools)[source]
validate_model(model_name)[source]

lwe.core.provider_manager module

class lwe.core.provider_manager.ProviderManager(config, plugin_manager)[source]

Bases: object

full_name(name)[source]
get_provider_from_name(provider_name)[source]
get_provider_plugins()[source]
load_provider(provider_name: str)[source]

lwe.core.repl module

class lwe.core.repl.Repl(config=None)[source]

Bases: object

A shell interpreter that serves as a front end to the backend classes

action_plugin_reload(plugin_name)[source]
action_template_copy(*template_names)[source]

Copies an existing template and saves it as a new template.

Parameters:

template_names (tuple) – The names of the old and new templates.

Returns:

Success status, new file path, and user message.

Return type:

tuple

action_template_delete(template_name)[source]

Deletes an existing template.

Parameters:

template_name (str) – The name of the template to delete.

action_template_edit(template_name)[source]

Create a new template, or edit an existing template.

Parameters:

template_name (str) – The name of the template.

action_template_edit_run(template_name)[source]

Open a template for final editing, then run it.

Parameters:

template_name (str) – The name of the template.

action_template_prompt_edit_run(template_name)[source]

Prompts for a value for each variable in the template, sustitutes the values in the template, opens an editor for final edits, and sends the final content to the model as your input.

Parameters:

template_name (str) – The name of the template.

action_template_prompt_run(template_name)[source]

Prompt for template variable values, then run.

Parameters:

template_name (str) – The name of the template.

action_template_run(template_name)[source]

Run a template.

Parameters:

template_name (str) – The name of the template.

action_template_show(template_name)[source]

Display a template.

Parameters:

template_name (str) – The name of the template.

build_shell_user_prefix()[source]
catch_ctrl_c(signum, _frame)[source]
cleanup()[source]
cmdloop()[source]
collect_template_variable_values(template_name, variables=None)[source]
command_ask(input)[source]

Ask a question

It is purely optional.

Examples:

{COMMAND} what is 6+6 (is the same as ‘what is 6+6’)

command_chat(arg)[source]

Retrieve chat content

Arguments:

history_id: The history ID With no arguments, show content of the current conversation.

Examples:

Current conversation: {COMMAND} Older conversation: {COMMAND} 2

command_config(arg)[source]

Show or edit the current configuration

Examples:

Show all: {COMMAND} Edit config: {COMMAND} edit Show files config: {COMMAND} files Show profile config: {COMMAND} profile Show runtime config: {COMMAND} runtime Show section: {COMMAND} debug

command_copy(_)[source]

Copy last conversation message to clipboard

Examples:

{COMMAND}

command_delete(arg)[source]

Delete one or more conversations

Can delete by conversation ID, history ID, or current conversation.

Arguments:

history_id : The history ID

Arguments can be mixed and matched as in the examples below.

Examples:

Current conversation: {COMMAND} Delete one: {COMMAND} 3 Multiple IDs: {COMMAND} 1,5 Ranges: {COMMAND} 1-5 Complex: {COMMAND} 1,3-5

command_editor(args)[source]

Open an editor for entering a command

When the editor is closed, the content is sent.

Arguments:

default_text: The default text to open the editor with

Examples:

{COMMAND} {COMMAND} some text to start with

command_exit(_)[source]

Exit the shell

Examples:

{COMMAND}

command_file(arg)[source]

Send a prompt read from the named file

Arguments:

file_name: The name of the file to read from

Examples:

{COMMAND} myprompt.txt

command_history(arg)[source]

Show recent conversation history

Arguments;

limit: limit the number of messages to show (default {DEFAULT_HISTORY_LIMIT}) offset: offset the list of messages by this number

Examples:

{COMMAND} {COMMAND} 10 {COMMAND} 10 5

command_log(arg)[source]

Enable/disable logging to a file

Arguments:

file_name: The name of the file to write to

Examples:

Log to file: {COMMAND} mylog.txt Disable logging: {COMMAND}

command_model(arg)[source]

View or set attributes on the current LLM model

Arguments:

path: The attribute path to view or set value: The value to set the attribute to With no arguments, view current set model attributes

Examples:

{COMMAND} {COMMAND} temperature {COMMAND} temperature 1.1

command_new(_)[source]

Start a new conversation

Examples:

{COMMAND}

command_plugin(args)[source]

Perform operations on plugins.

Arguments:

action: The action to perform. One of: reload target: The target for the action.

Examples:

{COMMAND} reload echo {COMMAND} reload provider_chat_openai

command_plugins(arg)[source]

List installed plugins

Plugins are enabled by adding their name to the list of enabled plugins in the profile configuration.

Arguments:

filter_string: Optional. String to filter plugins by. Name and description are matched.

Examples:

{COMMAND} {COMMAND} shell

command_quit(_)[source]

Exit the shell

Examples:

{COMMAND}

command_read(_)[source]

Begin reading multi-line input

Allows for entering more complex multi-line input prior to sending it.

Examples:

{COMMAND}

command_stream(_)[source]

Toggle streaming mode

Streaming mode: streams the raw response (no markdown rendering) Non-streaming mode: Returns full response at completion (markdown rendering supported).

Examples:

{COMMAND}

command_switch(arg)[source]

Switch to chat

Arguments:

history_id: The history ID of the conversation

Examples:

{COMMAND} 2

command_template(args)[source]

Run actions on available templates

Templates are pre-configured text content that can be customized before sending a message to the model.

‘Running’ a template sends its content (after variable substitutions) to the model as your input.

Available actions:
  • copy: Copy a template

  • delete: Delete a template

  • edit: Open or create a template for editing

  • edit-run: Open the template in an editor, then run it on editor save and close.

  • prompt-edit-run: Collect values for template variables, then open in an editor, then run it on editor save and close

  • prompt-run: Collect values for template variables, then run it

  • run: Run a template

  • show: Show a template

Arguments:

template_name: Required. The name of the template.

For copy, a new template name is also required.

Examples:
  • /template copy mytemplate.md mytemplate_copy.md

  • /template delete mytemplate.md

  • /template edit mytemplate.md

  • /template edit-run mytemplate.md

  • /template prompt-edit-run mytemplate.md

  • /template prompt-run mytemplate.md

  • /template run mytemplate.md

  • /template show mytemplate.md

command_templates(arg)[source]

List available templates

Templates are pre-configured text content that can be customized before sending a message to the model.

They are located in the ‘templates’ directory in the following locations:

  • The main configuration directory

  • The profile configuration directory

See {COMMAND_LEADER}config for current locations.

Arguments:

filter_string: Optional. If provided, only templates with a name or description containing the filter string will be shown.

Examples:

{COMMAND} {COMMAND} filterstring

command_title(arg)[source]

Show or set title

Arguments:

title: title of the current conversation …or… history_id: history ID of conversation

Examples:

Get current conversation title: {COMMAND} Set current conversation title: {COMMAND} new title Set conversation title using history ID: {COMMAND} 1

configure_backend()[source]
configure_commands()[source]
configure_plugins()[source]
configure_shell_commands()[source]
default(input, request_overrides=None)[source]
dispatch_command_action(command, args)[source]
doc_header = 'Documented commands type /help [command without /] (e.g. /help ask) for detailed help'
edit_run_template(template_content, suffix='md')[source]
exec_prompt_pre(_command, _arg)[source]
get_command_action_method(command, action)[source]
get_command_actions(command, dashed=False)[source]
get_command_help(command)[source]
get_command_help_brief(command)[source]
get_command_method(command)[source]
get_custom_shell_completions()[source]
get_plugin_commands()[source]
get_plugin_shell_completions(completions)[source]
get_shell_history()[source]
get_shell_method(method_string)[source]
get_styles()[source]
help(command='')[source]
help_commands()[source]
initialize_repl(config=None)[source]
intro = 'Provide a prompt, or type /help or ? to list commands.'
launch_backend(interactive=True)[source]
logfile = None
message_map = {}
prompt = '> '
prompt_number = 0
prompt_prefix = ''
rebuild_completions()[source]
reload_repl()[source]
run_command(command, argument)[source]
run_command_get_response(command, argument)[source]
run_template(template_name, substitutions=None)[source]
set_base_shell_completions()[source]
set_user_prompt(user=None)[source]
setup()[source]
show_backend_config()[source]
show_files_config()[source]
show_full_config()[source]
show_profile_config()[source]
show_runtime_config()[source]
show_section_config(section, section_data)[source]
terminate_stream(_signal, _frame)[source]

lwe.core.template_manager module

class lwe.core.template_manager.TemplateManager(config=None)[source]

Bases: object

Manage templates.

build_message_from_template(template_name, substitutions=None)[source]

Build a message from a given template and substitutions.

Parameters:
  • template_name (str) – The name of the template to use.

  • substitutions (dict, optional) – The substitutions to apply to the template. Defaults to None.

Returns:

The rendered message and any overrides.

Return type:

tuple

copy_template(old_name, new_name)[source]

Copies a template file to a new location.

Parameters:
  • old_name (str) – The name of the existing template file.

  • new_name (str) – The name for the new template file.

Returns:

A tuple containing a boolean indicating success or failure, the new file path, and a status message.

Return type:

tuple

ensure_template(template_name)[source]

Checks if a template exists.

Parameters:

template_name (str) – The name of the template to check.

Returns:

A tuple containing a boolean indicating if the template exists, the template name, and a message.

Return type:

tuple

extract_metadata_keys(keys, metadata)[source]

Extracts specified keys from the metadata.

Parameters:
  • keys (list) – Keys to be extracted from the metadata.

  • metadata (dict) – The metadata from which keys are to be extracted.

Returns:

A tuple containing the updated metadata and the extracted keys.

Return type:

tuple

extract_template_run_overrides(metadata)[source]

Extracts template run overrides from metadata.

Parameters:

metadata (dict) – The metadata from which to extract overrides.

Returns:

A tuple containing the updated metadata and the extracted overrides.

Return type:

tuple

get_raw_template(template_name)[source]

Retrieve the raw source of a template by its name.

Parameters:

template_name (str) – The name of the template to retrieve.

Returns:

A tuple containing a boolean success flag, the raw template source as a string, and a user message.

Return type:

tuple

get_template_and_variables(template_name)[source]

Fetches a template and its variables.

Parameters:

template_name (str) – The name of the template to fetch

Returns:

The fetched template and its variables, or (None, None) if the template is not found

Return type:

tuple

get_template_editable_filepath(template_name)[source]

Get the editable file path for a given template.

Parameters:

template_name (str) – The name of the template

Returns:

A tuple containing a boolean indicating if the template is editable, the file path of the template, and a message

Return type:

tuple

get_template_source(template_name)[source]

Get the source of a specified template.

Parameters:

template_name (str) – The name of the template

Returns:

A tuple containing a boolean indicating success, the source of the template if successful, and a user message

Return type:

tuple

get_template_variables_substitutions(template_name)[source]

Get template variables and their substitutions.

Parameters:

template_name (str) – The name of the template

Returns:

A tuple containing a boolean indicating success, the template with its variables and substitutions, and a user message

Return type:

tuple

is_system_template(filepath)[source]

Check if a file is a system template.

Parameters:

filepath (str) – The path of the file to check

Returns:

True if the file is a system template, False otherwise

Return type:

bool

load_templates()[source]

Load templates from directories.

Returns:

None

make_temp_template(template_contents, suffix='md')[source]

Create a temporary template.

Parameters:
  • template_contents (str) – The contents to be written to the temporary template

  • suffix (str, optional) – The suffix for the temporary file, defaults to ‘md’

Returns:

The basename and the full path of the temporary template

Return type:

tuple

make_temp_template_dir()[source]

Create directory for temporary templates if it does not exist.

Returns:

None

make_user_template_dirs()[source]

Create directories for user templates if they do not exist.

Returns:

None

process_template_builtin_variables(template_name, variables=None)[source]

Process the built-in variables in a template.

Parameters:
  • template_name (str) – The name of the template

  • variables (list, optional) – The variables to be processed, defaults to None

Returns:

A dictionary of substitutions for the variables

Return type:

dict

remove_temp_template(template_name)[source]

Remove a temporary template.

Parameters:

template_name (str) – The name of the temporary template

Returns:

None

render_template(template_name)[source]

Render a template with variable substitutions.

Parameters:

template_name (str) – The name of the template to render

Returns:

A tuple containing a success flag, the rendered message or template name, and a user message

Return type:

tuple

template_builtin_variables()[source]

This method returns a dictionary of built-in variables.

Returns:

A dictionary where the key is the variable name and the value is the function associated with it.

Return type:

dict

template_can_delete(template_name)[source]

Checks if a template can be deleted.

Parameters:

template_name (str) – The name of the template to check

Returns:

A tuple containing a boolean indicating if the template can be deleted, the template name or filename, and a message

Return type:

tuple

template_delete(filename)[source]

Deletes a specified template file and reloads the templates.

Parameters:

filename (str) – The name of the file to be deleted.

Returns:

A tuple containing a boolean indicating success, the filename, and a message.

Return type:

tuple

lwe.core.token_manager module

class lwe.core.token_manager.TokenManager(config, provider, model_name, tool_cache)[source]

Bases: object

Manage model tokens.

default_get_num_tokens_from_messages(messages, encoding=None)[source]

Get number of tokens for a list of messages.

The default implementation uses tiktoken, which is the OpenAI implementation.

Parameters:
  • messages (list) – List of messages

  • encoding (Encoding, optional) – Encoding to use, defaults to None to auto-detect

Returns:

Number of tokens

Return type:

int

get_num_tokens_from_messages(messages, encoding=None)[source]

Get number of tokens for a list of messages.

If a provider does not have a get num_tokens_from_messages() method, default_get_num_tokens_from_messages() will be used.

Parameters:
  • messages (list) – List of messages

  • encoding (Encoding, optional) – Encoding to use, defaults to None to auto-detect

Returns:

Number of tokens

Return type:

int

get_token_encoding()[source]

Get token encoding for a model.

Raises:
  • NotImplementedError – If unsupported model

  • Exception – If error getting encoding

Returns:

Encoding object

Return type:

Encoding

lwe.core.util module

class lwe.core.util.NoneAttrs[source]

Bases: object

lwe.core.util.ansible_doc_to_markdown(module_name, full_doc=False)[source]
lwe.core.util.clean_directory(directory)[source]
lwe.core.util.command_with_leader(command)[source]
lwe.core.util.conversation_from_messages(messages)[source]
lwe.core.util.create_file(directory, filename, content=None)[source]
lwe.core.util.current_datetime()[source]
lwe.core.util.dash_to_underscore(text)[source]
lwe.core.util.dict_to_pretty_json(dict_obj)[source]
lwe.core.util.extract_preset_configuration_from_request_overrides(request_overrides, active_preset_name=None)[source]

Extracts preset configuration from the given request overrides.

Parameters:

request_overrides – The request overrides from which to extract preset configuration.

Returns:

A tuple containing a success indicator, preset/preset_overrides/activate_preset configuration, and a user message.

lwe.core.util.filepath_replacements(filepath, config)[source]
lwe.core.util.float_range_to_completions(min_val, max_val)[source]
lwe.core.util.get_ansible_module_doc(module_name)[source]
lwe.core.util.get_class_method(klass, command_command)[source]
lwe.core.util.get_environment_variable(name, default=None)[source]
lwe.core.util.get_environment_variable_list(name)[source]
lwe.core.util.get_file_directory()[source]
lwe.core.util.get_package_root(obj)[source]
lwe.core.util.get_preset_name(preset)[source]
lwe.core.util.introspect_command_actions(klass, command)[source]
lwe.core.util.introspect_commands(klass)[source]
lwe.core.util.is_valid_url(url)[source]
lwe.core.util.list_to_completion_hash(completion_list)[source]
lwe.core.util.list_to_markdown_list(list_obj, indent=2)[source]
lwe.core.util.merge_dicts(dict1, dict2)[source]
lwe.core.util.output_response(response)[source]
lwe.core.util.parse_conversation_ids(id_string)[source]
lwe.core.util.parse_shell_input(user_input)[source]
lwe.core.util.paste_from_clipboard()[source]
lwe.core.util.print_markdown(output, style=None)[source]
lwe.core.util.print_status_message(success, message, style=None)[source]
lwe.core.util.remove_and_create_dir(directory_path)[source]
lwe.core.util.remove_prefix(text, prefix)[source]
lwe.core.util.snake_to_class(string)[source]
lwe.core.util.split_on_delimiter(string, delimiter=',')[source]
lwe.core.util.transform_messages_to_chat_messages(messages)[source]

Transform messages to chat messages.

Parameters:

messages (list) – List of messages

Returns:

List of chat messages

Return type:

list

lwe.core.util.underscore_to_dash(text)[source]
lwe.core.util.validate_float(value, min=None, max=None)[source]
lwe.core.util.validate_int(value, min=None, max=None)[source]
lwe.core.util.validate_str(value, min=None, max=None)[source]
lwe.core.util.write_temp_file(input_data='', suffix=None, prefix=None, dir=None)[source]

lwe.core.workflow_manager module

class lwe.core.workflow_manager.WorkflowManager(config=None)[source]

Bases: object

Manage workflows.

copy_workflow(old_name, new_name)[source]

Copies a workflow file to a new location.

Parameters:
  • old_name (str) – The name of the existing workflow file.

  • new_name (str) – The name for the new workflow file.

Returns:

A tuple containing a boolean indicating success or failure, the new file path, and a status message.

Return type:

tuple

delete_workflow(workflow_name, workflow_dir=None)[source]
ensure_runnable_workflow(workflow_name)[source]
ensure_workflow(workflow_name)[source]
get_workflow_dir()[source]
get_workflow_environment_config()[source]
is_system_workflow(filepath)[source]
load_workflow(workflow_name)[source]
load_workflows()[source]
make_user_workflow_dirs()[source]
parse_workflow_args(args_string)[source]
run(workflow_name, workflow_args)[source]
set_workflow_environment()[source]

lwe.core Module contents