mime-type
Basic functions for handling Internet media types in Python.
Safe Rust implementation of libmagic
Blazing fast, dependency-free file type detection for Python, backed by Rust.
A fast and efficient MIME type and file extension detector implemented in Rust, exposed as a Python package.
A library of helper methods for your Python project to get mime types and general file category