Rust-backed econometrics models with a scikit-adjacent Python API.
Project description
crabbymetrics
Rust-backed econometrics 🦀🔢 models with a scikit-adjacent Python API. Focus: extremely low dependency (just numpy), simple, fast estimators with robust standard errors and bootstrap support.
Features
- OLS, FixedEffectsOLS, SyntheticControl, ElasticNet, Logit, Multinomial Logit, Poisson, TwoSLS, FTRL
- PCA and KernelBasis for feature engineering before regression-style estimation
fit,predict,summary,bootstrap- HC1 standard errors where applicable
Install
This package is built with pyo3/maturin and ships as native wheels.
uv pip install crabbymetrics
Example
import numpy as np
from crabbymetrics import OLS
x = np.random.randn(200, 3)
beta = np.array([1.0, -2.0, 0.5])
y = 0.3 + x @ beta + np.random.randn(200) * 0.1
model = OLS()
model.fit(x, y)
print(model.summary())
Development
Create and populate the project virtual environment, then build the extension into that venv.
uv sync
uv run maturin develop
uv run maturin develop is sufficient for rebuilding and reinstalling the package in .venv once the environment exists. If you change Python dependencies or the pyproject.toml metadata, run uv sync again first.
Package versioning is sourced from Cargo.toml. The Python package metadata is dynamic, and commit_tag_release.sh reads the crate version directly before creating the vX.Y.Z tag.
Rendered examples and API docs live under docs/. Rebuild the site with quarto render docs.
For the plotting examples, install the docs extra first: uv sync --extra docs.
Wheels
Wheels are platform-specific and included in GitHub releases. See the releases tab.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crabbymetrics-0.3.5.tar.gz.
File metadata
- Download URL: crabbymetrics-0.3.5.tar.gz
- Upload date:
- Size: 7.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db12d1af6736f6e958150e6407b5a3ab0ba62bf4b4c4df871b10e12ab82eab50
|
|
| MD5 |
6e5a8a958b49ada12cff8dbccdc2a446
|
|
| BLAKE2b-256 |
f18a5f436e0b75fc7ac7bd8752da4a91255b2c8e31d49aa0dce35b2ae4fe27f3
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5.tar.gz:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5.tar.gz -
Subject digest:
db12d1af6736f6e958150e6407b5a3ab0ba62bf4b4c4df871b10e12ab82eab50 - Sigstore transparency entry: 1154601124
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
522dcf3c5d188be44d6df9023404288adcd2638ed7ef7e87b0af49febf37a6ce
|
|
| MD5 |
e534cbc61c5b00946e1d1476f31b8a2e
|
|
| BLAKE2b-256 |
704d811c1546b09db428ca88cb044903fe03c97bffcd462fc9e6aa564f2b10e4
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
522dcf3c5d188be44d6df9023404288adcd2638ed7ef7e87b0af49febf37a6ce - Sigstore transparency entry: 1154601147
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb87654642647a53e4b86d67ca03606b069ac80b3c41e05cfa02bae72da26f6e
|
|
| MD5 |
44daa889a3e087f5c819db0c7deb217b
|
|
| BLAKE2b-256 |
626b9f96fd1c31926b9cc3389f1152d63c5ded996b263e6618cf888157a31a92
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
cb87654642647a53e4b86d67ca03606b069ac80b3c41e05cfa02bae72da26f6e - Sigstore transparency entry: 1154601157
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7e84667c4f24bc918bd01723f503e4bd68e1d5ac524ba48cdb334fc55e02c7c
|
|
| MD5 |
0a18ba5cab64af25e82399b03771044b
|
|
| BLAKE2b-256 |
a2c8fbbae4ee4dfff1a49b789b66018c0b22e6aed81a492085e3243396a9e991
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
f7e84667c4f24bc918bd01723f503e4bd68e1d5ac524ba48cdb334fc55e02c7c - Sigstore transparency entry: 1154601146
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef306bb927f91f84e39f2e9be9c71d5a60e364970ee72d809baa3a10e61d1e1b
|
|
| MD5 |
b137300aa93b4cd55786bee7c58c8d4e
|
|
| BLAKE2b-256 |
ea002fb9c61dadb324b743a33464165d6ae2d0fd87ae0ca5188a6c5fe006870b
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl -
Subject digest:
ef306bb927f91f84e39f2e9be9c71d5a60e364970ee72d809baa3a10e61d1e1b - Sigstore transparency entry: 1154601132
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c85e9cc0a5485e1581584683799431f5fd6cc6834939fc94ed26fc15ddae8597
|
|
| MD5 |
aa2d43885dbc8b5ee12ebfe8242113e4
|
|
| BLAKE2b-256 |
3d20f156a7430074677337f78024b95bed365e2bf3adf3c689ce347d3d32e8cb
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
c85e9cc0a5485e1581584683799431f5fd6cc6834939fc94ed26fc15ddae8597 - Sigstore transparency entry: 1154601128
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77439e9aaea0ba7ba68df0a0b7e6341b0ee000c930e4390dbaaa12e423507ff7
|
|
| MD5 |
88f584fb015f64757d7d47eedd089685
|
|
| BLAKE2b-256 |
6d2e27cba335698cb2f1230b2675da108cf530a5c5978730fc6efc221e19c6d6
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
77439e9aaea0ba7ba68df0a0b7e6341b0ee000c930e4390dbaaa12e423507ff7 - Sigstore transparency entry: 1154601137
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d620c076c1e84a08880d9908a3de2d816e6eacd9061fde6d0556b01f36625ec
|
|
| MD5 |
610736081c311827907a0e60a49caf71
|
|
| BLAKE2b-256 |
96471e3e315048f13d82b2c133c394ad4e3725d06e389bd0f41e6c8a14afbd2a
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
6d620c076c1e84a08880d9908a3de2d816e6eacd9061fde6d0556b01f36625ec - Sigstore transparency entry: 1154601140
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb50a222969066e9f78163839196fd1f068ce0aa4cc599156617e62413c52d45
|
|
| MD5 |
1ac9f22467c35b5fff3a930a8f1e1167
|
|
| BLAKE2b-256 |
243659d97811551cc2456e541f62dc1f6f69f3f7992b84b026982609597ae1f3
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
fb50a222969066e9f78163839196fd1f068ce0aa4cc599156617e62413c52d45 - Sigstore transparency entry: 1154601158
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
285368d769b8f15872bd9ae5d6b296d81016e1cb2257c83941a78ce4596d14c9
|
|
| MD5 |
41d11e075b513c93b2244517deaedcbf
|
|
| BLAKE2b-256 |
4cddf6451ef626d9323c43e5b143abd919e1b5a35aabb6e5c38ecf134d0c1fc3
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
285368d769b8f15872bd9ae5d6b296d81016e1cb2257c83941a78ce4596d14c9 - Sigstore transparency entry: 1154601149
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type:
File details
Details for the file crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
829409c3510a81a8f71585d312bc1bc97d69da51ee280fbb4f3d464799b3f175
|
|
| MD5 |
3bfec1ac20e580ad2c7fbde1d8db8cf5
|
|
| BLAKE2b-256 |
ddd8bb014bbf8c54940affe638f180a649095cd80598d3c2bdbdc11474ba4fd5
|
Provenance
The following attestation bundles were made for crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl:
Publisher:
wheels.yml on apoorvalal/crabbymetrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl -
Subject digest:
829409c3510a81a8f71585d312bc1bc97d69da51ee280fbb4f3d464799b3f175 - Sigstore transparency entry: 1154601161
- Sigstore integration time:
-
Permalink:
apoorvalal/crabbymetrics@57fe092e4878c77af79b0687b65c83a1038e285c -
Branch / Tag:
refs/tags/v0.3.5 - Owner: https://github.com/apoorvalal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@57fe092e4878c77af79b0687b65c83a1038e285c -
Trigger Event:
push
-
Statement type: