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.65.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.65.1-cp38-abi3-win_amd64.whl (23.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.65.1-cp38-abi3-win32.whl (20.4 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.65.1-cp38-abi3-musllinux_1_2_x86_64.whl (29.3 MB view details)

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

py_rattler_build-0.65.1-cp38-abi3-musllinux_1_2_armv7l.whl (27.7 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.65.1-cp38-abi3-musllinux_1_2_aarch64.whl (28.6 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.65.1-cp38-abi3-manylinux_2_28_armv7l.whl (27.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.65.1-cp38-abi3-manylinux_2_28_aarch64.whl (28.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.65.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28.7 MB view details)

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

py_rattler_build-0.65.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (31.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.65.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (49.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.65.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.65.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.65.1.tar.gz
Algorithm Hash digest
SHA256 896468793a45747b7ac1f860196432d9d57ded413ac4aceb9e76a06431ce186f
MD5 2433c4e80c3d770668b2a9d2416724fe
BLAKE2b-256 b3ab0b7b7771f4845ac74f3c9b0b1ef14cf6b30823c98f3803325a34cfa41688

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4e78ba95854eadfb1cb82b3070691ff7364ec20bbf2e49919a951eb584a78e96
MD5 52d97e61857a7035f4257fa9c7b253ba
BLAKE2b-256 51a429459b8af300563ceee4409d6897173449a408307d847eb769b9153f2bb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 0306d062c8418890ffe53ca24b9e787690b869559586c2bb9b0370d3f6bd1aa6
MD5 39339cdf675000fc2a9eba19e6fefc98
BLAKE2b-256 efc9bf6b607e114681fa4d0f7bd8fde02a96b5f178932a0b4205ca5b2089dbb2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0513eefec7645b6edf2821baf785f102f3521c192960f7d209a2231345067deb
MD5 6a30fcc29a8cf1f7305c1ca11f590843
BLAKE2b-256 4db2a202caa23a748b3935373ed0c9890d8677413619cd9d58472931c77e81b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 9aa4087a5db3f2785ddf751fec7a12085e19b1c3b1d556ac74de527c7e2c5dc7
MD5 d7967db41e536e4baa6d9295235e9515
BLAKE2b-256 f7ae14065a213acd03b69c35fe9d74533e06bbc8c566e72cbf26d7062af29827

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 fa73feca1a0ecac720171335a7e6de0f5fac1f24b125eeffe6605c1d98cf888d
MD5 eff38de78553d067e2b7b60282d32fd0
BLAKE2b-256 302a2545c1abd42eda194149d1e839b50d841ada6db57a2cb52620354fc3ac9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 add97278c127ce7370a71aba5b71f3d44e406108dba1d4cffeb4b723b6cd5f76
MD5 e7adfe7ddf221cc0f76bbf5add12f586
BLAKE2b-256 f02262a43bd6723ca4291c0b482193e1fb4cf2544b41614d478468f1d0d2bd38

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e2ac9b566f151b1c566f7685b2b06a646c3cbf26750cc0764f32abaaf0415e6a
MD5 fd6c76dd1af5774193bd0d515c7d91a2
BLAKE2b-256 fe86a52b1009948585ad2d65f050bb7fda21c8d53124a3ce3f7148fb1aa4ae40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 921dffb8f8aaaae26e6b46f0b135fa4c15ce4f21ad7045e84d7fceed4f4cf64f
MD5 d80b50adfe73882e90d831652869ffb4
BLAKE2b-256 b68a28e72daca680155ff924d73f94da9df904f37919067d3838d3f43ff7fbfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1813147ac334b7f06ebc75c351a56cced44bd841d0c9015185198ef38d8cc74e
MD5 5e2ccda15d884ca45b0a6dfd85448143
BLAKE2b-256 1f1ca5e3da3d898918a746c436c47082345be71ea825e8eff470f2ff570c9c09

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.65.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.65.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.65.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 3adbdd9ba41c15b6360a35691cf9698804fa2c453519b9794d90bb2c2f67d7b3
MD5 601f3d5a17c3b8f89c747739cba372f2
BLAKE2b-256 d8c4c92052e507d0afe3c4280a52c7b0bb3111f2bcc3a1a06a43f95cee4baa8c

See more details on using hashes here.

Provenance

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