{"adoption": {"forks": 284, "observed_at": "2026-08-28T04:06:41.553563+00:00", "stars": 2365}, "canonical_url": "https://ross.abutalabs.com/products/sqlacodegen", "card": {"archived": false, "artifact_type": "cli-tool", "description": "Automatic model code generator for SQLAlchemy", "domain": ["databases", "developer-tools", "backend"], "enriched": true, "function": ["orm", "database", "cli"], "health_score": 94, "homepage": null, "language": "Python", "license": "NOASSERTION", "license_family": "other", "maturity": "active", "member_repos": ["agronholm/sqlacodegen"], "name": "agronholm/sqlacodegen", "platform": ["python", "cli", "cross-platform"], "pushed_at": "2026-07-06T19:30:06+00:00", "repo": "agronholm/sqlacodegen", "stars": 2365, "tags": ["sqlalchemy", "model-generation", "database-introspection", "reverse-engineering", "declarative-models", "code-generation"], "topics": [], "urls": [], "use_cases": ["generate SQLAlchemy models from an existing database schema", "reverse engineer a PostgreSQL database into declarative model classes", "create SQLAlchemy dataclass models from a SQLite database", "generate ORM code for a MySQL database", "bootstrap ORM models for a legacy database", "introspect database tables and relationships into Python code"], "what_it_is": "sqlacodegen is a command-line tool that reads the structure of an existing database and generates SQLAlchemy model code, preferring declarative style. It supports SQLAlchemy 2.x, produces PEP 8 compliant output, and accurately detects relationships including many-to-many and one-to-one.", "when_to_avoid": ["you are designing models first and want migrations from models to database (use Alembic instead)", "you use an ORM other than SQLAlchemy", "you need a GUI-based database modeling tool"], "when_to_choose": ["you have an existing database and want SQLAlchemy models without writing them by hand", "you need accurate relationship detection including many-to-many and joined table inheritance", "you want PEP 8 compliant, hand-written-looking declarative code", "you need support for PostgreSQL extension types like CITEXT, PostGIS geometry, or pgvector"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/sqlacodegen", "repo": "agronholm/sqlacodegen", "role": "main", "score": 92}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/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:06:41.553563+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:41.553563+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:35:59.528290+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efee150c84f646cb7c497f5b1c8c9fbca7765426b55347155ddcf95cf62a8c93", "fetched_at": "2026-08-28T04:06:41.553563+00:00", "kind": "readme", "missing": false, "url": "https://github.com/agronholm/sqlacodegen"}, {"content_hash": "2743321b48a84a8bcb563853a932413fd03c53b78f5696e66c036f73cff52283", "fetched_at": "2026-08-29T10:16:29.779669+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/sqlacodegen/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 91, "longevity": 100, "rhythm": 89}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3535, "days_push": 58, "days_rel": 75, "gap_med": 17, "n_releases_24m": 12}, "score": 92, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}