Skip to content

Reference#

Here's the reference documentation for the rattler_build Python bindings API.

If you want to learn how to use rattler-build's Python API, check out the Tutorials.

Version#

Get the version of rattler-build:

from rattler_build import rattler_build_version

print(rattler_build_version())

Get the version of the rattler-build package

Core API#

  • Recipe - Parse and work with conda recipes (Stage0Recipe, Stage1Recipe)
  • Rendering - Render recipes with variants (RenderedVariant, VariantConfig)
  • Package - Inspect packages and run tests (Package, PackageTest)
  • Build Result - Build output information (BuildResult)

Configuration#

  • Configuration - Build and platform settings (ToolConfiguration, PlatformConfig, JinjaConfig, RenderConfig)

Utilities#

  • Upload - Upload packages to various servers
  • Recipe Generation - Generate recipes from PyPI, CRAN, CPAN, LuaRocks
  • Progress - Progress callbacks for monitoring builds

Exceptions#

  • Exceptions - Error types raised by rattler-build