fleep is a library that determines file format by file signature (also known as "magic number").