@imp/rules/python

Module: @imp/rules/python.

default_pex_toolchain_version

Documentation is not yet available for this implementation export.

Source: rules/python/pex_toolchain.luau:174.

default_python_runtime_version()

Documentation is not yet available for this implementation export.

Source: rules/python/runtime.luau:11.

default_uv_toolchain_version

Documentation is not yet available for this implementation export.

Source: rules/python/uv_toolchain.luau:170.

pex_bin(exec, tool)

Return the absolute executable path inside a task with tool as an input.

Source: rules/python/pex_toolchain.luau:135.

pex_graph_tool(version)

Return { tool, cache_tool, version } for a declared or default version. Declare both handles as task inputs before an action uses the cache.

Source: rules/python/pex_toolchain.luau:126.

pex_toolchain(version, options)

Declare pex version. Options: default, lockfile, and unverified. Return version metadata and a GEN_LOCKFILES root. The default lockfile ships with Imp; use an @workspace/ address for a workspace-owned lock.

Source: rules/python/pex_toolchain.luau:108.

python_app(options)

Declare a PEX app. Options: project, base, sources, entry_point, python_version, uv_version, pex_version, extra_pex_args, and deps. Return sources, python_sources, root, BUILD, PACKAGE, and RUN.

Source: rules/python/graph.luau:67.

python_project(options)

Declare a member project. Options: workspace and path (the BUILD package).

Source: rules/python/project.luau:18.

python_runtime(value)

Set the default CPython version. Existing declarations keep their version.

Source: rules/python/runtime.luau:4.

python_sources(options)

Declare shallow script run roots. Options: root, sources ({ "*.py" }), project (inferred), and deps. Recursive patterns are not accepted.

Source: rules/python/source.luau:55.

python_test(options)

Declare pytest units. Options: project, base, sources, test_args, python_version, uv_version, and deps. Return root and TEST.

Source: rules/python/graph.luau:152.

python_workspace(options)

Declare a uv workspace. Options: path, uv_version, and python_version. Return workspace identity and a GEN_LOCKFILES root.

Source: rules/python/workspace.luau:9.

register_python_app_hook(hook)

Documentation is not yet available for this implementation export.

Source: rules/python/graph.luau:233.

register_python_test_hook(hook)

Documentation is not yet available for this implementation export.

Source: rules/python/graph.luau:236.

resolve_pex_toolchain_version

Documentation is not yet available for this implementation export.

Source: rules/python/pex_toolchain.luau:175.

resolve_uv_toolchain_version

Documentation is not yet available for this implementation export.

Source: rules/python/uv_toolchain.luau:171.

uv_bin(exec, tool)

Return the absolute executable path inside a task with tool as an input.

Source: rules/python/uv_toolchain.luau:130.

uv_graph_tool(version)

Return { tool, cache_tool, version } for a declared or default version. Declare both handles as task inputs before an action uses the cache.

Source: rules/python/uv_toolchain.luau:121.

uv_toolchain(version, options)

Declare uv version. Options: default, lockfile, and unverified. Return version metadata and a GEN_LOCKFILES root. The default lockfile ships with Imp; use an @workspace/ address for a workspace-owned lock.

Source: rules/python/uv_toolchain.luau:103.