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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.66.0-cp38-abi3-win32.whl (20.8 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.66.0-cp38-abi3-musllinux_1_2_x86_64.whl (28.7 MB view details)

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

py_rattler_build-0.66.0-cp38-abi3-musllinux_1_2_armv7l.whl (27.1 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.66.0-cp38-abi3-musllinux_1_2_aarch64.whl (28.0 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.66.0-cp38-abi3-manylinux_2_28_armv7l.whl (26.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.66.0-cp38-abi3-manylinux_2_28_aarch64.whl (27.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.66.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28.0 MB view details)

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

py_rattler_build-0.66.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.66.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (50.4 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.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.66.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ef76a974cc8c95bb145fb626c0075da56d23f1e7da0e867314562793fb471505
MD5 8772dce49f3ee31b306c6963ae13d7f8
BLAKE2b-256 d9d555b70847899265b7e2d6e821918a57963af8f8ad00c78c05e1a3d90e6eae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e221bff5646e5cf3ee63b790f0c89791ca946540413ddb425f79aecb2aaa77f1
MD5 0fba12406f32b0455a23bbe7cf1641cf
BLAKE2b-256 34aa841160f3a05a6e652407ea4498ad044c2b857983cbe348fa398405e18390

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 d4990cce8841646dd88ef69041bee6c3f2261f915789b933a07192ebbf816730
MD5 5cacbb52dff2ad88eaec658fd36ea791
BLAKE2b-256 ab5ca3ea64a756ee44cb539727d0f9e453abf21deb4da1698f9bc800a81c3797

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7f16a8106f3a7ee26ad0bf34e05d6fefd30b3183a9fd7553fa9e2758d516a6e2
MD5 7eec63bd9755a7d493c771762d70126e
BLAKE2b-256 54aa687757c86327c11040c3bd347fe8743b2c7416d00e7b39ee02919a06507e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 8ce5794daf00047655c8c8d1638521ad9936a806f10504ad257cb255dc168cf0
MD5 2d48c77cba3b5184deee94a52569c9c6
BLAKE2b-256 9bc66f350677e160a3007fefc75f687931c365b1fba6ed2a2a260b8b44f22593

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 dac0b3b645fa2796628be6b2109cf199c75ffda6b48f70c2658abbd0ad7e75f8
MD5 292a04c395eb2fbb93032de8d0948b68
BLAKE2b-256 becaa89371865d21ad26381d814329da6fcc8cf6204820c849e4782af557de35

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 4c5a3d849e602c33f84253a9bc52d8a58ff436066d9583fe3efa6d90af80a56b
MD5 f87d2c73c8378a353ce7af62e0c55ad2
BLAKE2b-256 1dd8eb4e5c4baa44758a71ccbf1a103179792e50b8403c8a61b2237f7364f123

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dc8ed8a536d477b68fe4e6cc3a727aa871a9ff851df1c1890ad403c92d919e2c
MD5 3369fd7a6ca76c60ebcd16a57f2dcf74
BLAKE2b-256 e058d90029cfa7a0ba0b319b75851ec413e471c485fa3ecbce8ca93c5431b0e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31953952d240f91d4c83cf21b5405b6ecc98f24d67a9abb724433c969b2cf6f3
MD5 00af9545eb4b49de7e5121a1ea8b4baa
BLAKE2b-256 a31ad088c940a9a3907ecd9bf3d88b18a14db4c0a39fd3678705f30e683f5f2e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b54e6bd5bb3ca2f40133bc379e172403132cfab7e5ef5a1d0dda1a595308a7f3
MD5 f60c2c51b9f9cf95421fb7ae55c80539
BLAKE2b-256 5be6881099a8e7b920595ec96b892480f77c09634ca8afa79741e9978d1f83d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.66.0-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.0-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.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 792877cf3b1d58c82a5c4684c26cda91715b631cb3a74184942db712887122fc
MD5 3249b53ec2d2cebc99cfb79132d62480
BLAKE2b-256 e4fda1cd84eb881afbf3e5db9e963e98a6a63fb0d2958633b773eddc16cfe3e4

See more details on using hashes here.

Provenance

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