nb_cli.handlers.project

def list_project_templates()

  • ่ฟ”ๅ›ž

    • 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=PosixPath('bot.py'), python_path=None, cwd=None, stdin=None, stdout=None, stderr=None)

  • ๅ‚ๆ•ฐ

    • adapters (list[SimpleInfo] | None)

    • builtin_plugins (list[str] | None)

    • exist_bot (pathlib.Path)

    • python_path (str | None)

    • cwd (pathlib.Path | None)

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

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

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

  • ่ฟ”ๅ›ž

    • asyncio.subprocess.Process

async def terminate_project(process)

  • ๅ‚ๆ•ฐ

    • process (asyncio.subprocess.Process)
  • ่ฟ”ๅ›ž

    • None