richardlehane / siegfried

signature-based file format identification
http://www.itforarchivists.com/siegfried
Apache License 2.0
224 stars 30 forks source link

Python wrapper? #135

Closed DonaldTsang closed 4 years ago

DonaldTsang commented 4 years ago

Is it possible to wrap this library in a Python library, since that fits my usecase of Python scripting?

richardlehane commented 4 years ago

Hi @DonaldTsang Yes, this is certainly possible: the Archivematica project (https://github.com/artefactual/archivematica) wraps siegfried in a python script for example. They do it just using os.Exec but you could also use siegfried's HTTP API for this