{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/9"}],"enrichment":{"capability":"Detects file types and MIME types using libmagic and Pygments, with support for multiple detection methods and optional system or bundled libmagic libraries.","skillfed_tags":["file-identification","libmagic-wrapper"],"use_cases":["Identify file types in batch processing pipelines without relying on file extensions.","Determine MIME types for web servers or content management systems handling user uploads.","Integrate file type detection into security scanning or compliance tools.","Classify documents by format in archival or document management workflows.","Detect and handle PDF and other structured formats via pdfminer.six integration."],"what_it_does":"TypeCode is a file type and MIME type detection library that wraps libmagic and Pygments to identify file formats. It started as a library within scancode-toolkit and provides a unified interface for comprehensive filetype detection across Linux, Windows, and macOS.\n\nThe package supports multiple installation modes: the [full] extra bundles libmagic binaries for immediate use, while the minimal install expects libmagic to be provided by the system, environment variables, or a plugin. It integrates with the plugincode system to allow custom libmagic providers, making it flexible for environments with non-standard library locations.","worth_installing":"Yes. Active maintenance, production-stable status, low install friction, no known vulnerabilities, and permissive licensing make it a solid choice. Install with [full] for immediate use, or [minimal] if your environment already provides libmagic 5.39. Best suited for projects needing reliable file type detection beyond filename inspection."},"id":"typecode","links":{"html":"https://skillfed.io/packages/typecode","md":"https://skillfed.io/packages/typecode.md","pypi":"https://pypi.org/project/typecode/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-23","license_spdx":null,"license_treatment":"permissive","name":"typecode","python_support":"supports_current","summary":"Comprehensive filetype and mimetype detection using libmagic and Pygments."},"popularity":{"monthly_downloads":127394,"position":11745,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"30.2.0"}
