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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.62.2-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.2-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.2-cp38-abi3-musllinux_1_2_aarch64.whl (27.4 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.62.2-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.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for py_rattler_build-0.62.2.tar.gz
Algorithm Hash digest
SHA256 649e284496c70e57039a1b8871c1072f962656b3f8b5725ad201b3cb0a70c286
MD5 dd70cfa21235d1acd8fb0cc5e37dc917
BLAKE2b-256 36f2d251888f00bbc8b98eb2bacffd921a1ed6672bb3c9ac3779b986deaef22b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d472996b2a4c08078e3954a5d33206b73ed1238ec90e442076207e9ce05eab32
MD5 d2a50eb9b73e43c7e24118c710a7ca0e
BLAKE2b-256 cdd7e7e71e5fe54742dea7a6083184c45e192f446823ed0b3a3346cc692eec52

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 17a166ed66c8c7b31622d10087cef5517332efb82feee5e09696da6cca38cf3f
MD5 0253129e52d5f37643113c4778aa1e48
BLAKE2b-256 a1bea96210531e69927819c01b1d1d1f9e4f0ed2cfbee71a5b455bbcbe166334

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 060854c604285295524731ca527eb89fa1c85908661d5c877ce17938ec2df9c8
MD5 26bbee7644151fc60b836a6770167d3e
BLAKE2b-256 883e8e90c24dc10499c657198f9b08d05de5606629aa19f322c94613995a0391

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 6bea9bb5cee8c354f611d5880db7e3360f9ecb547a39b71396e226add4e80823
MD5 5d95b3d108c3710507e390025b5ebcc4
BLAKE2b-256 9ff3d9efc412e606c72ec86cd9b95c34d713607696b112458692a9d91d4154d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c20e0706ce1c1d7cde5abf2a78fb3b5691b255d06261ffa7d874075d97c9b705
MD5 2f53f4b83ce3ce992cbf74456550f879
BLAKE2b-256 f357fd3c44cd639f8d86609ec9b44f3662017a8639568ab01786babcc876c24d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 64df9022dc6fd1ac1d1c1f9d579c63bc857252230f2506a69004f7a0f26e9685
MD5 0c9438647c53da86610e8b8e52fa5588
BLAKE2b-256 e41e970fac61fb7bbc65fa3761a10172650a7a99b719482b511c417a151734a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91c241286dcb3afac666ebf55d282e842b56c16af477192113cdd549c7f12b6a
MD5 bc38558e65dbf3fa62f9ad21d3c57631
BLAKE2b-256 77d233b958b8188044321ab9480003d62568b08890465c39bb48e4039186177e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0bf5519e15b42cf25d3c4334e375ee4bc49823396278ebe8bc872b7664557822
MD5 802867b4b8ce82dc1d907bfb388ef2e4
BLAKE2b-256 69b3cfe0eab4c5c37f75b8d5b8f652f6315ea98088b078f415e3b573a3d7a7d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.62.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5a87f4d6c16881ffd18344433ddc8d396656b6d3055d3ffb2fab54a282eab5ca
MD5 9acdc6d306161f0acc7f9b2ebf88b201
BLAKE2b-256 f181ce006bb3fe26706bcc24c9c5d16789bdfd60f99f561395e8952baa0057b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.62.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.62.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.62.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 ead789253593cda5b4d58d8485efb224ff7ae4cb76cdd6024a28869880226b64
MD5 cc29966448e8211c895fb63aed82c842
BLAKE2b-256 33f1c8c5e97180accc2687886639b4ab482e35595032d7a55dbb9cb28134bb35

See more details on using hashes here.

Provenance

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