nb_cli.handlers.project

def list_project_templates()

  • 参数

    empty

  • 返回

    • list[str]

def create_project(project_template, context=None, output_dir=None, no_input=True)

  • 参数

    • project_template (str)

    • context (dict[str, Any] | None)

    • output_dir (str | None)

    • no_input (bool)

  • 返回

    • None

async def generate_run_script(adapters=None, builtin_plugins=None)

  • 参数

    • adapters (list[SimpleInfo] | None)

    • builtin_plugins (list[str] | None)

  • 返回

    • str

async def run_project(adapters=None, builtin_plugins=None, exist_bot=Path("bot.py"), *, python_path=None, cwd=None, stdin=None, stdout=None, stderr=None)

  • 参数

    • adapters (list[SimpleInfo] | None)

    • builtin_plugins (list[str] | None)

    • exist_bot (Path)

    • python_path (str | None)

    • cwd (Path | None)

    • stdin (IO[Any] | int | None)

    • stdout (IO[Any] | int | None)

    • stderr (IO[Any] | int | None)

  • 返回

    • asyncio.subprocess.Process