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.68.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.68.0-cp38-abi3-win_amd64.whl (22.8 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.68.0-cp38-abi3-win32.whl (20.4 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.68.0-cp38-abi3-musllinux_1_2_x86_64.whl (27.8 MB view details)

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

py_rattler_build-0.68.0-cp38-abi3-musllinux_1_2_armv7l.whl (26.3 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.68.0-cp38-abi3-musllinux_1_2_aarch64.whl (27.0 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.68.0-cp38-abi3-manylinux_2_28_armv7l.whl (26.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.68.0-cp38-abi3-manylinux_2_28_aarch64.whl (26.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.68.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.2 MB view details)

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

py_rattler_build-0.68.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.68.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (48.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.68.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.68.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.68.0.tar.gz
Algorithm Hash digest
SHA256 deaefc522c2c9f5605130f9ec9f9bf4160bf43c67b32611c5d4a55cb83b56abc
MD5 4a4770f24dd833dd07d6c80e14f1c988
BLAKE2b-256 136fe38e1be16f468b0d28c0d226e854abe8877567dd588a9b7b00857173ed74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dcfbb9a9144676ddffacb0ebb4f904c68de70abe23a12e23ce7644a8cc3da7b3
MD5 38d8dcb4135c9720cb0f2928d445d885
BLAKE2b-256 11d093cabc44049dddb18b72bb9d3aee657ecc4d6e726b042e49f49e64e72432

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 8158242076009e314d99d967f9e57f4699f6b3aa02b994ca04b21110d55519d4
MD5 ca3037260b488f7f974c761b524cb4df
BLAKE2b-256 9cc064122eeec3128aacf97e164da6186a644898b7b30e88be26907963003ea9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f6a1a5ab83dd42a538750b4c66ab0c0228c5c25664c3683985220540fde09b56
MD5 c5ef4f7a4ed6a9be32f93702f3cbf468
BLAKE2b-256 55964f0cc7150de0820bfe70f3be0eb80676abf8a3bf49051e1693adfd447657

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 7a701b058c4e0d574d4113a28a1d46ea5ea814ce53e4649359f224451543e25f
MD5 41560dfa3ae262ec759b57e2a988e47e
BLAKE2b-256 4941418cbe2ecf4b0a0e3f716afa21659267f5d887cf7d04b43896078b49f5d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 76eda59673853734f4ca618ee5b6654db5ace0077356547db47e620a0562c2e4
MD5 be24c0ab985546e8e56dc40df8acf720
BLAKE2b-256 6a953ad34a0023033ec924fa9d7e3d0d10cb56278a33a3d26c7348445f8fcaa5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 5d98385065e39e49176797135cae47b2db944d225fb987975a0e3ab01052f950
MD5 ac93d79adf626274f50e5164a85c1d7f
BLAKE2b-256 a0bd02589fe7fec767ed3120103bfdc111a68ed9b30b47d5eea0555324a85983

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cffe10a534269beea239aae5c8b0a801f510968e636e7492e1c081a97fcae87e
MD5 2d8287c50043235a41a5f2f650f14883
BLAKE2b-256 2d7b976c054761cbc5c64e56b65bedc33d0287a4ad0474f9ae535f3079a053fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 595bfc6c4239367ffcd36d5c5a0833d197109b3a64d1759c12c332a2bea92423
MD5 53c78c0716c4ca2175caab5c32a51280
BLAKE2b-256 22542b2d51fd1e469019ee1d646bcc10fa79f1c408c56aa983ca28c6b3bf28bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.68.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 927420aedd495c15d3769b9bafe4fee9585c873b7df0c74a1b0a8656deb850b6
MD5 f518e1ec34cb02f7011e87df0a2d38e7
BLAKE2b-256 dc1c0ce48166c49ce11ba1da45bcbd7a2b83759add12fb1cdf6d248b9c3062c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.68.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.68.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.68.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 65f8447fc620a20953bf38ea4f7f4f3786b9ff16d453ebb1a663079285b8e8e4
MD5 b61538182b345f62dcb13f41c1a8cedd
BLAKE2b-256 f72d493ee2b4fc4b981a2e22c9ce26e5ddbcdc0ed80aafbc8365ec83b7b3d4fd

See more details on using hashes here.

Provenance

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