@staticmethod
def get_bcrypt():
    """Returns the `py-bcrypt` library for internal usage.

        :returns: `py-bcrypt` package.
        :raises: :exc:`ImportError` if `py-bcrypt` was not found.
        """
    try:
        import bcrypt
    except ImportError:
        raise ImportError(
            "PasswordField requires 'py-bcrypt' library to hash the passwords."
            )
    else:
        return bcrypt
