piel.cli#

Subpackages#

Submodules#

Package Contents#

Functions#

get_python_install_directory()

Gets the piel installation directory.

main([args])

CLI Interface for piel There are available many helper commands to help you set up your

get_piel_install_directory()

Gets the piel installation directory.

return_path(→ pathlib.Path)

Returns a pathlib.Path to be able to perform operations accordingly internally.

echo_and_check_subprocess(command, **kwargs)

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

get_python_install_directory()

Gets the piel installation directory.

main([args])

CLI Interface for piel There are available many helper commands to help you set up your

develop()

Development related commands.

build_documentation([args])

Verifies and builds the documentation.

generate_poetry2nix_flake([args])

Generates the poetry2nix flakes file. Requires nix to be installed.

build_piel_cachix_command([args])

Enters the custom piel nix environment with all the supported tools installed and configured packages.

main([args])

CLI Interface for piel There are available many helper commands to help you set up your

append_to_bashrc_if_does_not_exist(line)

Appends a line to .bashrc if it does not exist.

echo_and_run_subprocess(command, **kwargs)

Runs a subprocess and prints the command.

echo_and_check_subprocess(command, **kwargs)

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

get_python_install_directory()

Gets the piel installation directory.

get_piel_home_directory()

Gets the piel home directory.

install_nix()

Installs the nix package manager.

install_openlane([openlane2_directory])

CLI that installs both the openlane2 python interface and the OpenROAD binaries.

activate_openlane_nix([openlane2_directory])

CLI that installs both the openlane2 python interface and the OpenROAD binaries.

activate_piel_nix([openlane2_directory])

Enters the custom piel nix environment with all the supported tools installed and configured packages.

create_and_activate_venv(→ None)

Creates and activates the piel virtual environment.

Attributes#

default_openlane2_directory

get_python_install_directory()[source]#

Gets the piel installation directory.

Returns:

The piel installation directory.

Return type:

pathlib.Path

main(args=None)#

CLI Interface for piel There are available many helper commands to help you set up your environment and design your projects.

get_piel_install_directory()#

Gets the piel installation directory.

return_path(input_path: piel.types.piel_path_types, as_piel_module: bool = False) pathlib.Path[source]#

Returns a pathlib.Path to be able to perform operations accordingly internally.

This allows us to maintain compatibility between POSIX and Windows systems. When the as_piel_module flag is enabled, it will analyse whether the input path can be treated as a piel module, and treat the returned path as a module would be treated. This comes useful when analysing data generated in this particular structure accordingly.

Usage:

return_path(‘path/to/file’)

Parameters:

input_path (str) – Input path.

Returns:

Pathlib path.

Return type:

pathlib.Path

echo_and_check_subprocess(command: list, **kwargs)[source]#

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

Parameters:
  • command

  • **kwargs

Returns:

get_python_install_directory()[source]#

Gets the piel installation directory.

Returns:

The piel installation directory.

Return type:

pathlib.Path

main(args=None)#

CLI Interface for piel There are available many helper commands to help you set up your environment and design your projects.

develop()#

Development related commands.

build_documentation(args=None)#

Verifies and builds the documentation.

generate_poetry2nix_flake(args=None)#

Generates the poetry2nix flakes file. Requires nix to be installed.

Returns:

build_piel_cachix_command(args=None)#

Enters the custom piel nix environment with all the supported tools installed and configured packages. Runs the nix-shell command on the piel/environment/nix/ directory.

main(args=None)#

CLI Interface for piel There are available many helper commands to help you set up your environment and design your projects.

append_to_bashrc_if_does_not_exist(line: str)[source]#

Appends a line to .bashrc if it does not exist.

Parameters:

line

Returns:

default_openlane2_directory#
echo_and_run_subprocess(command: list, **kwargs)[source]#

Runs a subprocess and prints the command.

Parameters:
  • command

  • **kwargs

Returns:

echo_and_check_subprocess(command: list, **kwargs)[source]#

Runs a subprocess and prints the command. Raises an exception if the subprocess fails.

Parameters:
  • command

  • **kwargs

Returns:

get_python_install_directory()[source]#

Gets the piel installation directory.

Returns:

The piel installation directory.

Return type:

pathlib.Path

get_piel_home_directory()[source]#

Gets the piel home directory.

Returns:

The piel home directory.

Return type:

pathlib.Path

install_nix()#

Installs the nix package manager.

install_openlane(openlane2_directory: pathlib.Path = default_openlane2_directory)#

CLI that installs both the openlane2 python interface and the OpenROAD binaries.

activate_openlane_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)#

CLI that installs both the openlane2 python interface and the OpenROAD binaries.

activate_piel_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)#

Enters the custom piel nix environment with all the supported tools installed and configured packages. Runs the nix-shell command on the piel/environment/nix/ directory.

create_and_activate_venv() None[source]#

Creates and activates the piel virtual environment.

Returns:

None.

Return type:

None