// momentum

tracking since W48

// why it's here

  • Active: last commit today
  • Built almost entirely by one person
  • Health 86/100 with only 13 stars

// how to help

// readme

bearshape

Runtime shape and dtype checking for NumPy, JAX, PyTorch, CuPy, and tree-structured containers, powered by beartype.

from beartype import beartype
from bearshape import N, C
from bearshape.numpy import F32

@beartype
def normalize(x: F32[N, C]) -> F32[N, C]:
  return x / x.sum(axis=1, keepdims=True)

bearshape turns annotations such as F32[N, C], F32Like[~B, C], F32[Value("size")], and Tree[F32[N], T] into runtime-validated contracts. Named dimensions are shared within a function call, so mismatched shapes fail at the boundary instead of later in array code.

Installation and candidate status

These docs describe the unpublished 0.1.0rc1 candidate, requiring Python 3.11+ (tested on 3.11–3.14) and beartype 0.23.1. pip install bearshape currently installs the older PyPI release. To try the candidate from a checkout in a Python 3.11+ virtual environment:

python -m pip install . numpy "beartype==0.23.1"
Read the full README on GitHub β†—

Health score

Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity β€” divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated