Should I use simple conditionals or a declarative registry to select file hash algorithms?
I'm writing a Python application whose main job is computing hashes for files. The hashing algorithm may depend on both the file's properties, such as its MIME type,…