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.72.2.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.72.2-cp38-abi3-win_amd64.whl (23.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.72.2-cp38-abi3-win32.whl (20.8 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.72.2-cp38-abi3-musllinux_1_2_x86_64.whl (29.1 MB view details)

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

py_rattler_build-0.72.2-cp38-abi3-musllinux_1_2_armv7l.whl (27.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.72.2-cp38-abi3-musllinux_1_2_aarch64.whl (28.3 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.72.2-cp38-abi3-manylinux_2_28_armv7l.whl (27.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.72.2-cp38-abi3-manylinux_2_28_aarch64.whl (28.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.72.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.3 MB view details)

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

py_rattler_build-0.72.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.72.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (48.2 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.72.2.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.72.2.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.72.2.tar.gz
Algorithm Hash digest
SHA256 c70f1a2bedafe0f59991de3360d8400227171caab2aa80bcc2e81e0474c246e8
MD5 f444c75854c6b903420b165c75bfb989
BLAKE2b-256 877db6228c45644aee046da543e97fb6f89f7d9aa505cfb428c57de75afa88d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2.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.72.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3db8596c6a47af4726eabe5bf0c46610c77fe940008dcc493f8ca3b895266fcf
MD5 444629ace9fc1211f829e4e2dabe179d
BLAKE2b-256 a4ee785b08d38b21404be7db05d51a3c21055e12358b1ed1a929c82a8a3b85e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 3123bd2e0950c4320607ec6385ad8a0d60f1efa63ec72679bf65631cf8a26c7f
MD5 3cebf9a57874e7df2476a48780400b00
BLAKE2b-256 8872074ce6f2bbcd68b6fd5d4f921a0a272c3f30b76acd8ac0e865352799ab79

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 83a41bf1b61be2876128343eccc49a3626ae4b134dcde345afc73342ea6f0497
MD5 0ee990cb00e89ef0ef311dfa7954769e
BLAKE2b-256 9786e69f69c3ff496742de7b610b5d3813a1f5bffc5396a9b8bd978b9136248b

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 33f65f811be4a7e08096ece9c4070c62341a9e42762da329bd20f64e2f34ef4d
MD5 2ea99733c047c44ef09b78f275e3cca5
BLAKE2b-256 e7815231081d033ce3bdd0df94525348115b8a212ac7c8c7f57e35ebc70cfa93

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3bf6bba4dd9d9bac08a9f61c8d95082c7ec52567ddc097f29a59f51f6a3c06bf
MD5 9ec90cf9cae0a2087771c43a628a4150
BLAKE2b-256 f9028128e474516fd6568cff6cbd9285ef8fc9cfe119aa33f4ddffc72260658a

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-manylinux_2_28_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 e2c23779372c1769d4df9abac1d26fe07030d8e1b20dca23837909ae80ec7ed7
MD5 8e688cd544a4aca4df26f2dcaecd35ce
BLAKE2b-256 62abd500861b784ee54c5e5e8f2b4aec3c316011027b4b2363160945e8c1e08d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b4f145b9bd9fd186314f30a283c17b5957a9525d2d741b7e89d4bdb39b94b819
MD5 18c10dfaf1242bd086db4b0ba35781d9
BLAKE2b-256 a4f9e90c93409f79fa1dbd7d0af93412a7c64c5222dd860699f20fc00d9eb17f

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d343eadd087f64fb9f0ebb8b5fda15a312697c5fc8bb6b10203c76b7e78793f7
MD5 8c81e6866a704a13a2b5c04d0e1683e0
BLAKE2b-256 52a6cfb8edcf537dacafe4a2d39e5107eacac57b3257858e1bcb0a381aab9439

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.72.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b1df2b99db7ae97e86ea8b1cee6e7f5eb854be2f608adffbef8d64d28d795663
MD5 c675cc50fad8c6fe153f1f42d556fe14
BLAKE2b-256 932e5765ed2b8f0e14c5b76b508eda9e0b2175b8fe6c5a5f6945882ba46cefc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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.72.2-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.72.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 c65f88cb134d9e19ff941fbdbf1669810f195e6eb6785101d0fa4a524e420342
MD5 e2debebb9f64b2749ac7c529662d4d43
BLAKE2b-256 244eca62e953f28cc1db914c471e45c3ea2bd37e2c8a39a24f4b3dcad13c81a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.2-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

This release

0.72.2 This release

11 files

0.72.1

11 files

0.72.0

11 files

0.71.0

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