hea: R-style Linear Models without R (but with Python)
Install
pip install hea
for core functionalities.
or if you want to load the example datasets:
pip install "hea[data]"
Usages
Data transformation and visualization
hea supports mostly tidyverse compatible api (can be chained with the classic + or with the method-based . in the fluent API style) for data manipulation:
from hea import data
penguins = data("penguins", package="palmerpenguins")
penguins.glimpse()
(
penguins.ggplot(
x="flipper_length_mm", y="body_mass_g", color="species", shape="species"
)
.geom_point()
.geom_smooth(method="lm")
)
We use Polars DataFrame under the hood. It's basically tidypoars + plotnine, but in a more integrated manner. More examples can be found in examples/books/r4ds
Linear model(s)
Currently lm and gam are relatively mature, while glm and gmm (generalized mixed models, the lmer and glmer equivalents) are relatively rudimental:
from hea import data
from hea.models import lm
gala = data("gala", package="faraway")
m = lm("Species ~ Area + Adjacent + Elevation + Nearest + Scruz", gala)
m.summary()
from hea import data
from hea.models import gam
from hea.family import Gamma
trees = data("trees", "mgcv")
ct1 = gam("Volume ~ s(Height) + s(Girth)", family=Gamma(link="log"), data=trees)
ct1.summary()
ct1.plot_smooth(partial_residuals=True)
See more examples in examples/books/lmwr, examples/books/gam and more.
Metadata
Release files for hea 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hea-0.2.1.tar.gz | 1.8 MB | With provenance | Details for hea-0.2.1.tar.gz |
Built distributions (wheels)
Total release size: 47.9 MB
Release files / hea-0.2.1.tar.gz
| Download URL | hea-0.2.1.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7e0aff332726ec01c1536aeb0237380a240e64235b1c14305229badfb312e42
|
|
BLAKE2b-256 checksum How to use checksums |
6b3b0b7124a3fe06c4d82b0a8dde231037b127d04ead76af97a290b3429513c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-win_amd64.whl
| Download URL | hea-0.2.1-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 9.9 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
89ea7ace5633e7d40ad6a107ec207a16477c0c894c629ebed1d29ef551a8c892
|
|
BLAKE2b-256 checksum How to use checksums |
5ebeddcfe5f7c33d1cb7a8b7bd4c182054614a2e51a8a8abfd387e17145ef604
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | hea-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
05ba9a16fec36d00742f6c24ba554874c5e290fe8da0f72f64e954a74a2bc0e6
|
|
BLAKE2b-256 checksum How to use checksums |
427138b1cac29d9a3ae369755d9c4b8f263c8808a8a687d7f96efedb4d2bb276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl
| Download URL | hea-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
d90feeda84b1bb491c6294a3f29a1a26302cece7f1d6c2817b5dfbbf7a88487f
|
|
BLAKE2b-256 checksum How to use checksums |
43cb9bf86d38f1ea0a2ee3f8294ed86828acf316c88711c39fbb917bae3fd849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | hea-0.2.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 12.0 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7b225f72bcd066a72c39c7d0ddb3808a5ac979fed0127af32e46132e543007c6
|
|
BLAKE2b-256 checksum How to use checksums |
c7a79b82ead6a64be9e5ef2b9f7d1938fca7022b52c6c7d78e3f14e875779ae8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | hea-0.2.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 12.7 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
09ca461d470cb32ae2ce85fe315594a548d08017d6637164fffd7e68b84b4695
|
|
BLAKE2b-256 checksum How to use checksums |
071818fd1742515009d121a0c63948a119177d7ffe5bbceb7afe115c77003df9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | hea-0.2.1-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
878cbc68d55df461a9a31f1ad51640b76d4fade2207971ec10f79f3fd5fbefe7
|
|
BLAKE2b-256 checksum How to use checksums |
e7fe25c68602b9c2523cdfbd34ef2a9386391a74d236dfec8d8da1012d5b2ea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logRelease files / hea-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | hea-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
a3448946fd199826f6ddcfff22e5c113f36676ab820e24146b593ab1c1c5506a
|
|
BLAKE2b-256 checksum How to use checksums |
762b417886fa5644aa6268699e3a2155ae18652700cbcddc7a7db26e1665d276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 19, 2026.
Transparency logSecurity for hea 0.2.1
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 8 files in this release have been uploaded with provenance metadata.
Attestation for hea-0.2.1.tar.gz
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 Nov 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.