def blowfish():
    hash_ = '$2a$06$HLZUXMgqFhi/sl1D697il.lN8OMQFBWR2VBuZ5nTCd59jvGLU9pQ2'
print(bcrypt.verify('12345678', hash_))
if __name__ == '__main__':
    blowfish()
Bind to pgcrypto from python