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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

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

File metadata

  • Download URL: py_rattler_build-0.65.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.65.0.tar.gz
Algorithm Hash digest
SHA256 ca6c6ccb2ecce8356c83037929e87ffa907cf5a806a1958629ef4bd4d9dd3617
MD5 84bf50dbefcdd3a127e6a363e0703ef4
BLAKE2b-256 da455b10208a3b5a89718817686896c3233fb9a6584883a50899c7ff87052685

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bb9dd3517606be4f2ee6ab139a2d85962938d7c25c17b694f72e511c098b5608
MD5 2a6dc580b30bdb3c50cd483d4ee0daed
BLAKE2b-256 22aa9df39f2cbc01f22b783d27e45f0f57b3300aa83774d54cb87a8ed13cc85e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 4bc0694e1a2fdbfdf7b4d838915b314aaf00bcadb05316cbefc4818798e5c5a9
MD5 921ff56349fecd82f49967a668858009
BLAKE2b-256 357fa071bfa587212417508114314c4b3900febe70afa5452c402aaec327d1ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 af2e1a569ce5d5b372ba0a0459906c546f58cd19731bcedbf699201c77ff3035
MD5 3d0cf7941142174f0317b52157860e80
BLAKE2b-256 24ccc31a5ace300441b7aecb0bb1972a5bdc1e0218840c5ec50f7dc922cdee7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 c2a6c571ebaf1bd0c062df12bb052d532dea21db08b334e064fa25a4ec6ff38d
MD5 f45769115bfa6584490b9ee5eb23178b
BLAKE2b-256 884b3fd21510bedc973bb5c3459bb271c624736357437e60e92680f202f6cd06

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 352e71a8cc2ec9df771beae5978b212a69bf45c867bd7ebddfa1fd6bf72c9668
MD5 e85bc1fea0785c8202ac4a45e2cb772d
BLAKE2b-256 d922ed0c546816f1c928f960a9b8a10b159df636834d73a7c27ba8d9f36cac88

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 63b7cd182d0b22cd845c2f4392c009efb6f9b7ed1298993abc2a605cd55a055e
MD5 68101b14c81abca1d9d875172d7d99c5
BLAKE2b-256 a0264305f69e09d44ea82f205c33edbf4aaf74541e5c9b1600bd206627935041

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8ccd47ecaf54fc313aa8e7c9f2169eb8337ace097ce874e27c6a3b3ae552bf63
MD5 4dcb59a86138107e6716eef836ba12c0
BLAKE2b-256 59ca08235bffa1e738263162631c2fe81d6087baaa4d80f84194d01035c2801e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ccfed309ddf8338568bf80bd314aa5cdcb8fe7cac1e7c8ad15faf5a99873c23d
MD5 d89949d4881e47ff085e626457ba04f3
BLAKE2b-256 656b15590b47776993f659c8826ebfc847821d3eb43cda6b0647cf791d058205

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.65.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6ad6a1f53f6a9f58330551bdb3751da43840569fd7be59f38d3e4fe8b493e13a
MD5 07c591a3669862a5a86acba2de7b6379
BLAKE2b-256 0e08b7a1ef82b033e6e437549e906a007159a3eb0aac06b1ced03878b18e21e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.65.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.65.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.65.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 25ddf2ae7a1df880c0198463f5a0548eca3ecce5b540f80c766a481c3394e7a7
MD5 b8cb5631418bcc6fbf6a89cf6a3ce18c
BLAKE2b-256 fe26c95d7f2d6a7bd4ea7f7566e278be6914c382363b1907f8386e7d08f73162

See more details on using hashes here.

Provenance

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