
python-magic
ahupp/python-magicFile Type Detection
A Python interface to the libmagic file type identification library.
More in File Manipulation
pathlibStandard library
A cross-platform, object-oriented path library.
mimetypesStandard library
Map filenames to MIME types.