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.69.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.69.0-cp38-abi3-win_amd64.whl (23.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.69.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.69.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.69.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.69.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.69.0-cp38-abi3-manylinux_2_28_aarch64.whl (27.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.69.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.6 MB view details)

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

py_rattler_build-0.69.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.69.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (49.5 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.69.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.69.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.69.0.tar.gz
Algorithm Hash digest
SHA256 72dd35de0adb48913f3e725a413098b7532992d3ec6d28419fce9d2bfaf4b173
MD5 6a252d1c9ca80067b6341e83dafb2d98
BLAKE2b-256 1ce95a80ba36c9f5ac4ad2237cf6b486fafa6dd60a9e806fb2d5e1e2661f4c93

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 461b07ddfb500841f73da4dc7e68933fcb45d315ebafe1ce08a0e96f2a6bc6db
MD5 8e855e6f8df01017a0fe682d9931bce2
BLAKE2b-256 f32e1cbdb4447513644738379f30c025a8c64990aac8c24fe09a71ec5c64d5b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 79ef646e706146e578d97be020b68c3a9b8e4c3d1ed9935d323c91c8e17c6a7e
MD5 0110f700bd24a39b2b0ebf599dc5fa9b
BLAKE2b-256 cd9219b35c39c3e03573cfebaf65129b11a391d605157df79215fbffd9c3acf8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ad6e8d990bbf9a79004b0533f7f371e50da52f9251e1ef1cf4912803d33e452f
MD5 1388b2bef907ba613903085cfac7cc52
BLAKE2b-256 471353f8c7c03a7000623aff5fa1a2b85a4d5fba74f1c245ef2579f1ae7993f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 a67685fc5f980a2ec992e9feb2771f7db1bc4378d246f5099148bd714c776a63
MD5 afad2b89890bfa6fd7f5903f16785d03
BLAKE2b-256 8ea5b267f8777dac4d2d025d8f46e632fa78d90e19a34e71949695b0fb2cb7d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 07b1d1cc83c600ddf442d5363c955cb6a1ceea369605e59d7e9d5800b3d973ad
MD5 0fc92351ecf53f6160eabd278c00ea10
BLAKE2b-256 e7cf58290bff28abe7163c8aeaa3d99b9ccd433e5f33789ee341214480ab8a05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 236977ce7d6079276d89b9a3bc79d87c64bebc095ce2efc7e21a19c83241c696
MD5 8732ddd717b6024c898626c83de2e12a
BLAKE2b-256 db32fdc63607e749325960f52948d29acd39c8f4c6e9834e5ee31e375bdfd9c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 835d48240926cbe667d8cfe653d12502266f42c82303eb124a5a6163427ff7cf
MD5 b223b23d7bd4365c43f7be2ce89e4122
BLAKE2b-256 1c344deddf18d1ab829ee9e435265a48a695f1f65e2ade8947a05c6252f17758

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37546e923569b7983e9c67471eb539376e1c7418d1ca1656bf8508b54a55eefc
MD5 9196198e08a2d2dd87a53b9959ca0f7c
BLAKE2b-256 af658d8e3077582ea536ab1db699f7b4e6be62d8c7f77f647035961f82ab23f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7e7265b241f65c4884f73c31112692fb426612daccc406ec01e5a1269a62d3c0
MD5 c5a4757f0169d132da50f4d47a9916ed
BLAKE2b-256 d07db8e90dc21bccc09ffa37cde0df9efc547e3ae9eb57e02f569253650e4964

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.69.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.69.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.69.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 11b1aab374cc8c0dfd5c70aa897d0b0953aef176e31fa925d8060d5d76324118
MD5 3630c473fbb8fe240cea684533faeb92
BLAKE2b-256 115e49dea9e16dd70f5373203fc43ac279e0d3bc8fbc55bc5da3e3a635763ec2

See more details on using hashes here.

Provenance

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