Skip to main content

The fastest way to build conda packages programatically

Project description

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.

Project details


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.67.0.tar.gz (1.7 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.67.0-cp38-abi3-win_amd64.whl (22.9 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.67.0-cp38-abi3-win32.whl (20.2 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.67.0-cp38-abi3-musllinux_1_2_x86_64.whl (27.6 MB view details)

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

py_rattler_build-0.67.0-cp38-abi3-musllinux_1_2_armv7l.whl (26.1 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.67.0-cp38-abi3-musllinux_1_2_aarch64.whl (26.9 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.67.0-cp38-abi3-manylinux_2_28_armv7l.whl (26.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.67.0-cp38-abi3-manylinux_2_28_aarch64.whl (26.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.67.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.0 MB view details)

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

py_rattler_build-0.67.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.67.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (48.4 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.67.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.67.0.tar.gz
  • Upload date:
  • Size: 1.7 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.67.0.tar.gz
Algorithm Hash digest
SHA256 a18f177205bb824925ca2cd8f3fb10126f78c4da5b7f9954db52fbda47026ff3
MD5 5de6c7d3ccd9ddcb8e963d0095e65ab8
BLAKE2b-256 2777834e940986393ceb2886d507dc5a36b1a9e6c2bd8453060a2ef4c2d14db5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fe08da2fc5464d9e299b007199112c7bb4bea1229931a77a88defe0dfbc01cff
MD5 e56f01ca9ae453c0468d051fdb3fca53
BLAKE2b-256 00accb03e0b44ef474ef8b293ffaa9632fe9dc73a3962dac32d7f49403ab393e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 33bc32f9999c66212e79d6b7dbdf2d35988953659b38459881fe3d22c3bdc110
MD5 8b55e13bdc6df1c3f932bdd231b6848a
BLAKE2b-256 351a6c02a1f7f5d4d06ec8c265bc75d07f41c39adca56357e74fa1aa273da78b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5a45cbe7c210d6c3e54cdf47259c4f5d479256bfd30f1eed8430f9c251e63262
MD5 359747cf225a646aa50c0704c48607a6
BLAKE2b-256 7860816c5dbfc8ef76b4b9c8d55cb56c714155a778a555d894d2cf526ff4c83f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 4ff3b38be419b10fa846c246670aca1448577c0cdd6208171b464cf2254fbe88
MD5 07c59054a7c4cb1c62abf4c3f99f9518
BLAKE2b-256 c91f0f97fec0fa02c4b6251a007aae337aea3e8332ac25368e885f8587efca4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8e7be4c0d828279ac914bc81fdb68d3614d3889caa8f529586e1c907bd8970c6
MD5 88ecb002a95141d9380f1cb4714002df
BLAKE2b-256 27277fb38e1157ad376410bd61b9caac8d42cc7053a943933ec046cc7e6de016

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 fcdbf4788e295989d6b368173c6899eca29a5ca7bca900995f677bd8fa5c0445
MD5 18e2809ce2ab9c78bb99f2d111c5278f
BLAKE2b-256 3d821f94fa769151b5c3be6a4db997bb42514036c5576cfd41806fb20009c9bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6abf591abd3ace3b395d78ac1a6cc409a412e880d2ef96c94d682866b43c2cad
MD5 e2b3e7993e03119bdc9f56dc5afaeca7
BLAKE2b-256 c4421f8d7178646de14e3bebcdba0251dba1e6d8f67c147da786b6ab38ca5702

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53f3143b35da51685744f38b41d0de86b0fa9d48f187698561ef20748cb70950
MD5 24239b90d3bbca9c7bd52b3544e243e4
BLAKE2b-256 4d37daf5a4bf80c5df1f46d3dee4bb315d06a682e7f71a7f1ec4541170d8be4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.67.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c4e31f1efed3ead2eea709ce9182e500197b9e36edf5dc01ba90fe571d6568af
MD5 6396b6c7cd2a967d78b40302da84e2e3
BLAKE2b-256 4148f70279e83da8ec2f171e5f4d9298cfd61020d98901b17259fcfceb102ded

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.67.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.67.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.67.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 61de981d2914fffc3fa976fde622366f37b4824d324a16d1566e03322b9253bb
MD5 2a2a00a02333eb4fa37567fe2100c891
BLAKE2b-256 b13ea3374b449a496aa101444cd72d054165e42f2a0269b8e926883329377b19

See more details on using hashes here.

Provenance

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page