Simple HTTP wrapper for google/magika written in python
208
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
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}]
Content type
Image
Digest
sha256:dd309750d…
Size
138.2 MB
Last updated
over 2 years ago
docker pull pierrickm1/magika