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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.61.1-cp38-abi3-win32.whl (19.2 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.61.1-cp38-abi3-musllinux_1_2_x86_64.whl (27.9 MB view details)

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

py_rattler_build-0.61.1-cp38-abi3-musllinux_1_2_armv7l.whl (26.2 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.61.1-cp38-abi3-musllinux_1_2_aarch64.whl (27.3 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.61.1-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.61.1-cp38-abi3-manylinux_2_28_aarch64.whl (27.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.61.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.3 MB view details)

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

py_rattler_build-0.61.1-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.61.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (47.3 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.61.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.61.1.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.61.1.tar.gz
Algorithm Hash digest
SHA256 37fcc6fc3156c8f9b4bc291af839b00a5c8d2945dda053c76db2d1051b1ec960
MD5 4810a18980935d94f04a024c87731835
BLAKE2b-256 7c74c6a45f828577c47c155bdae53dfd3708a177244c9b378c36c8d71bba9bd3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 30dc89a6c8f876f9a692507a9b66dc512553fe4d546e9c9b31d91aceed8afb57
MD5 fbc9399958a9421edd33173c791a6d1f
BLAKE2b-256 2181fee172bdff2d3c74fb4657dcb18625a2b5d9c46783e109ff168dbcc4275e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 3dd4c0fb45d2f1935d461385e2e2dba7ee22940eac8c8587d58dd6cc338c82fd
MD5 8d22ff2f3e6cd8fa750c6bf1f3043557
BLAKE2b-256 bc812d4225d2b3fd031134efe130fbcc41ba12d7e49c1ee1e1b1f0858025e0ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 907dab123fae4a3a46c858aeb7295eb9cbb26a4da93fdaa0cfa81dc4482a91ac
MD5 08875f2051304d9bd3e299e9a502195d
BLAKE2b-256 abb8c1d72587eadec25427229cf0891b105269566bf92354a376bb0980622415

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 962bcd07b314daefc67babe501b9dae05d426fcd7ddde920c0a6217d21bbba0a
MD5 bd132dfa6ab3c5ff23214d2d19aadc06
BLAKE2b-256 10a9d8e72e04d1bfdf993744efa62b8afe163eb861637739cc59fd887acfaf54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f4ae1c92ea338fac7e24b49b23f578a852d57fc1b7f710e5d1d0acf1d7a203a2
MD5 860c7d5ee186eb0d9ff4d68d6df2b172
BLAKE2b-256 5a8a255c22fbaf2d3694a26931d0039e02343edc19befc5b6dc210b3ada828d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 80146837a7720826d81ebcbb6f52a458e9e937bb96eece68e3236633217e6ba8
MD5 2a74c64ce00754e56423ab6ab712553f
BLAKE2b-256 1d1adc614da514be4d0703f3d4c68052f37863e88f7bb9256a87b0a23081cdae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 51077120a5f1d38d97e4090324f5c6ace31d2953afeb3c5b88e19d95aad5abf0
MD5 bf58755dc940f1ba3f82a5806ba46bcf
BLAKE2b-256 a74929450d71da28da3bc8adf3310ede2a8b6ac68a93af456c1b96e4d8f2d3c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 525a164c835faa3b9730c17ba75779c595c73d68e00e019f0768e300373de8da
MD5 2efe4f3f7f267d5dedd4edb51772c196
BLAKE2b-256 81631bd4db9fe6c63af7c90205dbb5a643e2a534d8856eb4dc779b790cfca1f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9d2ff99b4c6799c61e9e5fd0c9fd459ca460ca1eabba973fa37aed078fa11faa
MD5 3bce98275fee5aaed8546c36db981e23
BLAKE2b-256 ca1675da904332579187d4e461503bacedd6aec731241699d5d2dc2ecda8c5c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.61.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.61.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.61.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 9769e350b2c7b6dfe9d13075c4ef79bc86d4b0e08b74e6433580aa23a2b47e59
MD5 c5d8ccdfedffb3db72a5c5b217e028ce
BLAKE2b-256 c2ce7c2d7e127eeea9596e2e5b0ccec4a0990b79337f1cbb4e02615f600fe139

See more details on using hashes here.

Provenance

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