Skip to main content

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.

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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.73.0-cp38-abi3-musllinux_1_2_x86_64.whl (29.1 MB view details)

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

py_rattler_build-0.73.0-cp38-abi3-musllinux_1_2_armv7l.whl (27.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

py_rattler_build-0.73.0-cp38-abi3-musllinux_1_2_aarch64.whl (28.3 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.73.0-cp38-abi3-manylinux_2_28_armv7l.whl (27.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARMv7l

py_rattler_build-0.73.0-cp38-abi3-manylinux_2_28_aarch64.whl (28.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.73.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.3 MB view details)

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

py_rattler_build-0.73.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (30.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.73.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (48.2 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.73.0.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.73.0.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.73.0.tar.gz
Algorithm Hash digest
SHA256 591190665e0af3fd6df739f0f68b0a176a9399f65042bd9a7ce6a73cb82b0fe7
MD5 f6c9109f1fb1c15307c35f85f22fe6f2
BLAKE2b-256 d8179ebac88a4c83e317ab94148971781dc6d23eb7444033e64655d3da4556a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e9ca398fa9939ae4b551a30900cacf843639f8637f57a5e73bc5bcb7c993f899
MD5 af57d9d1d386cad46d876461c493c964
BLAKE2b-256 bef17f9b04b197386311f24777a24de09b16d6077975c10cf0adc3e656dc74fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 b91c8cad8c4ac469ab14a9c2204b2c015e40b5b25c928c3f15e02bb52b69938d
MD5 46fd5f52252384c12a2850aa08c25516
BLAKE2b-256 09e342182cd1dd7397946085672f9d48354ccc74caa55b542db0368f3be13893

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 686bf7a951a5b972a24b4e9e6a5e4a98ff75a40aeb865d1f0b57a46d7842cc2d
MD5 245a7ffb504ec71858d9c24dbe3d84b4
BLAKE2b-256 cf2c6c0266cddeb9abeca46434b8eb204451c753c11bb1837f24ef2c1307efdc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 2ab943f6dd87ba88af1cdfcee869c288a17b2d63cfd11b83f31e553c7d335aa3
MD5 d05c59b3980afd4588668255976a977e
BLAKE2b-256 8fa60c0599a74bda9f93f79a233e8ba8fc5bd4a87f36d583bd96c6304aad0a43

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7e76773552cb069f85083bc9147039b58bbd75498126ee0af292535bfdcb3341
MD5 df53e23e5bf6bf98b5cb04ced079a564
BLAKE2b-256 dae6cb60baa30683e36c3043ce72d831b719fda133a9b41365da6eb57aacd6bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 bf04770650f7ff5c2e2f2c774c1479bc258d1a0a966eb1d1f6115154804cbe5b
MD5 7f537d7d04a31588663872fa681922fc
BLAKE2b-256 ea952c54a12566d6002ecae414909e6c9f1eb4a3c2cd3b3fc1f5c65a83e25236

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eeb90ef4a0a27986cfdd48f90c965d5186a4ecf5c91acc15826b96d0ce69f3e4
MD5 b41b9015004c50840d0318fbd616a30f
BLAKE2b-256 4bed3af8a633a1a92645ad9319b63e094ee9810532ecc40c69c13b56fb0d9e41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a0d8b3fa656b334d16132927d37ef6061d706ee6598e5ccac98d8d8fb03a242
MD5 afbb5ce09dab71d1f805bb4d05488146
BLAKE2b-256 a7ed656658951a55581c4d94d58c0d938c3b8e1d7116dc9c1040ea7b42689454

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.73.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 871c1a48759c92e57036246abb4ad95df8d4ef0b22c61ecbef0701c885936830
MD5 02ca080a286a70f6701dc5119630c937
BLAKE2b-256 9856153da715f130dd2e7dfa72b1dc71d50b8e2028593614946a255e32b3eda5

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.73.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.73.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.73.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 73e24dc34fb30038dbc6f721d4294e1a14f8920e4d0cd5745d20db2b28b01f40
MD5 48a1aea74e410f5096fbbcf4b245e933
BLAKE2b-256 6d7b02185f662033952e08858629074f293d2d5f2620cc989532f0071bece485

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.73.0 This release

11 files

0.72.2

11 files

0.72.1

11 files

0.72.0

11 files

0.71.0

11 files

0.70.1

11 files

0.70.0

11 files

0.69.1

11 files

0.69.0

11 files

0.68.0

11 files

0.67.0

11 files

0.66.2

11 files

0.66.1

11 files

0.66.0

11 files

0.65.1

11 files

0.65.0

11 files

0.64.1

11 files

0.64.0

11 files

0.63.1

11 files

0.63.0

11 files

0.62.2

11 files

0.62.1

11 files

0.62.0

11 files

0.61.4

11 files

0.61.3

11 files

0.61.2

11 files

0.61.1

11 files

0.61.0

11 files

0.60.0

11 files

0.58.4

11 files

0.58.3

11 files

0.58.2

11 files

0.58.1

11 files

0.58.0

11 files

0.48.0

11 files

0.47.0

12 files

0.44.0

12 files

0.35.9

12 files

0.35.7

12 files

0.35.1

12 files

0.1.0

12 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page