module_loader.py

本文介绍了一种在Python中将Jupyter笔记本作为模块导入的方法。通过定义特定的加载器和查找器类,使得能够直接从Jupyter笔记本中导入代码和功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

# few functions that make it possible to import functions
# from jupyter notebooks as from modules;
# source: http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Importing%20Notebooks.html

import io, os, sys, types

from IPython import get_ipython
from nbformat import read
from IPython.core.interactiveshell import InteractiveShell

def find_notebook(fullname, path=None):
    """find a notebook, given its fully qualified name and an optional path
    This turns "foo.bar" into "foo/bar.ipynb"
    and tries turning "Foo_Bar" into "Foo Bar" if Foo_Bar
    does not exist.
    """
    name = fullname.rsplit('.', 1)[-1]
    if not path:
        path = ['']
    for d in path:
        nb_path = os.path.join(d, name + ".ipynb")
        if os.path.isfile(nb_path):
            return nb_path
        # let import Notebook_Name find "Notebook Name.ipynb"
        nb_path = nb_path.replace("_", " ")
        if os.path.isfile(nb_path):
            return nb_path

class NotebookLoader(object):
    """Module Loader for Jupyter Notebooks"""
    def __init__(self, path=None):
        self.shell = InteractiveShell.instance()
        self.path = path

    def load_module(self, fullname):
        """import a notebook as a module"""
        path = find_notebook(fullname, self.path)

        #print ("importing Jupyter notebook from %s" % path)

        # load the notebook object
        with io.open(path, 'r', encoding='utf-8') as f:
            nb = read(f, 4)


        # create the module and add it to sys.modules
        # if name in sys.modules:
        #    return sys.modules[name]
        mod = types.ModuleType(fullname)
        mod.__file__ = path
        mod.__loader__ = self
        mod.__dict__['get_ipython'] = get_ipython
        sys.modules[fullname] = mod

        # extra work to ensure that magics that would affect the user_ns
        # actually affect the notebook module's ns
        save_user_ns = self.shell.user_ns
        self.shell.user_ns = mod.__dict__

        try:
            for cell in nb.cells:
                if cell.cell_type == 'code':
                    # transform the input to executable Python
                    code = self.shell.input_transformer_manager.transform_cell(cell.source)
                    # run the code in themodule
                    exec(code, mod.__dict__)
        finally:
            self.shell.user_ns = save_user_ns
        return mod

class NotebookFinder(object):
    """Module finder that locates Jupyter Notebooks"""
    def __init__(self):
        self.loaders = {}

    def find_module(self, fullname, path=None):
        nb_path = find_notebook(fullname, path)
        if not nb_path:
            return

        key = path
        if path:
            # lists aren't hashable
            key = os.path.sep.join(path)

        if key not in self.loaders:
            self.loaders[key] = NotebookLoader(path)
        return self.loaders[key]



sys.meta_path.append(NotebookFinder())
这是当前版本的结构图这是当前的结构图lufei@fedora:~/文档/聚核助手2.0$ tree -L 4 . ├── aicr.txt ├── assets │   ├── __init__.py │   └── response.mp3 ├── assistant.log ├── audio_test.py ├── backup_20250715_0859.zip ├── batch_update_entry_points.py ├── certs │   ├── ca-bundle.crt -> /etc/ssl/certs/ca-bundle.crt │   ├── eventbus.crt │   ├── eventbus.key │   └── __init__.py ├── chatgpt_importer.py ├── check_syntax.py ├── cleanup_legacy.py ├── code_metrics.csv ├── config │   ├── config.py │   ├── global_config.yaml │   ├── __init__.py │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   └── user_config.yaml ├── config.py ├── config.yaml ├── conversations.json ├── core │   ├── aicore │   │   ├── action_manager.py │   │   ├── actions │   │   │   ├── action_dispatcher.py │   │   │   ├── action_handlers.py │   │   │   ├── actions.yaml │   │   │   ├── __init__.py │   │   │   └── __pycache__ │   │   ├── aicore.py │   │   ├── circuit_breaker.py │   │   ├── command_router.py │   │   ├── context_manager.py │   │   ├── health_monitor.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── memory │   │   │   ├── __init__.py │   │   │   ├── memory_data.json │   │   │   ├── memory_engine.py │   │   │   ├── memory.json │   │   │   ├── memory_log.txt │   │   │   ├── memory_manager.py │   │   │   └── __pycache__ │   │   ├── model_engine.py │   │   └── __pycache__ │   │   ├── action_manager.cpython-313.pyc │   │   ├── aicore.cpython-313.pyc │   │   ├── circuit_breaker.cpython-313.pyc │   │   ├── command_router.cpython-313.pyc │   │   ├── context_manager.cpython-313.pyc │   │   ├── health_monitor.cpython-313.pyc │   │   ├── __init__.cpython-313.pyc │   │   └── model_engine.cpython-313.pyc │   ├── core2_0 │   │   ├── action_dispatcher.py │   │   ├── aicore -> ../../core/aicore │   │   ├── certs │   │   │   └── __init__.py │   │   ├── cli.py │   │   ├── config_manager.py │   │   ├── config.py │   │   ├── error_logger.py │   │   ├── event_bus.py │   │   ├── framework │   │   │   └── __init__.py │   │   ├── __init__.py │   │   ├── jujue_module_generator.py │   │   ├── jumo_core.py │   │   ├── logger.py │   │   ├── module_loader.py │   │   ├── module_manager.py │   │   ├── module_watcher.py │   │   ├── __pycache__ │   │   │   ├── event_bus.cpython-313.pyc │   │   │   ├── __init__.cpython-313.pyc │   │   │   ├── reply_dispatcher.cpython-313.pyc │   │   │   └── trace_logger.cpython-313.pyc │   │   ├── query_handler.py │   │   ├── register_action.py │   │   ├── reply_dispatcher.py │   │   ├── sanhuatongyu │   │   │   ├── config.py │   │   │   ├── context.py │   │   │   ├── emergency_cli.py │   │   │   ├── entry_dispatcher.py │   │   │   ├── events │   │   │   ├── events.py │   │   │   ├── __init__.py │   │   │   ├── logger.py │   │   │   ├── master.py │   │   │   ├── metrics.py │   │   │   ├── module │   │   │   ├── monitoring │   │   │   ├── __pycache__ │   │   │   ├── run_sanhuatongyu.py │   │   │   ├── security │   │   │   ├── system_module.py │   │   │   ├── tests │   │   │   └── utils.py │   │   ├── security_manager.py │   │   ├── self_heal │   │   │   ├── __init__.py │   │   │   ├── log_analyzer.py │   │   │   ├── rollback_manager.py │   │   │   └── self_healing_scheduler.py │   │   ├── trace_logger.py │   │   └── utils.py │   ├── __init__.py │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   └── system │   ├── __init__.py │   ├── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   ├── system_control.cpython-313.pyc │   │   └── system_sense.cpython-313.pyc │   ├── system_control.py │   └── system_sense.py ├── create_memory_module.py ├── data │   ├── __init__.py │   ├── logbook.jsonl │   ├── memory_data.json │   └── memory_log.txt ├── default_config.yaml ├── dependencies │   ├── audio_env │   │   ├── bin │   │   │   ├── activate │   │   │   ├── activate.csh │   │   │   ├── activate.fish │   │   │   ├── Activate.ps1 │   │   │   ├── autopep8 │   │   │   ├── bandit │   │   │   ├── bandit-baseline │   │   │   ├── bandit-config-generator │   │   │   ├── distro │   │   │   ├── edge-playback │   │   │   ├── edge-tts │   │   │   ├── f2py │   │   │   ├── find-corrupt-whisper-files.py │   │   │   ├── flake8 │   │   │   ├── huggingface-cli │   │   │   ├── __init__.py │   │   │   ├── isympy │   │   │   ├── jsonschema │   │   │   ├── markdown-it │   │   │   ├── normalizer │   │   │   ├── numpy-config │   │   │   ├── pbr │   │   │   ├── pip │   │   │   ├── pip3 │   │   │   ├── pip3.13 │   │   │   ├── proton │   │   │   ├── proton-viewer │   │   │   ├── pycodestyle │   │   │   ├── pyflakes │   │   │   ├── pygmentize │   │   │   ├── pylupdate6 │   │   │   ├── python -> /usr/bin/python │   │   │   ├── python3 -> python │   │   │   ├── python3.13 -> python │   │   │   ├── pyuic6 │   │   │   ├── radon │   │   │   ├── rrd2whisper.py │   │   │   ├── srt │   │   │   ├── srt-deduplicate │   │   │   ├── srt-fixed-timeshift │   │   │   ├── srt-linear-timeshift │   │   │   ├── srt-lines-matching │   │   │   ├── srt-mux │   │   │   ├── srt-normalise │   │   │   ├── srt-play │   │   │   ├── srt-process │   │   │   ├── tabulate │   │   │   ├── tiny-agents │   │   │   ├── torchfrtrace │   │   │   ├── torchrun │   │   │   ├── tqdm │   │   │   ├── transformers │   │   │   ├── transformers-cli │   │   │   ├── update-storage-times.py │   │   │   ├── watchmedo │   │   │   ├── whisper-auto-resize.py │   │   │   ├── whisper-auto-update.py │   │   │   ├── whisper-create.py │   │   │   ├── whisper-diff.py │   │   │   ├── whisper-dump.py │   │   │   ├── whisper-fetch.py │   │   │   ├── whisper-fill.py │   │   │   ├── whisper-info.py │   │   │   ├── whisper-merge.py │   │   │   ├── whisper-resize.py │   │   │   ├── whisper-set-aggregation-method.py │   │   │   ├── whisper-set-xfilesfactor.py │   │   │   └── whisper-update.py │   │   ├── include │   │   │   ├── __init__.py │   │   │   └── python3.13 │   │   ├── __init__.py │   │   ├── lib │   │   │   ├── __init__.py │   │   │   └── python3.13 │   │   ├── lib64 -> lib │   │   ├── pyvenv.cfg │   │   └── share │   │   ├── __init__.py │   │   └── man │   ├── __init__.py │   └── requirements.txt ├── dingtalk_install.sh ├── docs │   └── __init__.py ├── entry │   ├── add_entry_func.py │   ├── cli_entry │   │   ├── cli_entry.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── module.py │   │   └── __pycache__ │   │   ├── cli_entry.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── gui_entry │   │   ├── gui_main.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── module.py │   ├── __init__.py │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   ├── register_and_run_entries.py │   ├── voice_entry │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── module.py │   │   └── voice_entry.py │   └── voice_input │   ├── 2 │   │   └── __init__.py │   ├── __init__.py │   ├── manifest.json │   ├── manifest.json.bak │   ├── module.py │   └── voice_input.py ├── external │   ├── cpp_example │   │   └── __init__.py │   ├── go_example │   │   └── __init__.py │   ├── __init__.py │   └── rust_example │   └── __init__.py ├── fix_ai_config.py ├── fix_all_issues.py ├── fix_and_run.sh ├── fix_cli_entry_path_and_dispatcher.py ├── fix_entry_import_paths.py ├── fix_errors.sh ├── fix_imports.py ├── fix_log_calls.py ├── fix_logger_calls.py ├── fix_logger_extra_parens.py ├── fix_logger_extra.py ├── fix_log_path.py ├── fix_package_exports.sh ├── fix_percent_format.py ├── fix_relative_imports.py ├── fix_systemmonitor.py ├── gui │   ├── aicore_gui.py │   ├── __init__.py │   ├── main_gui.py │   ├── main_gui.py.bak │   ├── utils │   │   ├── __init__.py │   │   ├── system_monitor.py │   │   ├── typing_effect.py │   │   └── voice_queue.py │   └── widgets │   ├── background_manager.py │   ├── chat_box.py │   ├── __init__.py │   ├── input_bar.py │   ├── menu_bar.py │   ├── status_panel.py │   └── voice_mode_overlay.py ├── health_checker.py ├── health_checker.py.bak ├── health_report.md ├── init_packages.py ├── init_project.sh ├── __init__.py ├── install_missing_dependencies.py ├── jindouyun_particles.py ├── juhe-main.py ├── juhe-main.py.bak ├── juhe_system.log ├── license ├── logbook.jsonl ├── logs │   ├── audit_20250719.log │   ├── audit_20250720.log │   ├── audit_20250721.log │   ├── cli_20250719_183927.log │   ├── cli_20250719_191337.log │   ├── cli_20250719.log │   ├── cli_20250720.log │   ├── cli_20250721.log │   ├── code_inserter │   │   ├── code_inserter.log │   │   └── __init__.py │   ├── code_reader │   │   ├── code_reader.log │   │   └── __init__.py │   ├── code_reviewer.log │   ├── format_manager │   │   └── format_manager.log │   ├── __init__.py │   ├── logbook │   │   ├── audit.log │   │   └── logbook.jsonl │   └── voice_input │   ├── __init__.py │   └── voice_input.log ├── main_controller.py ├── memory_data.json ├── memory.pkl ├── memory_retrieval.py ├── migrate_log.txt ├── migrate_structure.py ├── models.txt ├── module_loader.py ├── modules │   ├── audio_capture │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── capture.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── audio_consumer │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── audio_consumer.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── cli_entry │   │   ├── cli_main.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── module.py │   ├── code_executor │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_executor.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_executor.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── code_inserter │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_inserter.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_inserter.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── code_reader │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_reader.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_reader.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── code_reviewer │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── code_reviewer.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── code_reviewer.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── format_manager │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── format_manager.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── format_manager.cpython-313.pyc │   │   └── __init__.cpython-313.pyc │   ├── gui_entry │   │   ├── gui_main.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── module.py │   ├── hello_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── hello_module.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── __init__.py │   ├── ju_wu │   │   ├── action_mapper.py │   │   ├── __init__.py │   │   ├── intent_router.py │   │   ├── juwu.py │   │   ├── manifest.json │   │   ├── rules │   │   │   ├── __init__.py │   │   │   ├── intent_rules.json │   │   │   └── manifest.json │   │   ├── rule_trainer_gui.py │   │   ├── rule_trainer_interactive.py │   │   └── rule_trainer_widget.py │   ├── juzi │   │   ├── icons │   │   │   ├── file_000000007978620ab9d2f348a2d62a7f-9db60022-3243-4e66-acda-80f38ba5248b.png │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── juzi_engine.py │   │   ├── juzi.py │   │   ├── juzi.xml │   │   └── manifest.json │   ├── language_bridge │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── language_bridge.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   └── module.py │   ├── logbook │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── logbook_manager.py │   │   ├── logbook.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   └── logbook.cpython-313.pyc │   ├── model_engine │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── model_engine.py │   │   ├── module.py │   │   └── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   ├── model_engine.cpython-313.pyc │   │   └── module.cpython-313.pyc │   ├── music_manager │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── music_manager.py │   │   └── __pycache__ │   │   ├── __init__.cpython-313.pyc │   │   ├── module.cpython-313.pyc │   │   └── music_manager.cpython-313.pyc │   ├── __pycache__ │   │   └── __init__.cpython-313.pyc │   ├── reply_dispatcher │   │   ├── dispatcher.py │   │   ├── __init__.py │   │   ├── manifest.json │   │   └── register_actions.py │   ├── self_learning_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── self_learning_module.py │   ├── smart_demo_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── smart_demo_module.py │   ├── speech_manager │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── __pycache__ │   │   │   ├── __init__.cpython-313.pyc │   │   │   └── module.cpython-313.pyc │   │   └── speech_manager.py │   ├── stt_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── stt_module.py │   ├── system_control │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── __pycache__ │   │   │   ├── __init__.cpython-313.pyc │   │   │   └── module.cpython-313.pyc │   │   └── system_control.py │   ├── system_monitor │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   ├── __pycache__ │   │   │   ├── __init__.cpython-313.pyc │   │   │   ├── module.cpython-313.pyc │   │   │   └── system_monitor.cpython-313.pyc │   │   └── system_monitor.py │   ├── test_module │   │   ├── 1 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── test_module.py │   ├── voice_entry │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── module.py │   │   └── voice_entry.py │   ├── voice_input │   │   ├── 2 │   │   │   ├── __init__.py │   │   │   └── manifest.json │   │   ├── __init__.py │   │   ├── manifest.json │   │   ├── manifest.json.bak │   │   ├── module.py │   │   └── voice_input.py │   └── wake_word_detector │   ├── 1 │   │   ├── __init__.py │   │   └── manifest.json │   ├── download_whisper_model.py │   ├── __init__.py │   ├── manifest.json │   ├── manifest.json.bak │   ├── module.py │   └── wake_word_detector.py ├── module_standardizer.py ├── mysterious_entry_tool.py ├── ollama_bin │   ├── __init__.py │   └── ollama ├── ollama_data │   ├── history │   ├── id_ed25519 │   ├── id_ed25519.pub │   └── __init__.py ├── ollama_models │   ├── blobs │   │   ├── __init__.py │   │   ├── sha256-3f8eb4da87fa7a3c9da615036b0dc418d31fef2a30b115ff33562588b32c691d │   │   ├── sha256-4fa551d4f938f68b8c1e6afa9d28befb70e3f33f75d0753248d530364aeea40f │   │   ├── sha256-577073ffcc6ce95b9981eacc77d1039568639e5638e83044994560d9ef82ce1b │   │   ├── sha256-6a0746a1ec1aef3e7ec53868f220ff6e389f6f8ef87a01d77c96807de94ca2aa │   │   └── sha256-8ab4849b038cf0abc5b1c9b8ee1443dca6b93a045c2272180d985126eb40bf6f │   ├── __init__.py │   └── manifests │   ├── __init__.py │   └── registry.ollama.ai │   ├── __init__.py │   └── library ├── README.md ├── recordings │   └── __init__.py ├── register_entries.sh ├── replace_imports.py ├── replace_logging.py ├── restructure_dirs.sh ├── rollback_snapshots │   ├── backup │   │   ├── backup_20250629_215816_94cd3d │   │   │   ├── code_executor.py │   │   │   ├── code_inserter.py │   │   │   ├── code_reader.py │   │   │   ├── code_reviewer.py │   │   │   ├── format_manager.py │   │   │   ├── hello_module.py │   │   │   ├── __init__.py │   │   │   ├── logbook.py │   │   │   ├── model_engine.py │   │   │   ├── music_manager.py │   │   │   ├── speech_manager.py │   │   │   ├── system_control.py │   │   │   └── system_monitor.py │   │   └── __init__.py │   ├── __init__.py │   ├── rollback_history.json │   ├── snapshot_20250629_215118_795f59e1 │   │   ├── code_executor.py │   │   ├── code_inserter.py │   │   ├── code_reader.py │   │   ├── code_reviewer.py │   │   ├── format_manager.py │   │   ├── hello_module.py │   │   ├── __init__.py │   │   ├── logbook.py │   │   ├── model_engine.py │   │   ├── music_manager.py │   │   ├── speech_manager.py │   │   ├── system_control.py │   │   └── system_monitor.py │   ├── snapshot_20250629_215407_65d62c0e │   │   ├── code_executor.py │   │   ├── code_inserter.py │   │   ├── code_reader.py │   │   ├── code_reviewer.py │   │   ├── format_manager.py │   │   ├── hello_module.py │   │   ├── __init__.py │   │   ├── logbook.py │   │   ├── model_engine.py │   │   ├── music_manager.py │   │   ├── speech_manager.py │   │   ├── system_control.py │   │   └── system_monitor.py │   └── snapshot_20250629_215816_c3d93551 │   ├── code_executor.py │   ├── code_inserter.py │   ├── code_reader.py │   ├── code_reviewer.py │   ├── format_manager.py │   ├── hello_module.py │   ├── __init__.py │   ├── logbook.py │   ├── model_engine.py │   ├── music_manager.py │   ├── speech_manager.py │   ├── system_control.py │   └── system_monitor.py ├── rule_trainer.py ├── run_all_entries.py ├── runtime │   ├── __init__.py │   ├── logs │   │   └── __init__.py │   ├── recordings │   │   └── __init__.py │   └── temp │   └── __init__.py ├── sanhua_self_healer.py ├── scaffold │   ├── fix_all_imports.py │   ├── health_checker.py │   ├── __init__.py │   └── standardize_modules.py ├── scan_old_imports.py ├── start_ollama.sh ├── startup_fix.py ├── system.log ├── test_mic.py ├── tests │   ├── __init__.py │   ├── test_aicore.py │   ├── test_entry_dispatcher.py │   └── test_modules_loading.py ├── test.wav ├── third_party │   ├── __init__.py │   └── ollama │   └── __init__.py ├── tools │   ├── cert_fix_tool.py │   ├── config_validator.py │   ├── import_checker.py │   └── path_dependency_checker.py ├── trace_memory_summary_calls.py ├── update_entry_points.py ├── utils │   └── __init__.py └── venv ├── bin │   ├── activate │   ├── activate.csh │   ├── activate.fish │   ├── Activate.ps1 │   ├── bandit │   ├── bandit-baseline │   ├── bandit-config-generator │   ├── flake8 │   ├── futurize │   ├── markdown-it │   ├── pasteurize │   ├── pbr │   ├── pip │   ├── pip3 │   ├── pip3.11 │   ├── pycodestyle │   ├── pyflakes │   ├── pygmentize │   ├── python -> python3.11 │   ├── python3 -> python3.11 │   ├── python3.11 -> /usr/bin/python3.11 │   ├── radon │   └── watchmedo ├── include │   └── python3.11 ├── lib │   └── python3.11 │   └── site-packages ├── lib64 -> lib ├── pyvenv.cfg └── share └── man └── man1 159 directories, 624 files lufei@fedora:~/文档/聚核助手2.0$
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值