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.66.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.66.1-cp38-abi3-win_amd64.whl (23.6 MB view details)

Uploaded CPython 3.8+Windows x86-64

py_rattler_build-0.66.1-cp38-abi3-win32.whl (20.8 MB view details)

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.66.1-cp38-abi3-musllinux_1_2_x86_64.whl (28.7 MB view details)

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

py_rattler_build-0.66.1-cp38-abi3-musllinux_1_2_armv7l.whl (27.1 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.66.1-cp38-abi3-musllinux_1_2_aarch64.whl (28.0 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.66.1-cp38-abi3-manylinux_2_28_armv7l.whl (26.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.66.1-cp38-abi3-manylinux_2_28_aarch64.whl (27.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.66.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28.1 MB view details)

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

py_rattler_build-0.66.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.66.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (50.4 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.66.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.66.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.66.1.tar.gz
Algorithm Hash digest
SHA256 7bf0f6829de41fd396a98fb62c3ec7e0ea0cdbcb600bd0f7939eb5523939b2f8
MD5 b1f5db588812640ad54e607ef91dcaff
BLAKE2b-256 58e446aee3c7e9f214ba3f07217907b9789f69438ee83fa66d16b18f6c4ce14d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ac9180841938e728be840fd7fc46669044d05fe915a3598c5d8fda2153fa6577
MD5 8330ddfe8c4261d4af6cd1b9e02ff306
BLAKE2b-256 b01377e598143cc098a468328f03e2cf5baa116dce9a043a8250225a48fd7b67

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 d2194e9f407981d3e6fe133fb7bf634f58350495557d1b579ad55db28886f2b8
MD5 f412cbb5d53891511a777a19df0c83a9
BLAKE2b-256 51b92acccb29a1a9b392448744650fbe20c25c466582dd0bc74e98914df623e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8d65a25e3af375d014c95d661da79d0f9401885ab376db1be9df2d412683e7ae
MD5 f0362630f1756ef6d6377ae0ab4ad891
BLAKE2b-256 5a791c5bac92b67f1180bbf6d063daaaba52385bc65b64b3841843f08232779e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 ce2b065d997a618fc7903506ea17ebc26fd8680cab0bab6fd02dc0d37d0a92dd
MD5 200172ee6cb954e4dead1a09256f5e80
BLAKE2b-256 dd28943b456845fbe6ba0daf7bf0de14c551ff0ba6a7b5a26a98d459adfc8176

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8606694113880a2c2f961d1d98570b6efe26311561310ea753c08b6862a08820
MD5 c433cb66135aa6386515ec4185576446
BLAKE2b-256 acd61b29d879344aa6205507d0db528573310bcf1740833432e8c1ccd91552a1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 c01270d0379e91a9b6ba6f79f2b555490d0038df2a70c00815780e5859b69d2a
MD5 c68a4f364d870fc6239470ff848ac728
BLAKE2b-256 679d41b42d0e572bd19ea1fe4707409a5f4865cc84854ca44995f143c71b51d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4915fc6462a091f587259516063d7d333567cc9479a1be2c4a1e067e93c71e05
MD5 291e52cc993890563aeb07bb8fe1125b
BLAKE2b-256 90344c9bcbaf7a7f82f424befd7b446c2da75943c56cfcf87148a28960c020a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b66733d47c25631b665fca3b27a832dcc80232d7010d0d48716f960bb19bbca
MD5 80e07be8291e81de5ea791110529e570
BLAKE2b-256 a58d3df9b38d18f132ed3cce3e883bb86460a6adaba47cf40d506cce4c4230d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.66.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d4d796e5c7cccb078cf126f8dee1e2a269445a09b3f231c26ddf5f2287b7ce98
MD5 b86680caf611cd94d9b2bf60a6361570
BLAKE2b-256 28601141627ae745601baaf92d1a363f898459db5ca98f22bc40fd25f755fcc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.66.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.66.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.66.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 8392817eb99dcb0a0e50967a40a324903343ee8ce07a36e4b6b418b13d64649b
MD5 caa3b10436f0d6e74f83b3ab164654fa
BLAKE2b-256 3bb3ddf578682cd670c9ef751b7d454d07dc082e56bcdf0fd0e056c95a696070

See more details on using hashes here.

Provenance

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