py file type
1.0.0
wrapper สำหรับ python-magic ที่มีไฟล์ python-magic-bin
สิ่งนี้ทำให้คู่กับปัญหาความขัดแย้งของไฟล์เกิดขึ้นเมื่อพยายามติดตั้ง Python-Magic และ Python-Magic-bin
pip install py-file-typeใช้งานได้เหมือน Python-Magic
import py_file_type as magic
file_type = magic . from_file ( 'video.mp4' , mime = True )
print ( file_type ) # -> video/mp4 Riadh Azzoun - @riad -azz
โครงการนี้ได้รับใบอนุญาตภายใต้ใบอนุญาต [MIT] - ดูไฟล์ License.md สำหรับรายละเอียด