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.58.2.tar.gz (1.6 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.58.2-cp38-abi3-win_amd64.whl (21.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.58.2-cp38-abi3-win32.whl (18.8 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_x86_64.whl (27.3 MB view details)

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

py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_armv7l.whl (25.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_aarch64.whl (26.7 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.58.2-cp38-abi3-manylinux_2_28_armv7l.whl (25.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.58.2-cp38-abi3-manylinux_2_28_aarch64.whl (26.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.58.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.7 MB view details)

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

py_rattler_build-0.58.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (28.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.58.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (46.2 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.58.2.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.58.2.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_rattler_build-0.58.2.tar.gz
Algorithm Hash digest
SHA256 562a3fb98944a26d0c6dc65be2a727668e36ef0aa67a99eee6cffd27b2b2cd58
MD5 0a9d4af7520d72015c6b63c9d66db151
BLAKE2b-256 7aa83d8e04f634adf3d9c6ea55f3f68633f082205047a7144953193c8a2e804c

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2.tar.gz:

Publisher: python-release.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.58.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a4fffa768e5a2cd1e125e44c5e26980d0fa5b4c52ee25989a380dc328da2c656
MD5 045cc6d9adb4af7ac4776d4514309531
BLAKE2b-256 a4350323c12fb5e49ab041fdb26b3f0e6830a4d849a81f59a5121df5bc0400eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-win_amd64.whl:

Publisher: python-release.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.58.2-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 280dd94bce3dfa10f0a2e1fb1deb3e4769751f283eb90d0ac20abfc92043bd19
MD5 ff9ca027338f63aa039e1cad72fb4f9d
BLAKE2b-256 312ac5d2d6cd69acd47c48fb32abc4d7007da00164905461b9f079057af57bb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-win32.whl:

Publisher: python-release.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.58.2-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d9215cb016f9ac7f9a7471c225d9757134423b38135c2560be7a8195bccedb54
MD5 8a694e6a9964840940a861ac207886c3
BLAKE2b-256 4b11a320f5be9e663895d40e2b35bbe5fae1bfb7593ea64ab4d1ec2fbfe333f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_x86_64.whl:

Publisher: python-release.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.58.2-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 8ed60e2f83cc85c613bae0579f3393974ee9df5f7de41803b3617ef6c3c8aece
MD5 6d2e78d0dfcc73fe79e8caade0ce4592
BLAKE2b-256 1e09d65da2c15be57692013f795c0b09aabd88394fbe028ba1c546fb0d819c1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_armv7l.whl:

Publisher: python-release.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.58.2-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 01608837e6fa25c66c97d8a6bc234058035b638f5ae4b4a50e2139e06310ee9d
MD5 834fbfd694ef1947a73cce542b6e8979
BLAKE2b-256 c8f4f51416992c183daa27c23683f222b98ef46643a6fe458b6fa6d5f33cac78

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-musllinux_1_2_aarch64.whl:

Publisher: python-release.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.58.2-cp38-abi3-manylinux_2_28_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 df421ee9970ac04d7d57fdcbcb3d644b496dc197e8edf5ad1f3ec4160c5ea3a0
MD5 c503302fca83d57df0ef1f614b89eeff
BLAKE2b-256 8bdf26bcde7be7045e7df7c0005712994610e878228d3eaf4831ebbcb5291dc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_28_armv7l.whl:

Publisher: python-release.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.58.2-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 38b038ffbe7e26cb1aeacfd6292ce4334159b5e8fb44670d4bc1488f5039cc98
MD5 df95966e509d31ba02e21c298764baac
BLAKE2b-256 f48beb2388f7f4f2967dbb96753d35fbce5dec0cdc3a233629024a34818383a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_28_aarch64.whl:

Publisher: python-release.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.58.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f64ca5b5b11f6e3b4e3e5f809648b86f481a45d548479750b1686af9b3a927c
MD5 66e28c90b66bbff4383fdfcf98f860ba
BLAKE2b-256 51fca02980a5f8f0938bc4a9457ae492dbd17b58c5aa40be2b2da1279ee0b788

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-release.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.58.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 0d24a1df386c98e093a217f30f49a12e018b6428b4d1a9a09591c0720b8a403f
MD5 67390186cb5428fa1fd4118e78bb2e18
BLAKE2b-256 24a7515160bfbd4c014a0e125129b2975c14197896b9243288dc0c31fa6c0004

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-release.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.58.2-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.58.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a72bb4c50374e2d1571782458d9da2f68f6dcdfc9db8d804dc993d9b41a63172
MD5 b5da2dcfe7b7ca3f0ff651af437231a1
BLAKE2b-256 8c8dd2e7c7d1a27ac07a7b939d78dea0cc63e28dad3f993a4fb37c67e13f4f71

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: python-release.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