{"adoption": {"forks": 304, "observed_at": "2026-08-28T04:07:30.039157+00:00", "stars": 2917}, "canonical_url": "https://ross.abutalabs.com/products/python-magic", "card": {"archived": false, "artifact_type": "library", "description": "A python wrapper for libmagic", "domain": ["files", "developer-tools"], "enriched": true, "function": ["file-system", "developer-tools"], "health_score": 76, "homepage": null, "language": "Python", "license": "NOASSERTION", "license_family": "other", "maturity": "stable", "member_repos": ["ahupp/python-magic"], "name": "ahupp/python-magic", "platform": ["python", "windows", "cross-platform"], "pushed_at": "2026-07-20T17:21:33+00:00", "repo": "ahupp/python-magic", "stars": 2917, "tags": ["libmagic", "file-type-detection", "mime-type", "wrapper", "linux", "macos"], "topics": [], "urls": [], "use_cases": ["detect the real file type of an uploaded file", "get the mime type of a file in python", "validate that uploads are actually pdfs or images", "identify file type from a byte buffer", "detect content type without relying on file extensions"], "what_it_is": "python-magic is a Python wrapper around the libmagic C library, the same engine behind the Unix `file` command. It identifies file types and MIME types by inspecting file headers rather than extensions.", "when_to_avoid": ["you cannot install native libmagic dependencies in your environment", "you only need simple extension-based checks", "you need pure-Python file type detection without C library bindings"], "when_to_choose": ["you need reliable, header-based file type or MIME detection in Python", "you want the same identification behavior as the Unix `file` command", "you are validating user-uploaded files by content"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/python-magic", "repo": "ahupp/python-magic", "role": "main", "score": 74}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/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:07:30.039157+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:30.039157+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:34:04.490856+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "da215a936a40d33f3d30efe0e037152b5e7da2b32003d79efcb99f3bff4cd4fd", "fetched_at": "2026-08-28T04:07:30.039157+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ahupp/python-magic"}, {"content_hash": "49c719c878181175abb6553c4241fab1a71bc344f7fc1e6a05742dfbe8a5cba6", "fetched_at": "2026-08-29T09:49:13.785140+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/python-magic/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 93, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5999, "days_push": 44, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 74, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}