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
  • 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.

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.1.tar.gz (5.1 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.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.1-cp314-cp314-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

crabbymetrics-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.1-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

crabbymetrics-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.1-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

crabbymetrics-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.1-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

crabbymetrics-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

crabbymetrics-0.3.1-cp310-cp310-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file crabbymetrics-0.3.1.tar.gz.

File metadata

  • Download URL: crabbymetrics-0.3.1.tar.gz
  • Upload date:
  • Size: 5.1 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.1.tar.gz
Algorithm Hash digest
SHA256 33f4b20eb118a4d7e2412e1a7a109351c55a7b7ddfa9a3fc170df8f3867d89b2
MD5 5ddaa371400924758d6951debe87ea13
BLAKE2b-256 698a1dca7dd3d4d02670abc30fd2e505b785663d3d897b139659638dd0fcfa9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1.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.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 90098d90d73858ada4e5e4a2cfdeefb08235e7dec7b04ee2ab2b63b2af3dd7ed
MD5 39b7d8b1288209bf8e8dda0ea00a49d8
BLAKE2b-256 7ac0c3a4f9e00df179c0c14293b60647614e7495710f4b8f65eacd571df4e074

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b97bec65c578da2b5e2167dd5bfb02deb82abf0e733e2727909c380d5429e1c
MD5 ccb7efe8753fc3ba9705f7a69e31d7f2
BLAKE2b-256 2a2629baaa3dccc1bd0a0d170b33a8f95f7713fc25ef7d55366275a2950cedd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db7a4279f226664da141b87ba4df483ca8a5202bdec963cac1e0d149eb279503
MD5 45cc892d236fa3d95b64913aee9c9500
BLAKE2b-256 582a62ab86b8c029e9a17bdab8b29b3316be7933cea55752c7ad43c17f25f854

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00d92f432e4b5fc0385c0468971cc1e5b56f2446c4393474af3e4b20db9bf73e
MD5 0d98fa9045b21f68648b8677072edfe6
BLAKE2b-256 4e6f1a3fc63cd47ac02dda141dc510fb08e560d2dbee8cc68ff08cdf3c7ab404

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5eab983e1da4d9e7b139e9bc0378acb733ec432121870f6bcc1cda5cffbd3647
MD5 24399e2317b109194d1e00a18ebf06dd
BLAKE2b-256 f7cedc802f4869bae7ed0eee33099cf94fb95d1be8cf3df58d2fbad9e534bb6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd72077922603606c6429dbd06633d79db5bc01ef0b0d1870a5f951bcb1011bd
MD5 111d25afd978d7b69a999d7a70534ea0
BLAKE2b-256 62fbb7e52dc653ca139d415e9504c664389abfe7f891282be9014bb7c7776afd

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec136aedc4aeed399a34b1e52afce97b6dc7fdda93bf0aa5f8d26aa1fa2464a8
MD5 e2ee66b9c085f4f774a108705df97a4a
BLAKE2b-256 eb6611237320c4191c42b269fbb3558086b8c88349543f4e4d31167516ab696e

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7dcdfaeec20195fd5728c13d2b297e542b17d986226deb8db166242d4f718f9
MD5 3fa45ab654c12e077d51dabe8850154c
BLAKE2b-256 dda5200ced5fd76b9635df92115dbd42a8d2fecdff585756ff8da91bbcee9854

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff2f7b7670d2b9af7706ce295c7b6ca361f61c81385cc2a2d4c5b117f035f5e7
MD5 06cec021f77aa2f40d4225f7d9d91bd4
BLAKE2b-256 e9e9d92aa8fb3a5fce841a978b4d2fba573feb642d7f6e459861db8c0537fa50

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crabbymetrics-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1536326b0df3804006808d21bea802c24e067dced5fb5979d98dd654ef50739
MD5 7ea20a5e646ab6c5d0c37dae7aea756a
BLAKE2b-256 23c72aa199860e512a2e1dde325381d8507bf81da2b29e718414e5e737c64796

See more details on using hashes here.

Provenance

The following attestation bundles were made for crabbymetrics-0.3.1-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