Определение типа файлов по содержимому
Готовые бинарники:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/google/magika/releases/download/cli/v0.1.3/magika-installer.sh | sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/google/magika/releases/download/cli/v0.1.3/magika-installer.ps1 | iex"
Также работает в качестве 😰 Python библиотеки
Установка:
pip install magika
from magika import Magika
m = Magika()
res = m.identify_path('./tests_data/basic/ini/doc.ini')
print(res.output.label)
// ini
💻 Repo
🔗 Home
#magika #file #content
✈️ Whitehat Lab 💬Chat
