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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.72.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.72.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d831455fb565bf4fa0c2abd25c755cb7547c62c54dcdf89f2df47e708a76106b
MD5 62f164e33632fcb46d637065aea3e532
BLAKE2b-256 6dc2b9082335c77f5e2f86cc7377e3398ae2ba9b33018db4b1264738318fe8e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0e3c9594e5455491577c45acb36c4369ba620d0e9965e724645157fa7502cd5e
MD5 b9dd53b965ec02fc967775cea1843424
BLAKE2b-256 bed78f17b28c05ed5e678289a3c7675fd5d715f980969e7bd9e96427d5e8cad2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 23331a3ca75d2237f354454640d99f1113a9146d30a64b674b013964328310bc
MD5 53b71db74f1b509e7f33296ecf252ac1
BLAKE2b-256 fb320320466d21f16c256ebb2230201f3a22cd2b3e040982aa024e4902e16490

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c62a41e21e40d1cd5b07dc3b6bba4a0842bc7282d7fa4e18de8da1b06aca2b2f
MD5 b237f0c600efeb7cda8cadcf8979080c
BLAKE2b-256 259d97ef0f0c5d70ec0771f047f8e23e5c4cfa6d27bbae45b75f46378d683f01

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 a3c7f30ec3f4b502eb9535a475a0963bcc4ce3065e9450447159ba49ce217674
MD5 c5df0e31a50334944649473eab841684
BLAKE2b-256 f5f3a3286c0efbcf9c63b6b042d800e05da80457d1d40132c261b334fbebef59

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f18416b41251dddbccd218fcabe6cc143726f440d6f935021ff938f8eb037e6d
MD5 1f8b2173ffe2af581749db790c0d25a7
BLAKE2b-256 35c292090cfbce9a95f8dcceb6193a5d0b440d64f55dae684922cc638bbdd11b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 ac6f2edd67f87ed862a4dbdbd5b6da9c426dbe812c5f1f0b39bfaa4c1e4ae162
MD5 d40dfc2c03710f99ea9000bcef49b805
BLAKE2b-256 57f837481568224634e8978c4f8e72581b0bec2f0a42b5e712eb971c4afa5c77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6f5ecd3b6b86b61821197ec43f5cdaae042753b6c6b8b4fe0a8c1a38707c74e3
MD5 d2e084d9e2640e5d106fe7d900347752
BLAKE2b-256 648b6f30a578e68360b1c73c97a79917cbad160737d5f6e5763fdcee55695e44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a28c6dd2917a648b67de896b3c8ec4bd5f6051d7a837ac0b5972f7537b1975f
MD5 8d517b4f30ffcc8b3bdbf5b7aa2836ac
BLAKE2b-256 b32f8a11748ef5e1307d33b31bd101ed5c449394450eb19cf68dd0415f9fbd63

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.72.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 79eda51e32023c618c0104eb01dc546f2f01bf244c561509a45f7db1b0467df1
MD5 e19ab4d7055211542ce7995f95b3ddc1
BLAKE2b-256 0d1ed968b578d458fb1596ebe65465da814161b7197cafb5c07f4987abb976d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.72.1-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.1-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.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 b88f4608b1785741da88399595b0ad350ad8d0406cec1a18d3e3c72dce1144cc
MD5 b972aa070fa09a49df862bd8dea7205b
BLAKE2b-256 3321d6e22efba2c8edf1354127968c88645211e12339c167472bc08da3ec6b6a

See more details on using hashes here.

Provenance

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

This release

0.72.1 This release

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