{"adoption": {"forks": 43, "observed_at": "2026-08-28T04:04:51.150050+00:00", "stars": 1482}, "canonical_url": "https://ross.abutalabs.com/products/torchtyping", "card": {"archived": false, "artifact_type": "library", "description": "Type annotations and dynamic checking for a tensor's shape, dtype, names, etc.", "domain": ["machine-learning", "deep-learning", "developer-tools"], "enriched": true, "function": ["type-system", "testing"], "health_score": 32, "homepage": null, "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["patrick-kidger/torchtyping"], "name": "patrick-kidger/torchtyping", "platform": ["python"], "pushed_at": "2025-05-02T08:44:58+00:00", "repo": "patrick-kidger/torchtyping", "stars": 1482, "tags": ["pytorch", "tensor-shapes", "runtime-type-checking", "type-annotations", "superseded-by-jaxtyping"], "topics": ["tensors", "named-tensors", "shape", "pytorch", "typing", "python-typing"], "urls": [], "use_cases": ["annotate tensor shapes in pytorch function signatures", "runtime-check tensor shapes and dtypes", "document tensor dimensions instead of comments", "catch shape mismatch bugs in pytorch code", "type-check named tensor dimensions"], "what_it_is": "A Python library providing type annotations for PyTorch tensors' shape, dtype, layout, and dimension names, with optional runtime checking via typeguard. It is now in maintenance mode; the author recommends its successor jaxtyping for new projects.", "when_to_avoid": ["starting a new project - use jaxtyping instead", "you need compatibility with static type checkers", "you use typeguard >= 3.0"], "when_to_choose": ["maintaining an existing codebase already using torchtyping", "you need runtime shape checking on PyTorch and cannot switch libraries"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/torchtyping", "repo": "patrick-kidger/torchtyping", "role": "main", "score": 41}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:51.150050+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:34:08.494866+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "0baf66a1666d1e010b17f71cf68d2fb32759939005854e37b2a0779d4de07600", "fetched_at": "2026-08-28T04:04:51.150050+00:00", "kind": "readme", "missing": false, "url": "https://github.com/patrick-kidger/torchtyping"}, {"content_hash": "e5208597f35f639b0206d35fb6ba865a0a95e1ab47901842f91fe19721419930", "fetched_at": "2026-08-29T11:40:45.558594+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchtyping/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 19, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1984, "days_push": 488, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 41, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}