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.62.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.62.0-cp38-abi3-win_amd64.whl (21.9 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.62.0-cp38-abi3-win32.whl (19.4 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.62.0-cp38-abi3-musllinux_1_2_x86_64.whl (28.1 MB view details)

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

py_rattler_build-0.62.0-cp38-abi3-musllinux_1_2_armv7l.whl (26.4 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.62.0-cp38-abi3-musllinux_1_2_aarch64.whl (27.5 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.62.0-cp38-abi3-manylinux_2_28_armv7l.whl (26.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.62.0-cp38-abi3-manylinux_2_28_aarch64.whl (27.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.62.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.5 MB view details)

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

py_rattler_build-0.62.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.62.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (47.6 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.62.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.62.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.7

File hashes

Hashes for py_rattler_build-0.62.0.tar.gz
Algorithm Hash digest
SHA256 a8a59b0a9c913926b0eacb55dd94b6917fcea602c4bac4393ff1fced372cfcea
MD5 da0269586b67d04e038e20bea144e524
BLAKE2b-256 27536de7d7500c1dd7ac9d54b1af164c68c6dd7e9099e37cae5c1af5ee1da9fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 053e9b7deed8bf73a28aaba44abec2d28d4a2b8dccc04f3216061ec180b1e698
MD5 dd4bd675b44d632977f1b647f9287f28
BLAKE2b-256 196ae382b9596245da789e57a511cf01844d866805f4cfe927a1dbe334a8dbc9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 3e13e1c903def6a57ef6f72a498a3e553a2d53e0988a4c95b8fda6c4e3a990c1
MD5 672404d3b4ce13e3532a338bc69f62cd
BLAKE2b-256 ba22c2a08d332724a58409ea673d7ed2395a11dfaa3b48d25e657ae22b5a510f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3fca8b334377345554c1790f936e122309fe4d50b72d0e5f1a49bacf601e0c89
MD5 f8639d4df48836b7ebc830c9e46c8302
BLAKE2b-256 78b7b03d5fae796e2a3d718704df3665740911b6ff3e8f93c3daa2b932ec5c91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 4c3bbdd9c0bbeeffcf7490c8c4482e64d07f530abcd0dbe848fa839a7f102348
MD5 ec87d56c71ad6c2d19e397e3c5b8d02c
BLAKE2b-256 6206793bf7a696c9ef47b2ba259ee6d11fab94213872f59dd53fd9aa0f49792b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 ebb5e8db7dedbf556291bf80f105d079cf966be024715bc6268172d4b80560c8
MD5 aaf552200c4ce07f831e68914818b1aa
BLAKE2b-256 482d3fc0bbca1558bf4ef2e7fdd70f85a3cb4c0a8c21253e59be6b30247601b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 057835e908a45775dc17e8663ed56d4d017630025aa1b3aaa811cff92e644d66
MD5 aa1724bde50634333b026783e5e006e9
BLAKE2b-256 e0720e2c51054b4498d549921049a02572b19ea4da14a0eb4e5806b372536fbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 50b4cca223914fc6f9561ae98d0a510ed8dad0514be6880217c41cf7a2400c3e
MD5 62a6c6ca8c56855fafe4f0f5ad91cfa6
BLAKE2b-256 7589c06c5b3c28aea4e29b5fd54a365f3fff610cfa4d254973b2c4060d788f33

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ea2d7a71d5e7a57080b4be072367e7cf048036d1fee054394931b7353b9454e4
MD5 0327fb1b3b439d6d683aa09409ab4f10
BLAKE2b-256 0b81aa606758f1cdc663d4451602e7a6130bcb60490e0d5aac569e698d334409

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f1a6e73d4101db3afe03ac9f49f9430f30e54990713e8995c6cf4ba92dbcf3f0
MD5 1687033bdf5a1f7e4d04a5c4522dbe3a
BLAKE2b-256 97ae96b73a0d1b15e6cdc8b2e59b15fc10561df19b4b2a654479920b3e7dd4c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.62.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.62.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.62.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 2fdb47cdef4fa8a355f798a041b164a1fbad98a7cf26604b183e90759ea1a29e
MD5 4fe67436fd4788fa41c74ae429b7856b
BLAKE2b-256 02182d870ebfb523a4b717feb2e67f37d1f0be2b34c80b0b68e9c3915ab1e01c

See more details on using hashes here.

Provenance

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