era_py
Helpers for the Python port of Empirical Research in Accounting: Tools and Methods.
Install
pip install era-py
pip install "era-py[polars]"
pip install "era-py[tables]"
For repository development, prefer the checked-in virtual environment:
.venv/bin/python -m pytest
era-py provides two import paths:
import era_pyis the base API built around pandas/Ibis-style workflows.import era_plis the Polars API and requirespip install "era-py[polars]".
Usage
from era_py import load_data, ols_dropcollinear
camp = load_data("camp_attendance")
Testing Optional Dependencies
For quick checks of optional extras without changing your local environment, use
uv run --with ...:
PYTHONPATH=src uv run --with polars python -c "import era_pl; print(era_pl.__version__)"
This is useful for verifying the era_pl import path and other Polars-specific
behavior without permanently installing polars into your project environment.
Metadata
Release files for era-py 0.0.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| era_py-0.0.34.tar.gz | 3.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| era_py-0.0.34-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 MB
Release files / era_py-0.0.34.tar.gz
| Download URL | era_py-0.0.34.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a89e859fcc6705a178bfe053cde6531ae9986251e1c708b8b58efe3c980731a3
|
|
BLAKE2b-256 checksum How to use checksums |
8afdd33945c8e97f84c7eeca2ae4ade8622ca6f99c28deb1375273a9644c28cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / era_py-0.0.34-py3-none-any.whl
| Download URL | era_py-0.0.34-py3-none-any.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
586cf1317f65db71c19ccd986c984f03c62add01cdeaaa3014701a95a6aa97a9
|
|
BLAKE2b-256 checksum How to use checksums |
683cb62076eb50f8053e2f81f4b986f285c37219bc8ca08122e23059db3d3bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|