Skip to main content

py-rattler-build

Python bindings for Rattler-Build, the fast conda package builder.

py-rattler-build lets you build, inspect, test, and upload conda packages directly from Python — no subprocess calls needed.

Quick start

Build a package from a recipe

from rattler_build import Stage0Recipe, VariantConfig

recipe = Stage0Recipe.from_file("recipe.yaml")
results = recipe.run_build()

for result in results:
    print(f"Built {result.name} {result.version} in {result.build_time:.1f}s")
    for pkg in result.packages:
        print(f"  {pkg}")

Render and build with variants

from rattler_build import Stage0Recipe, VariantConfig

recipe = Stage0Recipe.from_file("recipe.yaml")
rendered_variants = recipe.render(VariantConfig())

for variant in rendered_variants:
    result = variant.run_build()

Inspect an already built package

from rattler_build import Package

pkg = Package.from_file("mypackage-1.0.0-py312h0_0.conda")
print(f"{pkg.name} {pkg.version} ({pkg.platform})")
print(f"Dependencies: {pkg.depends}")
print(f"Files: {len(pkg.files)}")

Test a package

from rattler_build import Package

pkg = Package.from_file("mypackage-1.0.0-py312h0_0.conda")
results = pkg.run_tests()

Generate a recipe from PyPI

from rattler_build import generate_pypi_recipe

recipe_yaml = generate_pypi_recipe("requests", version="2.31.0")
print(recipe_yaml)

Build with progress reporting

from rattler_build import Stage0Recipe, VariantConfig
from rattler_build.progress import RichProgressCallback

recipe = Stage0Recipe.from_file("recipe.yaml")
rendered_variants = recipe.render(VariantConfig())

for variant in rendered_variants:
    with RichProgressCallback(show_logs=True) as callback:
        result = variant.run_build(progress_callback=callback)

Documentation

For the full reference, check out our website.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_rattler_build-0.71.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

py_rattler_build-0.71.0-cp38-abi3-win_amd64.whl (23.1 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.71.0-cp38-abi3-win32.whl (20.7 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_x86_64.whl (29.0 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_armv7l.whl (27.7 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_aarch64.whl (28.2 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_armv7l.whl (27.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_aarch64.whl (28.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.71.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (48.0 MB view details)

Uploaded CPython 3.8+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file py_rattler_build-0.71.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.71.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for py_rattler_build-0.71.0.tar.gz
Algorithm Hash digest
SHA256 7141959db929886149509208f7b3f5bfe6701e3677ac732e5a3dcbb3dd7228e0
MD5 9bbd0f5f313747c184f9dfc6a763ce37
BLAKE2b-256 79d86994f6c1f12890340adcb0d56f3881c23325b006466806e229d23ed573c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0.tar.gz:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 888c6413963d03501b57495be1688234bfafb64a74dfa1a56344bfe7285adb8d
MD5 b833249e81b2a216e886c4a3915be958
BLAKE2b-256 9e8ea226f6129c235327a1b9454ad1e37a53ff8d7fca1794d0941e094c3f4a27

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-win_amd64.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 848c2ecbd14bfec598193178422dc9810e8dc908d89897453bfdc864c0020682
MD5 83ce79fcf15a8bcb97fc6bd6a4ea6be0
BLAKE2b-256 dd8c6832288e508807ec244dc3a1448424e2df60e5919f4171113bf24cc7b39d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-win32.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9608dd63b83f57880570dcc0ae5c8394dab13a9dcc6ea8a081af402b5b28c334
MD5 df996bc6d3cc8943174aa34babcd12c1
BLAKE2b-256 dcf70641af816fa1bd7ffcea80e043efc3ab30c112971b4cdf688786a2e490f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_x86_64.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 ce4b69c38d3ea3ccf22914b9dd9aefda4a03398ccd873edf73ff47f0f268aae4
MD5 ef1e14d6a30ed12d55f79392d1dead9d
BLAKE2b-256 2ec8ff8e35246123cf72247c4c9e8f852ea33b60dba7abec1d245724682ab880

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_armv7l.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 aba53e6d4b5f90a98258ffa55bdd172e0118e8a228c41a244f6ba963da6adf04
MD5 8871e868f07d3ddcf37d93cef3f43ca4
BLAKE2b-256 d24514e8fe8ca222b0a12a3f5987416e2617a2651f5973867d2e13308cb85370

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-musllinux_1_2_aarch64.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 e1900c93aa076657da3ab67eadeb3b9c93cde816bc1b72c5e4234f6c7e4bf58d
MD5 c5723da01570c634bbe5dd8e1de0ba18
BLAKE2b-256 fcd27e8bdf2ea10c530a6d0ba2892148e6c37617a4cbc29eabe7cc5a70f1da95

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_armv7l.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 21f1dd7fd6dc63c2101479ccd22a0e57a940f46eff06ca4d8f4d880fd43dab04
MD5 84bcd8be28c5691eb044a90a3b835048
BLAKE2b-256 f1d465022e33831dc63c15fc4d76aabaaedbf9178c5eade8c9fe4bcf2258080a

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_28_aarch64.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a290027f5ebe5720c5a4f2456afe71677067e96bfa6ec297a2f3ef9e9c752e7c
MD5 6d119806bee4f09bf112a92fc7188109
BLAKE2b-256 77d813f38a29841cdcee10f87e532393c956168c9343519fdbae59da39e96985

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ffdf39d73f3f6380ed4ed18297d549df27997bf7e416ff53163d611419c26a08
MD5 7264f126456d5864039bba599263c207
BLAKE2b-256 95d6af9dc607a7dc12bb23d65e3ef026f69679eb2c0f1cad630ec7e371acc1a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_rattler_build-0.71.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.71.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4f8bb5c127180c7986c664a7cd33ce1c7a0d891a845d38d814b277e4551f79bd
MD5 349b3fa117c61c49268185fffcfc099a
BLAKE2b-256 1c5a617d57d9281c329a183ffc31eb598966f96f825f8001143cdb68158bbc7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.71.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release-artifacts.yml on prefix-dev/rattler-build

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.73.0

11 files

0.72.2

11 files

0.72.1

11 files

0.72.0

11 files

This release

0.71.0 This release

11 files

0.70.1

11 files

0.70.0

11 files

0.69.1

11 files

0.69.0

11 files

0.68.0

11 files

0.67.0

11 files

0.66.2

11 files

0.66.1

11 files

0.66.0

11 files

0.65.1

11 files

0.65.0

11 files

0.64.1

11 files

0.64.0

11 files

0.63.1

11 files

0.63.0

11 files

0.62.2

11 files

0.62.1

11 files

0.62.0

11 files

0.61.4

11 files

0.61.3

11 files

0.61.2

11 files

0.61.1

11 files

0.61.0

11 files

0.60.0

11 files

0.58.4

11 files

0.58.3

11 files

0.58.2

11 files

0.58.1

11 files

0.58.0

11 files

0.48.0

11 files

0.47.0

12 files

0.44.0

12 files

0.35.9

12 files

0.35.7

12 files

0.35.1

12 files

0.1.0

12 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page