Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crabbymetrics-0.3.5.tar.gz (7.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Hashes for crabbymetrics-0.3.5.tar.gz
Algorithm Hash digest
SHA256 db12d1af6736f6e958150e6407b5a3ab0ba62bf4b4c4df871b10e12ab82eab50
MD5 6e5a8a958b49ada12cff8dbccdc2a446
BLAKE2b-256 f18a5f436e0b75fc7ac7bd8752da4a91255b2c8e31d49aa0dce35b2ae4fe27f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.5.tar.gz:

Publisher: wheels.yml on apoorvalal/crabbymetrics

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 522dcf3c5d188be44d6df9023404288adcd2638ed7ef7e87b0af49febf37a6ce
MD5 e534cbc61c5b00946e1d1476f31b8a2e
BLAKE2b-256 704d811c1546b09db428ca88cb044903fe03c97bffcd462fc9e6aa564f2b10e4

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb87654642647a53e4b86d67ca03606b069ac80b3c41e05cfa02bae72da26f6e
MD5 44daa889a3e087f5c819db0c7deb217b
BLAKE2b-256 626b9f96fd1c31926b9cc3389f1152d63c5ded996b263e6618cf888157a31a92

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7e84667c4f24bc918bd01723f503e4bd68e1d5ac524ba48cdb334fc55e02c7c
MD5 0a18ba5cab64af25e82399b03771044b
BLAKE2b-256 a2c8fbbae4ee4dfff1a49b789b66018c0b22e6aed81a492085e3243396a9e991

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef306bb927f91f84e39f2e9be9c71d5a60e364970ee72d809baa3a10e61d1e1b
MD5 b137300aa93b4cd55786bee7c58c8d4e
BLAKE2b-256 ea002fb9c61dadb324b743a33464165d6ae2d0fd87ae0ca5188a6c5fe006870b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c85e9cc0a5485e1581584683799431f5fd6cc6834939fc94ed26fc15ddae8597
MD5 aa2d43885dbc8b5ee12ebfe8242113e4
BLAKE2b-256 3d20f156a7430074677337f78024b95bed365e2bf3adf3c689ce347d3d32e8cb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77439e9aaea0ba7ba68df0a0b7e6341b0ee000c930e4390dbaaa12e423507ff7
MD5 88f584fb015f64757d7d47eedd089685
BLAKE2b-256 6d2e27cba335698cb2f1230b2675da108cf530a5c5978730fc6efc221e19c6d6

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d620c076c1e84a08880d9908a3de2d816e6eacd9061fde6d0556b01f36625ec
MD5 610736081c311827907a0e60a49caf71
BLAKE2b-256 96471e3e315048f13d82b2c133c394ad4e3725d06e389bd0f41e6c8a14afbd2a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb50a222969066e9f78163839196fd1f068ce0aa4cc599156617e62413c52d45
MD5 1ac9f22467c35b5fff3a930a8f1e1167
BLAKE2b-256 243659d97811551cc2456e541f62dc1f6f69f3f7992b84b026982609597ae1f3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 285368d769b8f15872bd9ae5d6b296d81016e1cb2257c83941a78ce4596d14c9
MD5 41d11e075b513c93b2244517deaedcbf
BLAKE2b-256 4cddf6451ef626d9323c43e5b143abd919e1b5a35aabb6e5c38ecf134d0c1fc3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 829409c3510a81a8f71585d312bc1bc97d69da51ee280fbb4f3d464799b3f175
MD5 3bfec1ac20e580ad2c7fbde1d8db8cf5
BLAKE2b-256 ddd8bb014bbf8c54940affe638f180a649095cd80598d3c2bdbdc11474ba4fd5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page