Sign inSign up

pierrickm1/magika

By pierrickm1

•Updated over 2 years ago

Simple HTTP wrapper for google/magika written in python

Image
0

208

pierrickm1/magika repository overview

⁠Simple HTTP wrapper for google/magika

Runs magika on files sent to the server with a POST request using multipart/form-data content-type. Use the 'file' key on the FormData object.

e.g.:

curl -F '[email protected]' http://localhost:8888

Multiple files are also supported:

curl -F '[email protected]' -F '[email protected]' -F '[email protected]' http://localhost:8888 

⁠Response

The results are sent back as a JSON encoded array.

Sample response:

[{"filename": "wp.jpg", "type": "jpeg", "score": 1.0}, {"filename": "wallpaper.old", "type": "jpeg", "score": 1.0}, {"filename": "img.png", "type": "png", "score": 1.0}]

Tag summary

Content type

Image

Digest

sha256:dd309750d…

Size

138.2 MB

Last updated

over 2 years ago

docker pull pierrickm1/magika