Skip to main content

alphalang

Python bindings for Alpha, a polyhedral compilation language for expressing and transforming affine programs. alphalang exposes the Rust parse → normalize → schedule → generate pipeline as a small, typed Python API, plus IPython cell magics (%%alphalang, %%schedule) for driving it interactively from a Jupyter notebook.

Quick start

import alphalang

sys = alphalang.parse("""
affine PrefixSum [N]->{:N>0}
    inputs  X: [N]
    outputs Y: [N]
    let Y[i] = reduce(+, [j], {:j<=i}: X[j]);
.
""")
norm = alphalang.normalize(sys)
sched = norm.schedule(
    "{ Y__init[i] -> [i, 0, 0]; Y__reduce[i,j] -> [i, 1, j]; }"
)
print(alphalang.generate(sched))

See the project README for the full API, a worked Jupyter notebook example, and source.

Metadata

Release files for alphalang 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for alphalang 0.2.2
File Interpreter ABI Platform Actions
alphalang-0.2.2-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for alphalang-0.2.2-cp39-abi3-manylinux_2_28_x86_64.whl
alphalang-0.2.2-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for alphalang-0.2.2-cp39-abi3-manylinux_2_28_aarch64.whl
alphalang-0.2.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for alphalang-0.2.2-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 4.0 MB

Release files / alphalang-0.2.2-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL alphalang-0.2.2-cp39-abi3-manylinux_2_28_x86_64.whl
Size 1.5 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
4234ef20c2b104657f61fa5641f2ad3c70a7bc2564173b6314beff145467a767
BLAKE2b-256 checksum
How to use checksums
05749e0aa221306c42e9ee7650552266ae7ea2eb202ea87e1bc6bea515809fd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / alphalang-0.2.2-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL alphalang-0.2.2-cp39-abi3-manylinux_2_28_aarch64.whl
Size 1.5 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a4ac92188b533a26df1e16a19165c93918036853d37da47929fe0260f605b527
BLAKE2b-256 checksum
How to use checksums
1b4dbb4c0c1703f8258b88bf2314e433f17c33967f70767b9457ae0e33caa49c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / alphalang-0.2.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL alphalang-0.2.2-cp39-abi3-macosx_11_0_arm64.whl
Size 974.3 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bbc6c8deb371ea6fa621703266a4eff0eb227bacb2c148f8deb2492e79f5110e
BLAKE2b-256 checksum
How to use checksums
857bf51db05475cc016eab173398626ed5fe0b12bc46b3e3845068428309d6db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for alphalang 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

3 release files No provenance

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