pixi¶
A Dagger module for Pixi Python projects.
API reference
This site is a tutorial. The generated SDK reference is published on the Daggerverse.
Upstream inspiration
This module is heavily inspired by the
uv module in
typesafe-ai/daggerverse, adapted
from uv-managed Python workspaces to Pixi-managed workspaces.
The module keeps Pixi itself as the authority for dependency installation. It installs named Pixi environments in Dagger containers, runs commands through Pixi, and builds runtime images without the Pixi binary.
Installation¶
Quickstart¶
Pass --path only when the source tree contains more than one Pixi workspace.
API Shape¶
Pixiholds the source tree and exposes the default workspace at..PixiWorkspaceSourcerepresents a nested workspace rooted at apixi.lock.installcreates a Pixi-based container with one named environment installed.install_environmentsinstalls selected environments into the same Pixi-based container.runtimeandruntime_environmentscopy installed Pixi environments into a runtime image without the Pixi binary.runtime_source_pathslimits runtime images to the source paths a target needs.runexecutes a command through Pixi in a named environment.
Pixi features are not installed directly. Define environments from features in
pyproject.toml or pixi.toml, then pass those environment names to the module.
Where to go next¶
- Building containers - install and run Pixi environments in Dagger containers.
- Environments and features - map Pixi features to installable environments.
- SDK reference