Identify is a Python library primarily used for file identification. It processes files (or file metadata) and returns a set of standardized tags describing their type, executability, language (from shebangs), and more. Maintained by the pre-commit team, it is actively developed with a focus on robust file analysis heuristics. The current version is 2.6.18, and releases typically align with pre-commit's development cycle or as issues require attention.
pip install identifyVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to use `tags_from_path` to identify a Python script and a plain text file, and also shows the result for a non-existent file path. It creates temporary files and cleans them up.
Understand the library's identification process as documented on its GitHub page. For critical identification, consider complementing `identify` with more specialized tools if needed.
Do not treat `identify`'s license tags as legal advice or a substitute for thorough manual review. Use it as an initial indicator, and verify licenses manually, especially for open-source compliance or distribution.
Review the `identify` library's documentation and changelog to confirm the correct function name and import path for your installed version. Ensure your `identify` version is compatible with the code expecting `tags_from_path`. Consider upgrading `identify` to a version that includes this API, or adjusting your import statement and code to match the available API of your current `identify` installation.
Review the `identify` library's documentation and changelog for the installed version to ascertain the correct import path or replacement function for `tags_from_path`. Modify the import statement accordingly or install a compatible version of the library.
No dependency data recorded yet.