## Thought it looks better without the breadcrumbs bar, and kinda redunant since we have the sidebar nav
Origen v2
:

Table Of Contents

Contents

_origen

This is the top-level _origen module which can be imported by Python

Submodules

Functions

_origen.initialize()

Called automatically when Origen is first loaded

_origen.status()

Returns the Origen status which informs whether an app is present, the Origen version, etc.

_origen.version()

Returns the Origen version formatted into PEP440, e.g. “1.2.3.dev4”

_origen.config()

Returns the Origen configuration (as defined in origen.toml files)

_origen.app_config()

Returns the Origen application configuration (as defined in application.toml)

_origen.clean_mode(name)

Sanitizes the given mode string and returns it, but will exit the process if it is invalid

_origen.target_file(name, dir)

Sanitizes the given target/env name and returns the matching file, but will exit the process if it does not uniquely identify a single target/env file.

_origen.file_handler()

Returns a file handler object (iterable) for consuming the file arguments given to the CLI

_origen.test()

Prints out the AST for the current test to the console

_origen.test_ast()

Returns the AST for the current test in Python

_origen.flow()

Prints out the AST for the current flow to the console

_origen.flow_ast()

Returns the AST for the current flow in Python

_origen.output_directory()
_origen.website_output_directory()
_origen.website_source_directory()
_origen.on_windows()
_origen.on_linux()
_origen.prepare_for_target_load()

This will be called by Origen immediately before loading a fresh set of targets

_origen.start_new_test()

Clears the current test (pattern) AST and starts a new one

_origen.unhandled_error_count()

Returns the number of unhandled errors that have been encountered since the Origen invocation started. An unhandled error is something that ultimately resulted in a pattern not being generated or something equally serious.

_origen.set_output_dir()

Set the output directory to be used instead of <APP ROOT>/output

_origen.set_reference_dir()

Set the output directory to be used instead of <APP ROOT>/output

_origen.exit_pass()

Exit with a passing status code and print a big PASS to the console

_origen.exit_fail()

Exit with a failing status code and print a big FAIL to the console

_origen.enable_debug()

Enable Python source line tracking

_origen.set_operation()

Set the current Origen operation (generate, compile, etc.)