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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.62.1-cp38-abi3-win32.whl (19.4 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.62.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.62.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.62.1-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.62.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.62.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.62.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.62.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.62.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.62.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.62.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.7

File hashes

Hashes for py_rattler_build-0.62.1.tar.gz
Algorithm Hash digest
SHA256 d5cba32f344a49aa8fe361844b919fcb55669e2103a41571eb3c33520ec68ced
MD5 387ef87de8dcc7df1d5f2a8487eadb52
BLAKE2b-256 5fa3b340cb97f0d61622cc3d5c5647b5f9cb837d9968c50a0911b7021244941c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8af0755985411a20c1b5c51fcaa19bd2eca6d994d8524326b09ae8b517849426
MD5 548834d287b31d1bdd3a2854c183bde7
BLAKE2b-256 f9c6a28e05f86eb0026d65357ca5949991b32ac6284aef9c23ad3b3f784d9ecb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 15fa0ca0a015012041f489338ef1239a59404831403185778f110d5448b72ca8
MD5 0ec7966e1075779458d58cee5c2e9b4f
BLAKE2b-256 cbf93097c7ad063b67f29ee46c9b9cc9a10827975cde1824500eff860a00b01d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c4c627cd0a96df40ef932f91abc33eee64e3541d87a0814e69ab9b54fa85daf1
MD5 404eeed387a6413020943baf1e8acc7f
BLAKE2b-256 f9cf3da328cb411aa35121b8fbce0f8b4cf8e9abd084a59220350ee0382fde65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 9a2b238958d870404d5149e4f153ce41149e4bced7e8ebe57e2e18530a6e89f7
MD5 1fcc40921c399175163bb6396e7f7b0d
BLAKE2b-256 73bf32759a1117331cdfd01061b2e07800a31ec777acf8196bc0c3c692d37985

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 882d2bc3b497dd8ba374d73f915820e4b55a9b690bb151099ad8e30f5bce3074
MD5 afa15d46b976a350aaf8dc5ea984e3ce
BLAKE2b-256 003f346326da6df4508caefe9820fceefaf3bf60c7d137e77ee8ebb836d1a47b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 f92188174182b5d6addaea98281391ad4da2f827bb26cafe8e00343acb8b5cd2
MD5 000ae17741046d50a231a9bab36131fd
BLAKE2b-256 58702056f6ef455d79ebd0b0e16de57f7b4d3b4d0079ef8dea1bce5c17235dd1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b9640cbc53a988e16a9151bbcd396197d58a5279f0da22dcb511f96949498126
MD5 6a49b503df4780cb78696c375e834297
BLAKE2b-256 2166d6bb6e424c21a046fbecc5e9988ba3bae30c20e809d023261428f72eeec3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64be07c14e27f822e782723c15e1bdb3d7877501cce5dcf318996c41df24acb5
MD5 0fba6ad1b17c6efa1bae869a263aa12a
BLAKE2b-256 dd8e14fbf8a296cdf4d7a533c14c96e5b722e76e10364d0f6cf60e2f7f6baa4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 820cdc5dc30ba93f894783462be95bd038b4670217cc3705ad6a128dccfdca55
MD5 f78251c917e0f07695bf93243ffe8410
BLAKE2b-256 c93b335a5049dd8e3ac827d82716ea2efc1753b187d02b6235fc60a79fa4fe4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.62.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.62.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.62.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 5b4ca71582ac4ad0e64a0c7fc9dd8235e21f8e2f083febdf69f7112ff475d13b
MD5 98598a4933a366d29c5a8c01886ba2e7
BLAKE2b-256 3a83d90080245b7c0be938758cccd089a7efdeab7da0c01a55f9de90cb6709da

See more details on using hashes here.

Provenance

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