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

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.64.0-cp38-abi3-win32.whl (19.6 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.64.0-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.0-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.0-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.0-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.0-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.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.6 MB view details)

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

py_rattler_build-0.64.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.64.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.64.0.tar.gz
Algorithm Hash digest
SHA256 0748ff3e943c66a66c88d22c1d0348ff63319d903d808401b2802c1c1c85113a
MD5 d6b44237cab87d02d1263d4785cfe857
BLAKE2b-256 1e927b5ac4feb4aae050b381d9d893857d4c883e60ae2694fdfc91da1213a63d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 73678ccc466840029f518de6f7b8a25a9e79ea7c79d70369bafa5e217a7d2dde
MD5 b68bc50a03a502abedd538f610734265
BLAKE2b-256 e64c7db725dc339d3db1891bfcf9785099dde1f35545af23a4abc2ea1ad9dbc7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 d42fb1f575dc4acbc961e152092d355adaff5ebd847ccad93434577be3d667fe
MD5 b8c539abf9935c8a3707097e3796658c
BLAKE2b-256 0494be56b84e1952edb988142cb7ae90fe9adfdb84e70b24fb5b3a7fa130f245

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ea2a35fe89bc3ab38137ba067ee0977abd4d754da7365d89de662813323895db
MD5 75179c869569c22caa00ac75fccf27a7
BLAKE2b-256 15775fca4db836bef9bc2495dea8cd1a2bff7cabd3c7c6a465c31205a9da270a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 e25376651af6680420a11b85c11865c9f53ddea0327cd69b3395eb8f84b8b806
MD5 755bd39bd122552bbee1f4a28becf7af
BLAKE2b-256 9727d89a8557bd7daeb46435b395b7c5150c1915ad4e19d88386b43c26271f96

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b0389052def8cb4e9eba5ad294e244d82893837b67e542b7572ec8e80eccc3dd
MD5 4dc6066036503b1d5420b772cbe92931
BLAKE2b-256 8cbe0e4c3fe31bd8c97ee1b7952c784741e407bf64b495695f698b7dce88bf05

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 3956d0616520aac0cc9b1874e68add14e72bd5aa6fc54a310a4c88f4d291cc40
MD5 1f4cb272b720f9c03567e0f6ad971130
BLAKE2b-256 e1e7ea23e0a87ecb044f5223bbbff09bd3d14d4f3fad96e63e08bcb394edb5f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 afec7007ef663175bacf0557abc46821bef1e37cdc22aaa98375969ae5a49c77
MD5 ffada9723a521e724827388fa3b4f048
BLAKE2b-256 ff6f30aaeccf099b30b71d2c789b365e66a4c218af2f636a960b7fd2c24682b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4639c199e147b6aaa3b177fba61cad2513dc7ae6e3fd619169f52d5287245fdc
MD5 649139ec15d7a1d19a6a15ea96fe857e
BLAKE2b-256 0cc8391e43cd94da943bac658b201be28d5889287fccb90e32a0bff949615556

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.64.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 761bfe7a5beb995783b0241a04bf8a6371e2ecc2f563ab1c2b7edd5b21301215
MD5 7c650a991f9dc1f4157e2a0be81918dc
BLAKE2b-256 455e4651b69dad61176e1a7d7a47cd67d7b1dd68865e9c620b8cbf8fa100b5cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.64.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.64.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.64.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 51220c4c810899ee1e165d3924bc965a6bf142334adabf3cf388acb28daca927
MD5 4a506fc80aba8804c0adfb0b87cb5ba3
BLAKE2b-256 3eac4e2f288ef26c2338941909eebed613adf1e3c784a600c6d36257238f26ee

See more details on using hashes here.

Provenance

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