hashin does something similar but supports cryptographic hashes that pip 8 understands. 
<a href="https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;hashin" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;hashin</a>