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.70.1.tar.gz (1.8 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.70.1-cp38-abi3-win_amd64.whl (23.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.70.1-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.70.1-cp38-abi3-musllinux_1_2_armv7l.whl (26.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.70.1-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.70.1-cp38-abi3-manylinux_2_28_armv7l.whl (26.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.70.1-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.70.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.7 MB view details)

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

py_rattler_build-0.70.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.70.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (49.7 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.70.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.70.1.tar.gz
  • Upload date:
  • Size: 1.8 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.70.1.tar.gz
Algorithm Hash digest
SHA256 74e82d62b3bbdfd8d424d5cd290923c4d1e661166ff5278e8d568f0f8b144f3a
MD5 eef2ea81a20e7d911545a4b925961c09
BLAKE2b-256 037d0dbc7c4afa3172f8d98ffd77c1ee205f38af18aca8bda4b30cc562c6ba1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2926bb482646cbb56cc1db943fec7a4de372d68fec45e68217c9a50960e0c708
MD5 7f4dc897034bb12ddf79ca2b078451f6
BLAKE2b-256 cbb692a0b9eacbc12a124e8e9b088893dc35b251df71a4bef675800d61497583

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 cbcdd20de477aca91cad5d8667ca4f523284a2a1d41cd5830fe2436200c038a6
MD5 43cfb4adea34c3540533e25ea1575163
BLAKE2b-256 2da1a6f0a27bed6e64de8ca8a780005aaf6ae55919ec780d5c0c324f011ad674

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 15f2b936e8c605324c49809d9bd597f582ccb61b2dca70c6c3aa2cc74b4435bb
MD5 679ca45fc04b38eba9663a7e5d57ac9b
BLAKE2b-256 3f0b4a8aa1e0c2515d27f9be397d2fc92c882b88bb10da1cd0fe3f4958d3d049

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 2e768a2f2625e458ea847e5d51af3114eb1eab678f66a9b772120b3b579d8522
MD5 cfe87830102be687eb3cc9d3aae4cef2
BLAKE2b-256 13bdbe6106942c456a8626451bdda752460e54d3e9f186dc3b39d5301badb545

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d9254f422d57cda493712e987a81e8da1b6f62d03151eb0ba9d1e33738fa5715
MD5 5b3b6ae4f624627a01377177b5838e36
BLAKE2b-256 04c045877729abae96109dcec7c796b9c42a961f660c1726555f19f5bf635368

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 a51803e6f8a59a8e740a4042af8c81903d910f1b72e92f9e8baa653c94c7a7de
MD5 23f4f6f3cdf20dd4bbdd7ba4952a55fa
BLAKE2b-256 0963976893b61397a64877557ee83fcfa8734d2db8d78ffa2db29b7e0e8fc26f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 78d36c8a4613a8dedea9f062578ad09af55763f25a958546317fb30995f6c58b
MD5 9dc4ee08be71605394dad7aa48f933bd
BLAKE2b-256 e91fd7213c387cf2121e6b81d62fdacdb9eeda2ccecd8e81a59cfcc8607f3f55

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9bbf9e563264cee05daf65cc516472579f07b2a74c6e37f2a69e3101eb52fd02
MD5 2d4c853ae0d347434e52d1a2b92f5ab8
BLAKE2b-256 a743b39ba4e41b94ddae355f9cda8d38896f7572ebb986ae9a981972ffd1f44c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.70.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1b4db1aab0327e41d4361daa3886ff1e33085b8593be5cb05b8a1e90febf70d2
MD5 6aa93f66f6550b76f971b996f88be4eb
BLAKE2b-256 94905175b1c6bdc7cc793840f68b7e7e7c4329d966b186aa394f404db110747c

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.70.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.70.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.70.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 2028a7ba35fdaed31c30a0c4d1f4b2973b71f898329bd12d214ec3a42cbf0919
MD5 bc98f6947774b3fbfb20ccb0dddda9d8
BLAKE2b-256 b465702e200a6657643eedc3c4ad9f895cfdda8195e0921681794ae739ccd3d3

See more details on using hashes here.

Provenance

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