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

Uploaded CPython 3.8+Windows x86-64

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

Uploaded CPython 3.8+Windows x86

py_rattler_build-0.69.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.69.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.69.1-cp38-abi3-musllinux_1_2_aarch64.whl (27.5 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

py_rattler_build-0.69.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.69.1-cp38-abi3-manylinux_2_28_aarch64.whl (27.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

py_rattler_build-0.69.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.6 MB view details)

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

py_rattler_build-0.69.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (29.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

py_rattler_build-0.69.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (49.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.69.1.tar.gz.

File metadata

  • Download URL: py_rattler_build-0.69.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.69.1.tar.gz
Algorithm Hash digest
SHA256 656708b287e2cffd9802657537a80b43e95f35ecee59076d555eaec10fa81d4d
MD5 b84dc229bdf437926bb7366bde52cd89
BLAKE2b-256 1d0b51238a2f6d44600f3db5336c16df4d8d71336bf6bd1f0e4327e7785d71e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7e3ddbe435753b38127f96d1cdeb88a7372074344f70cbb079ad0ff4f4700a3b
MD5 191f55b610f7fdb0556375724c05bcde
BLAKE2b-256 1a1d4cc943755823b131be0b002f8be68aabf87ee7ab503572f5650f006aa927

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 f7236478c6f8f703f32621fae38f4075070901c73f3a5b1858dd9f5e90954d8c
MD5 097c828ed649dc379e4a2d47899aba86
BLAKE2b-256 fb731822f69a81589893b0818b319689a2249a6b53c12edf2ee96e426c8744ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 57d7c5e92f428de92c560059eab93332db645c0db3923cf02a29b42925774eb1
MD5 8130679cebcf5b602e8f9bc3342826e8
BLAKE2b-256 6595c1b6de43c42c38d0f690e102b3417b4e83017a2b8fd4d7c0af4a4c49c5e9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 08150d80860735a26ed09b114772f6b49c1f3f5994fe6285041b910363656f50
MD5 a6ef1deac4df624ff8261a190ef5a05b
BLAKE2b-256 fca965a2d3f6e24f1b33d4e13989d9e1956b43b64746dbb7ab71463a23979b1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 95c510b6838b07051ee5b050ba6d091a7fbe68f45cfd3c719ce32585b9a81864
MD5 5bd18248a35e505c5789b9cfb85295a0
BLAKE2b-256 4d659d14f42ea84b77d974e0ed3fffa8417de7e66da03cff75efbe04c0c93ad7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 c48521fb2e6b9bbc8a47b62826c7d703e494b3fe2e0002aac9a2be421d772018
MD5 9d5616d9c7650c846915fb7000b4f6f9
BLAKE2b-256 cee543646ac8a4397075bb5cc2d1962583cec6ebe6586e06284ccee9dcc7eaed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 60c4f32debdd21f8cefbfcd9ff7064f4f7f06b5556f115b3350a80feae796787
MD5 4030e44a4ba917a0a8afe522b38b1244
BLAKE2b-256 4b9cc129eac3332de255579d5fc90817f400dd3c109ae17af46b54bcbfc3427d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb53863631d84e88e0fcc50f68ef53a3cbf273b20e4577bc6b0cbf4fe02e5f09
MD5 831b85579104d8bf5329bd4446c9a6bc
BLAKE2b-256 72c53ed44acb7d026d65bcdf3faf72eba5852c5a4e6d639d650cbd017c5bba65

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for py_rattler_build-0.69.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 b83db10b576e265b24d122a819558181bed3ad5c3f38c21792b5e4fde6fb9045
MD5 3b0f11d6384451601b18e76465fc3adb
BLAKE2b-256 63415f181296115647ed51528272b5fb1e99f70249e91bb37dd1b44bafa46176

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_rattler_build-0.69.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.69.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.69.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 7f6791eb5ed93501ad16c09152026d15dca19d50761c3ec25282beeaabfbd7d7
MD5 e5845bcd4923d6cfe36827b0e6941feb
BLAKE2b-256 710bb3227f0f61a19d50a0262fdb5fae0933e79e98de4a9893f849ccd33e0d72

See more details on using hashes here.

Provenance

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