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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.61.3-cp38-abi3-win32.whl (19.3 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.61.3-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.61.3-cp38-abi3-musllinux_1_2_armv7l.whl (26.3 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.61.3-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.61.3-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.61.3-cp38-abi3-manylinux_2_28_aarch64.whl (27.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.61.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.4 MB view details)

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

py_rattler_build-0.61.3-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.61.3-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (47.5 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.61.3.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.61.3.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.61.3.tar.gz
Algorithm Hash digest
SHA256 138e8c3f765513aead91ebc6a46f1b60e1e625a76586fc3388d24531547b1515
MD5 c81162f48070461cc193bb45017e266c
BLAKE2b-256 4f3bd2cf7de214c5e7a2e49887042205f2c438a45595195b555e2f6908cffa0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d68ed16b3a1e095b9642b5107f45f20c68d0ad6d620ef424a53f47a732278f09
MD5 29bbf1783e3df71224a14e8161643419
BLAKE2b-256 a491693ea6d0a046114e7813db8a14204415f1e49e6418e2413dde68bbe6114b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 8f119a587a4c2078fbcf4b09a904e6e52f73008f437d5af4b934c42d371bcb1d
MD5 b7ff7be38358efe66f3bbe41eb6b5366
BLAKE2b-256 ec3a8bafd44a9e20852d45e5a58fd22d83b5d5b372e7a387d17e870dc33f74e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5b5041bd70e28282b6415bd1c06a4c700d9f4714bac6f599d439f892d101e183
MD5 22099e1410405e0d30ac5726276b4c38
BLAKE2b-256 3421154792f48716a6c4f62b7b8270923520783c69bf8412e71f18ac67880ada

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 a108572c92699991e1ebf4d277f741ebd8d6d43c8a94d7fd84410a68b55d5d88
MD5 df5e196b2f9af78080b39de276f71da7
BLAKE2b-256 568d31169e176e1096ceef3d08dbfc011257d1eab2eabff441af9f248486de21

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1c6555ff9f6c366173160ba7d99f7f79712a36853fc925ecad4a2b45478235e2
MD5 a1dc8bb2003a3077eead3ab318ffc1a9
BLAKE2b-256 e87bc442abcca1406679d641986dc5671a6951edcd2361095fc9ad0cc3fa994c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 69b08529f5a64a055424d19ccbd14fa0e91e9a7bab006320f0b4c8b8dfe2e813
MD5 ded122f791f24bda2496995ed0dc8cfb
BLAKE2b-256 eacc0f0cc50583b4bb7875c77a092ebb62062a57aa19f8297524d315f01350c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cbeef0c961d80dc7a44016536a322a535a1292ee73dd87d41a31ad1be5d024fa
MD5 43dac6fe75a134cd184e961ca41d65e2
BLAKE2b-256 4f8ffbf4ac8343d6feea6cd413a047892e6ec4a097631e9ac434115a7f7760cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 313da4d1060c7c43d727ba82d8760d7ceede7773eb647651c56bb07d6a3f0d07
MD5 debd0f0ba0a60d6a579adcd112ff1980
BLAKE2b-256 ae506d006e8cce8b7568909b5bfafea72e11edccba438b3b09664cacb53424a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.3-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f47db5a3f9b4c3ef5247091d6316393eda35cedad586c1282f951187103aa327
MD5 b7c5f80df8ff4627bd12a14dd70908dd
BLAKE2b-256 0a01ec736b716470e3bc2de8cf9a84428817cc090d7ca5f1d35ca77060a1eb21

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.61.3-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.61.3-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.61.3-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 e2718d11dd6cc56a0bbc91d4a00d98ac0aa74429164a6c0d3edef94e6e13e661
MD5 bda15858c6db686f69183d0097c18c15
BLAKE2b-256 c6ca8b74ab5abc8e2789ae9690eaa2ee1dbb51c7f630bf04f19db011b2e035e6

See more details on using hashes here.

Provenance

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