    def init_pyoperator(self, file_temp: Union[str, Path], file_dest: Union[str, Path]) -> None:
        """Initialize the files under file_dest by moving and updating the text under file_temp.

        Args:
            file_temp (Union[str, Path]): The path to the template files.
            file_dest (Union[str, Path]): The path to the local repo to init.

        Raises:
            HTTPError: Raise error in request.
            OSError: Raise error in writing file.
        """
        repo_temp = self._temp['pyoperator']

        temp_module = repo_temp.replace('-', '_')
        repo_module = self._repo.replace('-', '_')

        ori_str_list = [f'namespace.{temp_module}', temp_module, repo_temp, ''.join(x.title() for x in repo_temp.split('-'))]
        tar_str_list = [f'{self._author}.{repo_module}', repo_module, self._repo, ''.join(x.title() for x in self._repo.split('-'))]
        for file in Path(file_temp).glob('*'):
            if file.name.endswith(('.md', '.yaml', 'template.py', '__init__.py')):
                new_file = Path(file_dest) / str(file.name).replace(temp_module, repo_module)
                self.hub_utils.update_text(ori_str_list, tar_str_list, str(file), str(new_file))
            elif file.name != '.git':
                os.rename(file, Path(file_dest) / file.name)
Initialize the files under file_dest by moving and updating the text under file_temp.

Args:
file_temp (Union[str, Path]): The path to the template files.
file_dest (Union[str, Path]): The path to the local repo to init.

Raises:
HTTPError: Raise error in request.
OSError: Raise error in writing file.
towhee/hub/operator_manager.py