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.58.1.tar.gz (1.6 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.58.1-cp38-abi3-win_amd64.whl (21.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.58.1-cp38-abi3-win32.whl (18.8 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_x86_64.whl (27.3 MB view details)

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

py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_armv7l.whl (25.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_aarch64.whl (26.7 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.58.1-cp38-abi3-manylinux_2_28_armv7l.whl (25.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.58.1-cp38-abi3-manylinux_2_28_aarch64.whl (26.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.58.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.7 MB view details)

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

py_rattler_build-0.58.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (28.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.58.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (46.1 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.58.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.58.1.tar.gz
  • Upload date:
  • Size: 1.6 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.58.1.tar.gz
Algorithm Hash digest
SHA256 cdd2f67ae46de34a01f3e718170ffd238d08aa29028e004786db5b5f55bcc74b
MD5 3bd70f2297113b7e35a51bf789acf2f1
BLAKE2b-256 889df378c4fdcf9824fd255b93fe464d4ee45e19930560d6c5277b2c7b77db07

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1.tar.gz:

Publisher: python-release.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.58.1-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ccbb0337b2f11a4b39600bd38eeb3ea612e27019391739d55b2b7409b4628a0d
MD5 26b2ad996bd29e414be15481a3ef5310
BLAKE2b-256 b56dc3c323c1fdf439bd227103ffa42209d3acc65cedefd01451d185ef199335

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-win_amd64.whl:

Publisher: python-release.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.58.1-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 67d08acced4de620f79fb027dc08a132d8e6fe4d8f2b4f26e1a3a23bd8220489
MD5 2a714250694042f68fe56db80db67128
BLAKE2b-256 9f1c8f80075051faa7d2fd1158ba98bb37fa98adaeb7fdc0ac86ba5dee3b45eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-win32.whl:

Publisher: python-release.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.58.1-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c57c840912fc844bfb112b573597586a8b15f9a13881e91d7a557e057622de8c
MD5 55ab2312c0e8e4bf923211c1edf8de22
BLAKE2b-256 ff2b18995c8863986e5eeeedd467be19241bd858771f580b48f613b6053c4208

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_x86_64.whl:

Publisher: python-release.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.58.1-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 60687ae465e8fa46aaa516cb4131c34672ec11e702243b131e53eb1605b46a45
MD5 4b2839d375e67009896bd10af2046204
BLAKE2b-256 3a206d8e06377e0a8aa3ed5d8e57bd0531888e511d79d63cee64b483aa770025

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_armv7l.whl:

Publisher: python-release.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.58.1-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2c2f5b120ece6609f6158c27379e085fba6420f933a3dcccdb6f1feb802111f9
MD5 bad60626f814e38a56561ff3b66cc8df
BLAKE2b-256 9b33324e3bc8e08725bba5177fef3d0d361da25306e8c4659fdcf4dceec12808

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-musllinux_1_2_aarch64.whl:

Publisher: python-release.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.58.1-cp38-abi3-manylinux_2_28_armv7l.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 2384a44e4319187ade6272a4d0197c9cb478f17c835b6a9fddf61483a5ff9405
MD5 fc7d5af7f95bac77a73e04342c98cc0a
BLAKE2b-256 b8fa3164b2b9dc92d1d3b9f672c8a12d8481ce9ecfbf5088616226ab0a4acef6

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_28_armv7l.whl:

Publisher: python-release.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.58.1-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 94aae545df8f25cd1ca485671bef153576a7be1433f992a2d872dd8d9643a591
MD5 c3611bb6bd64a93f243ab866ca258a24
BLAKE2b-256 a639fac7c574412e72c1d3e20fa0cf4dea6ad30b9ef44522e3a938de20d14ce6

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_28_aarch64.whl:

Publisher: python-release.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.58.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d3604f1badb946e72ce1967fb6ce9c27b6aa7d51c021d04d2c7a4c2101ceb04
MD5 1a0ba5f8685b46f13728c256120ac4a4
BLAKE2b-256 298e4d67b59718b1987b6d92c555da7c7db7bad572a501f1f014761409ec6501

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-release.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.58.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 564ccb994e5b771d88a10cbe371b9b597c0cdd726b01adb193b99fdcf0243e3d
MD5 626f8a7f5addd83eb1a86ebedf3dfddb
BLAKE2b-256 ef0524945bc2f54eb7bbde89ece3e2a8c8778994a0253548de010bf99ac4d8b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python-release.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.58.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.58.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e46f252ba2c97d7f770bd6981a5596f9fcc97f6c94b8fd0e9788844e120c3970
MD5 9d4b97510a906a518d44f17d8afa8730
BLAKE2b-256 9610d01d510bcd5a7759be07f573c13ec3dd7d5ff51236bbfe7229122fe53f1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.58.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: python-release.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