{"adoption": {"forks": 74, "observed_at": "2026-08-28T04:04:03.465343+00:00", "stars": 1228}, "canonical_url": "https://ross.abutalabs.com/products/cppimport", "card": {"archived": false, "artifact_type": "library", "description": "Import C++ files directly from Python!", "domain": ["developer-tools", "programming-languages", "performance"], "enriched": true, "function": ["build-tool", "developer-tools", "compiler"], "health_score": 85, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["tbenthompson/cppimport"], "name": "tbenthompson/cppimport", "platform": ["python", "cpp", "cross-platform"], "pushed_at": "2026-04-17T14:13:19+00:00", "repo": "tbenthompson/cppimport", "stars": 1228, "tags": ["pybind11", "import-hook", "python-c-bindings", "jit-compilation", "extension-modules"], "topics": [], "urls": [], "use_cases": ["import c++ code from python directly", "speed up slow python functions with c++", "compile pybind11 extension modules on import", "transparent recompilation of c++ files in python workflow", "quickly build python bindings for c++ code"], "what_it_is": "cppimport is a Python library that lets you import C++ files directly as Python extension modules, compiling them transparently on first import using pybind11. It supports Mako-templated build configuration and automatic recompilation when source files change.", "when_to_avoid": ["you need a production build system with fine-grained control - use CMake or setuptools instead", "your project doesn't involve C++ extensions", "compile-on-import latency is unacceptable for your deployment"], "when_to_choose": ["you want to call C++ code from Python without writing a separate build system", "you're prototyping performance-critical functions and want edit-and-run iteration", "you already use pybind11 and want a frictionless import workflow"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/cppimport", "repo": "tbenthompson/cppimport", "role": "main", "score": 71}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/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:03.465343+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:03.465343+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:15:12.994175+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "7b09111dfb5ecee36f14fb49437bc68d8264123f452579ade8eef2e389b1afd3", "fetched_at": "2026-08-28T04:04:03.465343+00:00", "kind": "readme", "missing": false, "url": "https://github.com/tbenthompson/cppimport"}, {"content_hash": "7b1d947f78dd0766566f3fb57f5bba7885215bbdd646f58d8944e567fea7f117", "fetched_at": "2026-08-29T12:23:09.236244+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/cppimport/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 77, "longevity": 100, "rhythm": 48}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3765, "days_push": 138, "days_rel": 138, "gap_med": null, "n_releases_24m": 1}, "score": 71, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}