Comparison
jaxtyping vs nptyping vs torchtyping
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays.
Maintained. Last release 6 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity.
$
pip install jaxtypingType hints for NumPy.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install nptypingRuntime type annotations for the shape, dtype etc. of PyTorch Tensors.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install torchtypingIn short
- nptyping is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- torchtyping is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- jaxtyping is the most used: 5.9M downloads a month, 22× more than nptyping.
- jaxtyping also has the best Pythie’s Index (60).
Side by side
| Metric | jaxtyping | nptyping | torchtyping |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 60 | 22 |