Comprehensive filetype and mimetype detection using libmagic and Pygments. Current version: 30.2.0. Regular releases every few months.
pip install typecodeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart: create a TypeCode object from a file path and access mime/file types.
pip install typecode[system_provided] OR install libmagic via apt/brew/etc.
Replace pkg_resources references with importlib.metadata for resource access.
Use semver (30.x.y) for current versions; ignore CalVer references.