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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.61.4-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.4-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.4-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.4-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.4-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.4-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.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.61.4.tar.gz
  • Upload date:
  • Size: 1.7 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.4.tar.gz
Algorithm Hash digest
SHA256 945b865915e8292fdf378358e46ea168592c391099152421821b03b90d7d4b0e
MD5 5997cbf53b7f341011be868bdf816775
BLAKE2b-256 d6556c0e441fbee7250321566b3e81c33c3f154c2048afb1fef8380ae04ecde1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 468b26dbf12839aed23a555aba1ea60695078c64f7fce2b8b3e25c676a9da18d
MD5 e79ff8fa5bacfce78b3c7e1fe87f16f7
BLAKE2b-256 714d954be2783e14225943799bdba5f720956e60962093d7849c7af35c0d8e0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 53dc6d3c9cc07b76ad3eb281e1f4fba538b244759ded3640769f828c40c32517
MD5 bdf14777c24644d85fc86467428dbcee
BLAKE2b-256 a619419f79f6c291a0f5ca8e5e3db7824e301761db1979393cd1823e8dbc40bb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 044b0df19ceee984b5ca7e5c6a8728731c3d214447366135602a8670d74f6f54
MD5 53985bed1e527e60f9bc71b381c1c31a
BLAKE2b-256 47da0fdc6a753ba0922597d1b8abaa8d9db12aaf55a46e935286a594f3556475

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 2104a53f7469a3560351139b042eb5cf1effbc787d273ccac91b962cf6b5ff7b
MD5 e08157a0a9faad470e38900a7f47abd4
BLAKE2b-256 fa2771e45a6094784469b922e53180cebf93a3bef7034306bceb31e296abc088

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 632ea4177c070fe11d684c1c1a6b8069b58ca07e92bad90b11124e5dedad1e79
MD5 4f4b79cdb690fbb38028d7d38f26081f
BLAKE2b-256 444d32d2610d38d277846397905771edbfe61bd6a3e01aad0caa14d7860e9d14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 d9ca3b21f61cd5397bd1bbe3e9f39af9a45ebd409f4691c03617a35c745e1212
MD5 1e396a7fa7059be71840cf994c3315f4
BLAKE2b-256 4888ce25e340300a3c5d771c3aaf00f79fa3a6b660955db23e18c5757a221bc8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 02bfc20bd416c10f1cb21b1f12abd5a5d371473a95e165cabb64487fa8c0e7af
MD5 1940e8aeb5ba1fad3f587743fc2f0465
BLAKE2b-256 74fd0a40b46ec81048d5e2c5e40834cd4d0cd52927501d38c172685a6843858f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5720fff2da277fe8f0a2ba315441bdd5955e1e8d4e237705c95d5e9fbb60d41
MD5 f233acb0586725a5f2e87bbb8395cea3
BLAKE2b-256 803bce9a0675d3f552b3a4a1faccd01f299c51a6acc827d36bae28951d910c07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.61.4-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 003f57de25686b9572bf41f655b7573969ab34ae2b331fb4ecb8ea5c30bb7e78
MD5 969af3c6486821312c78de7c5297fb0a
BLAKE2b-256 636ccb207f14d5a7c94509e4f84e3a99e10b1b4ca71041652acffbfd4a4ac115

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.61.4-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.4-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.4-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 2101983451fe0f23e9bdfafaf3b9505aa3349e1c962a2e34034831cff0d4a913
MD5 e0b37220b31d8ee5b47da9cf19c8255d
BLAKE2b-256 275ff433b5d8cfd704dddc91ce85735b6fe1bbb82ab58cfdec60f84e9652d70f

See more details on using hashes here.

Provenance

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