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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.63.1-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.1-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.1-cp38-abi3-musllinux_1_2_aarch64.whl (27.4 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.63.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.63.1.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.1.tar.gz
Algorithm Hash digest
SHA256 df74b43a633a2bfa0d46816769039b945dc4043bb8442813a9f83783f730d060
MD5 04c03dd0e5cce115ad596da0500b840c
BLAKE2b-256 4dc2e72ce96ffb0e7fcbf37f81af9a4880b5a41b83eca0648d9e8bbe695033f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a6532f8e47d7f205f7705993a824053f9a8b20e389ebcc98f01bb452d3304811
MD5 471f707da814cdfb153c259f5cf6020a
BLAKE2b-256 8165da4a53c0efb773e0a3f834c0ca5a859a2a7162996b275aed19a30cc06318

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 18a090d711ba91d05e5f9b8af592d9faa876c91d9fc570c826a94d4a96589492
MD5 763de37622d4bf26ce50998c4028af6e
BLAKE2b-256 ab5d925ca60998e84920567b5373dba21f4b84e530566e9fb3662606dd854153

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ed77c32943dc755bf7250e8e5bc4f486da6ae0013eaa070926633bb2375fa4d2
MD5 305a7c348b3207ef02c596d6027b737e
BLAKE2b-256 5692df986f293adc29235887a29e6bee86cfdbd3d659f7015111d191c5915560

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 b1f741f21e94054db4d3bea7c71cf0588b314181b5d215e0c9650f974d8f6190
MD5 bf9b459509a4185fcd6efcd13e7a09ba
BLAKE2b-256 898e26ac30d77a80574bebaa93976dcf1a8d3db0ab951eabd88e11844a2f8e77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 82e598ef1fce13fbadbebd5ae122789dc659e75685d74730ea782a8a3cc71726
MD5 1559bcc335454bcadcb727051fdfb66c
BLAKE2b-256 978b105f3459333f1103feda69f6649662755388139549ccc2f1ed8d70378e76

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 3f5ff12526ac92e7329ab48f747f55b32d7e7df86e92e22e63a130bcf07ef001
MD5 efe4486c2a3a4837022a0ccef59c3282
BLAKE2b-256 4a198ed54b3069c093add011690ad52b25872efdd597d4f93b7f7808136a77c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 07236903c928b7c610ba966d34eb0259731267eed1819e425cfd18dc021a5817
MD5 81df88b50e676d8d8b934e446e23d2c2
BLAKE2b-256 31b03f1c6e2261233b8d1d4150ec077b780056d5084af234551476d868a52f61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85b92f5e6822dc5529e91138652408ca2713a7cf8434c09eefa3c1beb1975da1
MD5 78c5b7851e4763c5f3d0c01a4a5331f0
BLAKE2b-256 b2654eefb7d966178b27aad31d3d5d19c6a5a3c8c4048c200768ea61fdf6cd0c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.63.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1a5ce700ec56a18e882cf196a4edd119ce48fccb37188c899550838ac7da6fd5
MD5 383179a1cb41235d6e20864f40acd676
BLAKE2b-256 3be3c5889dc1588d18f9779298cf1b4759d4aff884eb5e523e4a18dfe93dbce4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.63.1-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.1-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.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 846b749cd670869c9edf33189100998ff8f80122db9c56c83198c72887d82f31
MD5 2762090ee59bf22ab99935e66be5bd76
BLAKE2b-256 d7b4140dca5cd4e5b2d9e36d74920f017158ed4b21f039124b256f0fb54420e6

See more details on using hashes here.

Provenance

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