{"adoption": {"forks": 217, "observed_at": "2026-08-28T04:08:35.780301+00:00", "stars": 4113}, "canonical_url": "https://ross.abutalabs.com/products/pyupgrade", "card": {"archived": false, "artifact_type": "cli-tool", "description": "A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.", "domain": ["developer-tools", "programming-languages"], "enriched": true, "function": ["linter", "formatter", "cli"], "health_score": 80, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["asottile/pyupgrade"], "name": "asottile/pyupgrade", "platform": ["python", "cli", "cross-platform"], "pushed_at": "2026-08-25T19:30:18+00:00", "repo": "asottile/pyupgrade", "stars": 4113, "tags": ["python", "pre-commit", "code-modernization", "syntax-upgrade", "autofix", "automation"], "topics": ["python", "pre-commit", "linter"], "urls": [], "use_cases": ["automatically upgrade python syntax to newer versions", "modernize legacy python codebase", "add a pre-commit hook to fix outdated python syntax", "convert printf-style formatting to str.format", "remove unnecessary lambdas in defaultdict calls", "fix invalid escape sequences in strings"], "what_it_is": "pyupgrade is a CLI tool and pre-commit hook that automatically rewrites Python source code to use modern syntax for newer Python versions. It applies safe, opinionated fixes such as set literals, dict comprehensions, f-string-friendly formatting, and removal of obsolete unicode literals.", "when_to_avoid": ["you need general-purpose linting beyond syntax upgrades (use ruff or flake8)", "you want to preserve legacy formatting exactly as-is", "you work in a non-python language"], "when_to_choose": ["you want automated, safe syntax upgrades for python code", "you already use pre-commit and want an autofix hook", "you are migrating a codebase toward newer python versions"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pyupgrade", "repo": "asottile/pyupgrade", "role": "main", "score": 77}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/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:08:35.780301+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:08:35.780301+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:23:10.923717+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "f9dec645cf9e918d80ef77b8c359a7a3d670767cbe83679b2bd4f77b7aef0bac", "fetched_at": "2026-08-28T04:08:35.780301+00:00", "kind": "readme", "missing": false, "url": "https://github.com/asottile/pyupgrade"}, {"content_hash": "9bc2619da34dab7a4b56095e96f7e43afbfd325901d5a8be6012fbe96ec91a61", "fetched_at": "2026-08-29T09:14:38.772648+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/pyupgrade/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "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": 3473, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 77, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}