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.58.3.tar.gz (1.6 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.58.3-cp38-abi3-win_amd64.whl (21.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.58.3-cp38-abi3-win32.whl (18.9 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.58.3-cp38-abi3-musllinux_1_2_x86_64.whl (27.4 MB view details)

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

py_rattler_build-0.58.3-cp38-abi3-musllinux_1_2_armv7l.whl (25.7 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.58.3-cp38-abi3-musllinux_1_2_aarch64.whl (26.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.58.3-cp38-abi3-manylinux_2_28_armv7l.whl (25.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.58.3-cp38-abi3-manylinux_2_28_aarch64.whl (26.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.58.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.7 MB view details)

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

py_rattler_build-0.58.3-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (28.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.58.3-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (46.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.58.3.tar.gz.

File metadata

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

File hashes

Hashes for py_rattler_build-0.58.3.tar.gz
Algorithm Hash digest
SHA256 a2ed5690523ae0554332ee3356872dcf69f1bbefc0f4bf29c2ae45e226f004cc
MD5 fa21cfa6d26c77b8b1fbbb5c3a5e2694
BLAKE2b-256 65efa3bfa630ef745e07e3fe989ea234573984fc50c3481f448ba6706ac4099f

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d152ae9b5813754ff626df36005be2649007ab58adcf2fab4635b7924d07b307
MD5 9bf0d863eca6075a9f7d13fcafd8e581
BLAKE2b-256 275286d1e0965d37da539ca3936dfad136f533b9534ff6277ded31772291b5a5

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 c38dec1b449426868df9a238b86ca51e3b9dac5285a43f38b3ac55b7eff2519b
MD5 5bb749735503443ab925903aeec7a08f
BLAKE2b-256 34afaf4f93b098e1f1d36d66d93e66559027d7749e627d3c87ac4ddc6257ccc4

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 96d8b0f0c32c7c6acb0fc1b32aedc64134cfeaff390e2d815f64e62c99e51543
MD5 3b52133cfe19921872c9c4c5733f9b3d
BLAKE2b-256 9881a2c37549ad8cef37504f67c5ad99e1eab81475696b8a13242413b198e50f

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 50bc18a8a84878d3ac954668216b4c15d25bc35e961c65867a2fe69f0de8fa87
MD5 32bada98f7bb45c89002f303fe5423b8
BLAKE2b-256 eee1477f46b19e7a2796141c92fae216c25aa255e77166242add12789b180c33

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c14fba49b60cb4c2b511c1b0f445c5906de913e3d2d5f201ccfe6bc7f14d0305
MD5 61c337334e881d69a0268f512b45cd6b
BLAKE2b-256 44d52628e22dce9c55bdca4b8334ef33e118e593c2ded0210b6a3367fc6b8b60

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-manylinux_2_28_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 9892dd398861fcc4325c5c088ff1b435d42680308c5a7f6e1c065054fdc776e6
MD5 7d4e560b58da67180da99386da83968d
BLAKE2b-256 08189c7ef5e9d3bcef40f26a262ee16fbbe2f50d2966d5340c20fc204ef0a0d4

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1efb52f11749d55716af07d04b3224e82856a4ba120d9c3617601fdaebbc34d8
MD5 65ba9d943d94d8e7a1f1516042d086a4
BLAKE2b-256 8ea3d0d6df6c86e76bb161796afa4710bfba6e7d175699739b00f10f9c47e9ba

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76510d8d4e374ca605bbc27641d6b884cbe3b43a462446bcc59c118356347628
MD5 8dc46a82f0c9da7e0086c7e21708bc1a
BLAKE2b-256 90c57c10f106419e411c590b54667ba2ade19c1752d24693c0600a9a9f08a4fe

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.3-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7e810bb0f04e2bc87280701318bd2049b08904d10ef11512100afd29fa98d61b
MD5 78bb45e80f20205f9eae3aeacada8409
BLAKE2b-256 155173b71a8e514cca2b6d28bdaafc0ac90c406c49190e24ac526076b8812cbc

See more details on using hashes here.

Provenance

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

Publisher: python-release.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.58.3-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.58.3-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 41a9507b7a6f31ccb3a53f35bbefc1c6035402c6582d343d0b738c68743f021f
MD5 22a23bd92e7dfd7915691c797bd2a4fc
BLAKE2b-256 678d9c100a92dd4e497b2baeff1b3d9bc059b0b5908023edcbb0dafa7cd430b3

See more details on using hashes here.

Provenance

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

Publisher: python-release.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