@staticmethod
    def hal(root, 
            apiname=None, 
            default_curie=None,
            auth=None, 
            headers=None, 
            session=None,
            ):
        '''Create a HALNavigator'''
        root = utils.fix_scheme(root)
        halnav = HALNavigator(
            link=Link(uri=root),
            core=APICore(
                root=root,
                nav_class=HALNavigator,
                apiname=apiname,
                default_curie=default_curie,
                session=session,
            )
        )
        if auth:
            halnav.authenticate(auth)
        halnav.headers.update(DEFAULT_HEADERS)
        if headers is not None:
            halnav.headers.update(headers)
        return halnav
dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/Navigator.hal/original