SHA-1 and MD5 BruteForce in Python 3.7
For hash brute-forcing, the short answer is "don't do it in Python". You'll get massive performance gains in switching to C or C++.

Since this is for learning purposes, reviewing your Python:


For legibility, add a newline between your imports and your code.
Consider putting your global-scope code into a main() function plus subdividing some of the code into other functions.
Does your code actually run? You have a loop on ready, but you don't modify its value, so I think it's going to hang there. I suspect that you've broken your loop's indentation, and that some statements below belong in the loop.
Instead of setting ready to later break out of the loop, you can simply break. You can get rid of your else/continue.