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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.66.2-cp38-abi3-win32.whl (20.1 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.66.2-cp38-abi3-musllinux_1_2_x86_64.whl (27.5 MB view details)

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

py_rattler_build-0.66.2-cp38-abi3-musllinux_1_2_armv7l.whl (26.0 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.66.2-cp38-abi3-musllinux_1_2_aarch64.whl (26.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.66.2-cp38-abi3-manylinux_2_28_armv7l.whl (25.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.66.2-cp38-abi3-manylinux_2_28_aarch64.whl (26.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.66.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.8 MB view details)

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

py_rattler_build-0.66.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

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

File metadata

  • Download URL: py_rattler_build-0.66.2.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.66.2.tar.gz
Algorithm Hash digest
SHA256 9913c9fa4e8902d337af33220121e7d6d8e6b50113cb50fff05853f276225300
MD5 09f02c21c86daa50ed1af76272a95e91
BLAKE2b-256 d00c7ec7944524368ac0f6f847aeccc0bd531e546e7ff5deb2dfc518d0b7f805

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ae183acd0b420171ec3649c5a101c908bf636e5ff74befe68e53d6cc88c25549
MD5 33a015ee9270c73551df28c8fb89fd48
BLAKE2b-256 ec475cc8d44421eb8a2ebd4f11942c48340682f58c97321a4647964bf1d96611

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 01c78fad3d7e0680f3aa17964ad0a276f5ee5ebe677de17733ced4bb9b32a426
MD5 104ab5f9ff6d155c80fb39fca08a46c2
BLAKE2b-256 1591630c0e43a66b61f769f8249ba7e19d1037ea75b28197197597211b17f786

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7920eba3d51a876207f8f9942c4a29da32e825ade71749dce56da47d358940b9
MD5 17abc917c4070ec155d1e44d12535b32
BLAKE2b-256 e30732be9f2c88a372e5b4b1e89174c4bb589d6ce0c9ba31eba3fe54dfebf108

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 65a8806e9e2dd885bb2a4545f6e8be8092b04a8bbcee880c609e9c4a3be6e849
MD5 3598adec7ab8083e67a5eccc40611595
BLAKE2b-256 ffc0dc70ec28258a2d2ed4b53bf26b137fbcd3ddffe34bba41b59d9ff6816441

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2ea858a806814f6fcaed4e4beb84be5b345bcaec4c17766d1eba1815754266c8
MD5 47781e874389f19d2c668a42035bbd78
BLAKE2b-256 f7f9eb07096bc80535b7e50f880be1f238f1baff2e7419caac284f353c79c1a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 22799f8b1020bdc3fbc501d450561e2525a441dc3d17a791e1582cf4ab1bda8d
MD5 a6ca6f94143f8d9f577cdc33f11c5a99
BLAKE2b-256 3bdafacb32d995768367232f876b89a9522f47c8c33c1853f552b9f80feb6dce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a610950a3c945324dce3503060f61502cc73edc3c074f34e521ac2101269b584
MD5 6be27f1ec229e3b346fb97d70335ef2f
BLAKE2b-256 632ff5628e6d1bc1e514adf73f2f4af14ea5099bb0a9fe1e0a224978b937fcd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dcb2523f7477cc99754289f4e337f418eac8800a5a10a678aa91bffe8baa899a
MD5 3832238317270cb912700cabf6150238
BLAKE2b-256 a35eab9d45192c7b5c41aa7bb7f65875c0bc7eaf5398c65ca597cc645a809401

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4f675cf725c1a91c7dc7d6050e087a68c2c65610b6212f6960a4f6fbca9c2e88
MD5 b14e6b33db631f9aa84d848fe6197817
BLAKE2b-256 29e81fa95914080710ee82968cc27db22b4c62c802fe090f8425e2cad15dd11d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.66.2-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.66.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.66.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e4d813ad07e6150c323a493c9884a6882d0823d07eb8d9627dc5d27d7d2846ab
MD5 d8a76a84eabd7bede9ddd2c1d0f85e35
BLAKE2b-256 ca340af7091b40bc4d7dd596aec496bd53e3979d1ffd97455bce4d486e3ed6b2

See more details on using hashes here.

Provenance

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