> ## Documentation Index
> Fetch the complete documentation index at: https://site.aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# @aspect_rules_py//py/unstable:defs.bzl

> Bazel rules_py preview API with py_venv and other unstable Python rules; APIs may change between releases until promoted to stable in rules_py.

<Callout icon="book">
  Documentation for [@aspect\_rules\_py@v1.8.4](https://registry.bazel.build/modules/aspect_rules_py/1.8.4) -- <Icon icon="github" iconType="brands" /> [View source](https://github.com/aspect-build/rules_py/blob/v1.8.4/py/unstable/defs.bzl)
</Callout>

Preview features.

Unstable rules and preview machinery.
No promises are made about compatibility across releases.

## Function: `py_venv`

### Parameters

<ParamField body="kwargs" type="string_list" />

## Function: `py_venv_link`

Build a Python virtual environment and produce a script to link it into the build directory.

### Parameters

<ParamField body="venv_name" type="name" default={`None`} />

<ParamField body="srcs" type="name" default={`[]`} />

<ParamField body="kwargs" type="string_list" />

## Function: `py_venv_binary`

### Parameters

<ParamField body="kwargs" type="string_list" />

## Function: `py_venv_test`

### Parameters

<ParamField body="kwargs" type="string_list" />
