A Scancode path provider plugin that downloads and provides a prebuilt native libmagic binary and its database for file type detection. Version 5.39.210531. Low release cadence; primarily used as a dependency within the ScanCode toolkit ecosystem.
pip install typecode-libmagicVerified import paths — ran on the pinned version, not inferred.
Instantiate the provider to get the path to the bundled libmagic binary.
Install typecode instead: pip install typecode
Use from typecode_libmagic import LibmagicPathProvider
Replace provider.get_libmagic() with provider.get_libmagic_path()