python-magic
Package — DocumentsPython 3.7+Intermediate
File type identification using libmagic (MIME types)
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.7+
- Dependencies
- libmagic (system library required)
- Install
pip install python-magic
Learn by Difficulty
Quick Example
python
# Install: pip install python-magic import python_magic # Basic python-magic usage print(f"Using python-magic") # See documentation for detailed examples
python-magic is a third-party package. File type identification using libmagic (MIME types). Install with: pip install python-magic
Try in PlaygroundTags
packagedocumentsfile-formatoffice