Project Configuration

Table of Contents

1. Command Line Interfaces

CLI can be defined in pyproject.toml in [project.scripts] section, and can be executed with uv run. The LHS is the script name, and the RHS is a function of a module. If the module is nested in folders, we should follow Python convention to use dot . to represent folder hierarchy. Note that, RHS can only be Python modules.

The following example runs the main function of the example module (which is located in src/example/__init__.py:main)

[project.script]
example = "example:main"

# Can be run by
#       $ uv run example

Date: 2026-08-10 Mon

Author: ArcaLunar