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.33
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.33.tar.gz | 2.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| era_py-0.0.33-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 MB
Release files / era_py-0.0.33.tar.gz
| Download URL | era_py-0.0.33.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e800a11bb0345c89bbde717d35e144c07fb719f09215d182281f1522cd3216a9
|
|
BLAKE2b-256 checksum How to use checksums |
df4acdcec08d899e6ffa444956e9aa8211ee763bc143aba2c733193c81f0d2ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / era_py-0.0.33-py3-none-any.whl
| Download URL | era_py-0.0.33-py3-none-any.whl |
|---|---|
| Size | 3.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ed9bb562f1b853a9a6e61101a51fcf55a8c8dce89abd577ba46e2c3df89cd24
|
|
BLAKE2b-256 checksum How to use checksums |
4a5cb0635be6326ef963f6842e13f49dfa945d1f1959a309baeba5f2f9397e9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|