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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.63.0-cp38-abi3-win32.whl (19.3 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.63.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.63.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.63.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.63.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.63.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.63.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.63.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.63.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.63.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.63.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.63.0.tar.gz
Algorithm Hash digest
SHA256 9519970ec830f4433b7b52aefdb284ee1fe370dcd8c5defd9685fa4d0289460c
MD5 20c931780b382d08b0a535109aab66af
BLAKE2b-256 cade02fe77c3f03e90ed87c9cbe2dbd803e6fa7cba7ab0657b725c4d481ad591

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c6fb73cf6f3ee0ff93aa67e97b4800df46531ef2f871c112b7de1f8a3e1ad48c
MD5 28cf054f3a6ef22b49d2eb25160b527a
BLAKE2b-256 f3f9f266276683f4f2ac60740d95ff91eed9576f8234b6f18daccbcff7d3f2a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 722d18058e9d4a7dab721fdf98ef6f4849d1b9f756453a9377cfbe88fe702784
MD5 138d18be1efc93d72f03bd783e3b56f8
BLAKE2b-256 f2524ac79226deb0867866131a29e0427d931d6230ad45497a442554cea9a20c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dc4c576f5e41c4e8c9285c3de62096ed92f3612e87c6c3a9d286134fdd9db3ff
MD5 ab3c07c670fb1b227a6d67a5fada9306
BLAKE2b-256 434137e76aad19e78fbbb9fce2da04667dad7aa930d651368b25493e783d18b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 f34b0f82ea2475d96f0c7cd28def6542789d5ae645200733128897d7d0db568e
MD5 99ccf8df5d01163115b46ea53c11717d
BLAKE2b-256 bc532ab7b165646affeb654c86a7f15a8bc7d4cf4340f18170d477afbc1c7744

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d9266b89cbb02a3608f923d13a42d409a29d9649a54ec2386997aafa4c188993
MD5 8dfd88dbd786fb58ad5bc5c3ae4048a9
BLAKE2b-256 3811d084a7a236889e264789556c285261f189b3c29a95276c86fe048634a1a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 cd6cc69ffa7790e35c703ac4f8e51f255a8cea19fca6c68239272667c368cfe9
MD5 540eb5d521ee148dc63bb453cd5f9278
BLAKE2b-256 22dc9e832243e667f54ec0752c1ca2385fd3fa4680d1c8f1ee8a46a6c61d6d7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e8593390dd85e255db7911c04481de68b3a8fab6080bb8e14433161acf7c8e18
MD5 c418a47cf2f9d44fbd06cc866dc21d29
BLAKE2b-256 6ed9e45e3e58642622a35b3913fa51f986e36ca42ce3c95552b04fcb232801a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2c6afa3589a3656db8a29ecca53753a8633dc5d2f0595b729ee6a29690dbb7b
MD5 e773510c1a51a8f2d6ade30139b22ab5
BLAKE2b-256 4069f003a46a6341b31203287ae17fdb06703db8e01d170fa2cd4518f7a970a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4f7987e71d27bf4cb35151ccefc73c6948fa31aaa9553ed324913f6e9b3bba3b
MD5 6647866ffe51b15aabd5a559f2cef389
BLAKE2b-256 8f7dd7b5002a852df053999a70aaeab980cb367dc1e4439427ef009e5555d630

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.63.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.63.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.63.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 206b1376059896c6c06299922944911dfc146ce999afd51ebddc5b540f5a585e
MD5 f59462af90a85969e2ef73df54273193
BLAKE2b-256 450ae076144e3e1478e6efd5b94647718cb0fd41a1f64c726c3a9aee47b3f80e

See more details on using hashes here.

Provenance

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