@staticmethod
    def get_by_name(name):
        return RoleMixin.roles[name]
A static method to return the role which has the input name.
dataset/ETHPy150Open shonenada/flask-rbac/flask_rbac/model.py/RoleMixin.get_by_name