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.64.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.64.1-cp38-abi3-win_amd64.whl (22.0 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.64.1-cp38-abi3-win32.whl (19.5 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.64.1-cp38-abi3-musllinux_1_2_x86_64.whl (28.3 MB view details)

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

py_rattler_build-0.64.1-cp38-abi3-musllinux_1_2_armv7l.whl (26.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.64.1-cp38-abi3-musllinux_1_2_aarch64.whl (27.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.64.1-cp38-abi3-manylinux_2_28_armv7l.whl (26.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.64.1-cp38-abi3-manylinux_2_28_aarch64.whl (27.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.64.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.7 MB view details)

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

py_rattler_build-0.64.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.64.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (47.9 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.64.1.tar.gz.

File metadata

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

File hashes

Hashes for py_rattler_build-0.64.1.tar.gz
Algorithm Hash digest
SHA256 86ac51d0d84a2203fe814102123b7e2b6d6b2756b0179d508d2481375ebf549a
MD5 5615ea7b52e39e380b5d014261f7ea69
BLAKE2b-256 9559f6510cb66018233f67e01d905d0606c8ae4f2e29d0c4c6bd7c3bcc889787

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 48df2a13e1a2b9a4e7ee086935b44ccb03254e78805ef01c22584633b3acbb56
MD5 8e14911b907b46c439f5bf2a064f69f2
BLAKE2b-256 83e98fed2f24180b36a0241871879d093b0ff9951dd71d81625a9aa45fd8ef27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 d5d902162bbbdba95edecd5fb52960e55717261d8c21e6e7f65293f48c799c9d
MD5 1661b8b6c20a310417f5d4195d8f0b89
BLAKE2b-256 915503724047d0ef266a65742a6e946de0fe2eb8fa8b3db487f8fa26320f965b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 13fa80de4d38df79b115f72bc3e11e479ba450b6616a3e0f2c54ca0c5c577090
MD5 9a82ddfa71f989f1129ee8a932fd0661
BLAKE2b-256 3ed2bd8e81488eefb54fa3768cf24fa62ba19f5af5349ec2fc0cb23c2ad0574f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 e258054be318e576d2efae63b72b9f34f989f4cf106399d1d348d00009a72c82
MD5 dc23cdb184da2d4c7af84a1cb45a3261
BLAKE2b-256 2eee1aa0ceaeca18336086418bfb01b0407f17756de578ecc7d5e22f2952edd6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1902282456b474c5abdb38b3fcc7588d7120b92b66462b7fd1d1d642fa93c44b
MD5 94b6f11af8ae0d3320b4249d14ea71a6
BLAKE2b-256 f1998f9debea93ab6a2e9eb1f2b8ad8331c30247b4fead5e763bc00d7beae881

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 a29714dd7406bc21c889a5ec6baf5593ec9050b6dfc3a3441581c1c1db226732
MD5 86ba6301df2e6ec6490d93684d3909d6
BLAKE2b-256 f8934b0ae18dfcfd819c65561fb300a598ed18189af549e03f55adce281c9d6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e30674a2bdc4540cc48648ddcf854a9103e0c8ecb7c83c960ce22d57eb0496c8
MD5 21274a213a94db142891cd039b534229
BLAKE2b-256 cfa9d97ca9967cb2d5cf56aa699627367d3df69311807d5c48ccc0c9eea93895

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2c0429bdd1097e93045aa30f76e90820d825458e619fdd8403e129f3e321ce8
MD5 3650cc1bf80a671cc3ff8cc73cbfb182
BLAKE2b-256 b956a3cd5f543867d7fb85338a6db20c427f4bd8f6ae6ca735a7836e2f84fb6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b3c66e3ffa5e572b4f952f790b79958a352f688d847cec782e40c4f74d48b99c
MD5 b58fa6ef7690ecaeee0ae9e7fd3e3934
BLAKE2b-256 8ebcd1087edda75ec0c4329b32b0f1ec69459c093562b142cc635a0a77b8ca14

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.64.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.64.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.64.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 3c3479081c6e30c9fed3c039c901d9d742ba500f8e3bb638972aef2e7d90c965
MD5 3e01b04be0fd514487ac0dede01d0038
BLAKE2b-256 641a5be985d9e43142aab7d3a5688851e6b2c5e8eb8a98655c6d906fe0b01d5b

See more details on using hashes here.

Provenance

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