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.70.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.70.0-cp38-abi3-win_amd64.whl (23.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.70.0-cp38-abi3-musllinux_1_2_x86_64.whl (28.3 MB view details)

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

py_rattler_build-0.70.0-cp38-abi3-musllinux_1_2_armv7l.whl (26.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.70.0-cp38-abi3-musllinux_1_2_aarch64.whl (27.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.70.0-cp38-abi3-manylinux_2_28_armv7l.whl (26.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.70.0-cp38-abi3-manylinux_2_28_aarch64.whl (27.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.70.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.7 MB view details)

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

py_rattler_build-0.70.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.70.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (49.7 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.70.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.70.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.70.0.tar.gz
Algorithm Hash digest
SHA256 611ca06a119e4c3f8e32aa666806b1350c0950fe1c4c6975c5e58321aa761e76
MD5 bbc388240593627e87ab4be2907d244b
BLAKE2b-256 127a960e0cb0975214494b29c3e3456de7ae8a804d1574031812e0337cc5745b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0d070e3f86973ba79750eb9b1ef0ce8558693c28495a11da15ca47b653e7af1b
MD5 b353b31ae4aaa36a7ed2c32aed533b74
BLAKE2b-256 185d02e873ecc7e38c449c2d000e75d16045bc3fefc13f58a754b4dd0afb5273

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 bfbd01f7602dd4a055eaaea946c2e1897c306bfc1fe8695c2fc8c02222c2e078
MD5 c39a47721c4a56a8147cbde8961e3e6e
BLAKE2b-256 3f362aa4fdae40afedddec9a4dfb6f618f028ca5032c1023c0a8f1899c5844d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d0267897db48a907454c37095178451f86cb2d3700aaf1995d4dbdb315ff339e
MD5 540663845b490c49591f07db9c96646a
BLAKE2b-256 38f9c46ebddaae97225907b4213c64b1e4452aa7b64ab71385c8f05265f0b9e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 7a9d50e04b8eed257bbfa831cb6640de8b02595d43a30a862476bc14ea17af0c
MD5 2f67dd9c6556deaf5ac563351a9cd36d
BLAKE2b-256 6967f8c557b7fd12b4b7cb423852a0c8f3f16c3a30261a78ad54b70da273ebec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 40e8a4fab6aef0d08f8fcd3632b1951892646885959dfc077801631b7f51d7ea
MD5 1907523650eec2e50588cb2126c2f6a0
BLAKE2b-256 59d2fc5112b16c84e134063d69bcb3d8369f1c821ab162251bb40fbe4244331e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 41177ec3751ead4f2fcac96a2f20025e074d6873bebee7725cf1670767366649
MD5 00527dc777a0c95a6f28a43f227fea37
BLAKE2b-256 faf5d9346f7aea8854de537ebf10f96d73f76a38a5486f79ee75a6261550d252

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 14ec3302b5fd8b257ba829afda68d2af137b13dfbc3c05a97ef09b5c34f99bdd
MD5 7e66596913648eac4c51e6d77825256b
BLAKE2b-256 84ea713c660594ac0cd2ccf5223399e874e98f577337d88ea8234fff8ac932e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6dc6f1f86da431fc71597e3e4f15f5d32ffc47cf6865206caf02cf50651d456
MD5 27b57f8587e098b01fdf2680ec86d965
BLAKE2b-256 a8f66a32c117695dbc69531329677d625cdbf7712afae5582d6f48c1a0151a44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ca420412741f7e74157e4e4252a2d3e4ec482d749c57ff81dfeb471d943fd9bd
MD5 8d7cb608122cd97dac98d7a51b125e56
BLAKE2b-256 3b83d15dc494ba431fd9fd25173a97879167f216c47623ba78994293c056e228

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.70.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.70.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.70.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 763d0e567a2b7a7df65323d49eb9d44b96862659270d2a90f76017a9ae89f109
MD5 d71a00fbbbf38660a76864672f7fd99c
BLAKE2b-256 268715862b9007ef942a75e0a25153588785c4800847ae4706704a64f2f2185b

See more details on using hashes here.

Provenance

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