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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.72.0-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.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.72.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.72.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.72.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.72.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.2 MB view details)

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

py_rattler_build-0.72.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.72.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (48.1 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.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.72.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.72.0.tar.gz
Algorithm Hash digest
SHA256 9d002a86dec43bd957c2cda222f6c58c66d7920e51b7d39365ff3b1cb502232a
MD5 fc644ecb32aa82bc1602b56d35acadf3
BLAKE2b-256 17ce7df06783b36b83d02bdcb154fac4501b5822b56c7a16e224cb629b803da4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a89285b2b17142e7877ed7b06ddd956e2acb667ddae198df8d4415bccb26097a
MD5 4c859da8e22e248e5c1197b28dbeac61
BLAKE2b-256 f217adb997fe491ff1a387a9b4fa417d11cc34ba37b46a167a8001ee412f0cc9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 0a74db465bbf095213a715b002a1f55f64568e6ba9d0bdc348c528d501d05896
MD5 68f752f3f64e23fa05f15d94f7d5a572
BLAKE2b-256 d1847f7ce79dac815054fedd350d6b49bbdc51152c37ec8304579107133572b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8d3daaaae3e349adfaea37105a2e7e608cb1d7f2266bb108caa5006343d8631b
MD5 22b465d79e0a6d9ba21c43ef5b57f8ea
BLAKE2b-256 684feeeff3075690ffd3da443527da86ad063f1c714052344401630e93b185e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 c5bcebb9182b0bb1c402222e439e9b2b4a7da05e01bde3ebaae22f3e1330dec8
MD5 8ff32035e0db4735db91ce872ac6d847
BLAKE2b-256 33269d0910eab80897ebff6a67ab31548ecfeb7211341dfbec65554344a7d0f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d8f75bd4c2a423eed7da4c02eca45d3fd34bd0693dcbcf1d17225cf1166755df
MD5 2839b1fc8c1d2a48d530b67021c0eebf
BLAKE2b-256 a4ee34bad13f0a4296ce19b5f0eadd9e31f810d6070d86c7bb25b85ea2503e96

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 90ff04789f1c6c45b88f3e3d102631289a3bd720484422a081f2c5e6eeaede6d
MD5 04fb0562baeff1acc82330becaae198e
BLAKE2b-256 00f37c3eeeb64cee87ec305153c1dd5a6c466954d35772ccc869f55fa862361d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3fe45a1d114ec75d260857029f255dad9ec6c82f2df43c35e82b58534b6efee3
MD5 8038aa6789b34857cca92ebc6fa578e5
BLAKE2b-256 4c19cc21c5317bdace64157a3f0920f78d6584e285f0de2014e72df91d52689e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4e480488d142c9e0058b5e895f46118952237bd0c985b6efb8f5ee0555c8fead
MD5 036dc875c054e5b5f27127d6a7a0467f
BLAKE2b-256 8fe26e1102790909be34e83e73caff7be66b30c48244f6907052049f4157d482

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 09c11ba9cfab7e8890c0b9c551a6686ab52451187c7b33bf9ae8186f6f6bb674
MD5 b34274a94131de3c288a2bec2b169a02
BLAKE2b-256 71ce5921f6f543fe64db12bde6c6054a51f1d0bf050a127c079c59c2a978f42d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.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.72.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.72.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 472c905d5633e60efcaadfc003ade99feac388ad7eed57c3e9ed4d859eb23d67
MD5 fb6bf5488942ff8fa53fbbb9318f4e33
BLAKE2b-256 5431658298ae1c8ba9b503346a667ab62e08a918bc3754f34a985f9708bd3c1e

See more details on using hashes here.

Provenance

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

This release

0.72.0 This release

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