$npx skillfedfor your agent

typecode-libmagic

A ScanCode path provider plugin to provide a prebuilt native libmagic binary and database.

With conditionsPyPI UtilitiesReleased May 2021125.8K downloads / mocopyleft licensePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — typecode_libmagic-5.39.210531-py3-none-macosx_10_14_x86_64.whl · typecode_libmagic-5.39.210531-py3-none-manylinux1_x86_64.whl · typecode_libmagic-5.39.210531-py3-none-win_amd64.whl
v5.39.210531 · released 2021-05-31

Yes, if you are using ScanCode toolkit and need reliable file type detection without managing system libmagic installations. The prebuilt binaries simplify cross-platform deployment. However, review the composite license terms carefully if you have proprietary or restricted licensing requirements. The 2021 release date warrants verification that it remains compatible with your ScanCode version.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires ScanCode toolkit to be installed; plugin is designed as an extension to ScanCode, not standalone.
  • Medium install friction due to platform-specific prebuilt binaries (macOS, Linux, Windows wheels provided).
  • Repository is actively maintained with recent commits, though the latest release is from 2021.

License · maintenance · safety

copyleft license (copyleft) — Complex multi-license composition (Apache 2.0 plus multiple BSD, ISC, GPL, and public-domain components) classified as copyleft. Users must comply with the most restrictive terms of bundled binaries; review the full license stack before using in proprietary or restricted contexts.

last release 2021-05-31 (1901 days) · last repo commit 2026-07-23 · 2 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 125,820 downloads/mo, #11,798 on PyPI

Verify before relying

pip install typecode-libmagic

import typecode_libmagic
# Plugin integrates with ScanCode toolkit for file type detection
  • Whether the 2021 release date reflects actual maintenance or if the package is in maintenance-only mode.
  • Compatibility with current ScanCode toolkit versions and Python 3.9+.
  • Performance characteristics and accuracy of the bundled libmagic version.
Same gist for agents: .md · .json

What it is and what it does

typecode-libmagic is a plugin for the ScanCode toolkit that bundles a prebuilt native libmagic binary and its associated file-type database. It enables file type detection and analysis by providing the underlying libmagic library as a managed dependency, rather than requiring users to install libmagic separately on their system. The package distributes platform-specific wheels for macOS, Linux, and Windows, handling the complexity of cross-platform binary distribution.

The plugin is part of the ScanCode ecosystem and integrates transparently into ScanCode's path provider system. It is licensed under a composite of Apache 2.0 and multiple open-source licenses covering the bundled binaries. The repository is actively maintained, though the most recent release dates to 2021; it serves primarily as a stable, prebuilt dependency for ScanCode users who need reliable file type identification without managing native library installations.

Use it for

  • Integrate file type detection into ScanCode-based software composition analysis workflows.
  • Avoid system-level libmagic installation by using a prebuilt, versioned binary via pip.
  • Ensure consistent file type identification across macOS, Linux, and Windows CI/CD environments.
  • Bundle libmagic with ScanCode in containerized or isolated Python environments.
  • Extend ScanCode toolkit with native binary capabilities without manual compilation.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are using ScanCode toolkit and need reliable file type detection without managing system libmagic installations.

The prebuilt binaries simplify cross-platform deployment. However, review the composite license terms carefully if you have proprietary or restricted licensing requirements. The 2021 release date warrants verification that it remains compatible with your ScanCode version.

Install

typecode-libmagic on PyPI

Before you install

Medium install friction due to platform-specific prebuilt binaries (macOS, Linux, Windows wheels provided). Repository is actively maintained with recent commits, though the latest release is from 2021.

Requires ScanCode toolkit to be installed; plugin is designed as an extension to ScanCode, not standalone.

License in practice

Complex multi-license composition (Apache 2.0 plus multiple BSD, ISC, GPL, and public-domain components) classified as copyleft. Users must comply with the most restrictive terms of bundled binaries; review the full license stack before using in proprietary or restricted contexts.

Quickstart

pip install typecode-libmagic

import typecode_libmagic
# Plugin integrates with ScanCode toolkit for file type detection

Verify before relying

  • Whether the 2021 release date reflects actual maintenance or if the package is in maintenance-only mode.
  • Compatibility with current ScanCode toolkit versions and Python 3.9+.
  • Performance characteristics and accuracy of the bundled libmagic version.

Package facts

Licensecopyleft license copyleft
Python supportNot specified
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 1,901 days since the last release
Last repo commit
First released
Downloads125,820 / month, #11,798 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: PythonTopic :: Utilities

Evidence: typecode_libmagic-5.39.210531-py3-none-macosx_10_14_x86_64.whl; typecode_libmagic-5.39.210531-py3-none-manylinux1_x86_64.whl; typecode_libmagic-5.39.210531-py3-none-win_amd64.whl

Tags

Capabilities
libmagic file type detectionscancode plugin binaryfile magic number identificationprebuilt native library pluginfile format recognitionscancode toolkit extensionmagic database provider
Topics
scancode-pluginfile-type-detectionprebuilt-binary
PyPI keywords
open sourcetypecodelibmagic

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “scancode toolkit extension”

  • typecode-libmagicProvides a prebuilt native libmagic binary and database as a ScanCode…
  • extractcode-libarchiveProvides a prebuilt native libarchive binary as a ScanCode plugin for…
  • commoncodeCommonCode provides utility functions for handling paths, dates,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also extractcode-libarchive · scancode-toolkit · typecode · extractcode-7z · plugincode · python-magic-bin · libmagic · python-magic · pylibmagic · file-magic