Automatic File Identifier
A simple program written to identify a file using the extension or using file signatures.
Failing to do either, implies that the file might be a text file with no signature or extension.
It is not intended to be a final solution that finds everything about a file.
i.e. the purpose is to provide mimes for popular identifiable formats.
It is to be integrated with another project called Advanced Pattern Finder.
Installing
pip install auto-files-identifier
Or, clone the repository at https://github.com/supratikchatterjee16/afi, and
pip install .
Using
There is a signature downloader, which is tailored to download and store information found on File Signatures.
This creates a python file named signatures.py, which needs to be in the same folder as the program.
The program imports this and makes use of it.
import afi
list_mime_tuples = afi.identify(path_to_resource)#can be a folder or file path
# The above gives you a list of tuples which contain the mimes for each identified file
# It identifies using both extension and signatures
However, there is a second way of making use of it as well.
afi /path/to/file/or/folder
Author
Supratik Chatterjee
Issues
There are some(quite a lot I suspect) popular file extensions and signatures missing.
I believe there are way more than 650 extensions.
Should one find something missing, kindly do let me know.
Downloading
mkdir afi
cd ./afi
git init
git remote add origin https://github.com/supratikchatterjee16/afi.git
git pull origin master
pip install .
Metadata
Release files for auto-files-identifier 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auto_files_identifier-0.0.3.tar.gz | 17.4 kB | Without provenance | Details for auto_files_identifier-0.0.3.tar.gz |
Release files / auto_files_identifier-0.0.3.tar.gz
| Download URL | auto_files_identifier-0.0.3.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff8be24aa5dddb0951efb8c339456d2d0daf4db7346d3bb0b87e54b5ffee8974
|
|
BLAKE2b-256 checksum How to use checksums |
3741633dfb5d6f50e99656419294f0cf66ee1cece8b6e0f71f7626d46a649cb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.5
|
Security for auto-files-identifier 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.