def get_tree_entry(self, user, repo, path, ref='master', callback=None, **kwargs):
        # only need a recursive fetch if it's not in the top-level dir
        if '/' in path:
            kwargs['recursive'] = True
        
        f = Future()
        def cb(response):
            try:
                tree_entry = self._extract_tree_entry(path, response)
            except Exception as e:
                f.set_exception(e)
                return
            if callback:
                result = callback(tree_entry)
            else:
                result = tree_entry
            f.set_result(result)
        
        self.get_tree(user, repo, ref=ref, callback=cb, **kwargs)
        return f
Get a single tree entry for a path
dataset/ETHPy150Open jupyter/nbviewer/nbviewer/providers/github/client.py/AsyncGitHubClient.get_tree_entry