ea-compiler
Python package wrapping the Eä compute kernel compiler. Write .ea kernel files, compile to native SIMD code, call from Python with NumPy arrays. No C toolchain, no Cython, no JIT warmup.
Install
pip install ea-compiler
Works on Linux x86_64, Linux aarch64, and Windows x86_64.
Quick start
Write a kernel (scale.ea):
export func scale(src: *f32, dst: *mut f32, factor: f32, n: i32) {
let s: f32x8 = splat(factor)
let mut i: i32 = 0
while i < n {
let v: f32x8 = load(src, i)
store(dst, i, v .* s)
i = i + 8
}
}
Call it from Python:
import ea
import numpy as np
kernel = ea.load("scale.ea")
src = np.random.randn(1_000_000).astype(np.float32)
dst = np.empty_like(src)
kernel.scale(src, dst, factor=2.0)
ea.load() compiles the kernel to a native shared library, caches it in __eacache__/, and returns a callable object with ctypes bindings generated from the function signature. Subsequent calls use the cache.
API
import ea
# Compile, cache, and load — returns callable kernel module
kernel = ea.load("kernel.ea", target="native", opt_level=3)
# Compile without caching — returns Path to .so/.dll
ea.compile("kernel.ea")
# Clear cached compilations
ea.clear_cache()
# Version info
ea.__version__ # package version
ea.compiler_version() # bundled ea binary version
How it works
- Bundles a pre-built
eacompiler binary (no Rust or LLVM needed) ea.load()invokes the compiler via subprocess to produce a.so/.dll- Parses the generated
.ea.jsonmetadata to build ctypes bindings at runtime - Length parameters (
n,len,count, etc.) are auto-filled from array sizes - Output parameters with
[cap: ...]annotations are auto-allocated and returned - Results are cached per CPU target and compiler version
Documentation
Full documentation: petlukk.github.io/eacompute
License
MIT
Metadata
Release files for ea-compiler 1.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ea_compiler-1.10.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for ea_compiler-1.10.0-py3-none-win_amd64.whl |
| ea_compiler-1.10.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for ea_compiler-1.10.0-py3-none-manylinux_2_17_x86_64.whl |
| ea_compiler-1.10.0-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for ea_compiler-1.10.0-py3-none-manylinux_2_17_aarch64.whl |
Total release size: 58.3 MB
Release files / ea_compiler-1.10.0-py3-none-win_amd64.whl
| Download URL | ea_compiler-1.10.0-py3-none-win_amd64.whl |
|---|---|
| Size | 17.7 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
10bf5a000746ef33d31d43b0dfae7373b215f533f08af84bc39169281889ca86
|
|
BLAKE2b-256 checksum How to use checksums |
2694911453acc1efd953d9cb06061bc51a98c3e37890206446c9e80dea135bfd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.
Transparency logRelease files / ea_compiler-1.10.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | ea_compiler-1.10.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 22.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4ba87558bf2f6786b57961f485a775eab0d3e29b10b70d97b0bbd1641caa0948
|
|
BLAKE2b-256 checksum How to use checksums |
2ba313e70c28bf97814995b2c6a708ece133e705b1db16f12c1f388ec7756a95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.
Transparency logRelease files / ea_compiler-1.10.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | ea_compiler-1.10.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 18.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d9563832b99515e95f5c1960c0376ad7bc134809461941286dfe15e0f46b4ffd
|
|
BLAKE2b-256 checksum How to use checksums |
2d07648ccb4283264ecdf5d8d5b133e66834b8fa37c88b153800aa5322a41cce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.
Transparency logSecurity for ea-compiler 1.10.0
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.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for ea_compiler-1.10.0-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.
Transparency logA 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.