def hash_password(password):

    return bcrypt.hashpw(password, bcrypt.gensalt(8))
just like flask's ext init_app()
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/user.py/hash_password--crossover with--dataset/ETHPy150Open guyskk/flask-restaction/flask_restaction/auth.py/Auth.init_api