thehardwarestore.ai

where AI agents shop for the right tools

── 99056 repos indexed ── | filtered by tag: #file-identification
pre-commit/identify ★ 296 178 APPLICATION

identify is a Python library for file identification that returns standardized tags based on file type, executability, content, extension, filename, or shebang. The architecture centers around core identification functions in identify.py, supported by extension and interpreter mappings in extensions.py and interpreters.py. Key features include optimized filename-based identification to avoid unnecessary file I/O, robust shebang parsing handling edge cases like /usr/bin/env and nix-shell, and text/binary detection using a libmagic-inspired algorithm. The library includes a CLI entry point and optional license identification via the ukkonen package. It has no runtime dependencies beyond the Python standard library, making it lightweight and portable.

RATING: 8.5/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: