Run Nexom projects with gunicorn.
最初に以下の最小例でモジュール利用方法を確認し、その後 API リファレンスを参照してください。
from pathlib import Path
from nexom.buildTools.run import run_project
run_project(Path('.'), app_names=['app'])
分類: internal function
_is_windows() -> bool
実装コード由来のAPIです。
bool
実装コード内の例外仕様を確認してください。
from nexom.buildTools.run import _is_windows
result = _is_windows()
print(result)
分類: internal function
_detect_apps(project_root: Path) -> list[DetectedApp]
Scan project_root for runnable apps.
project_root / kind=positional-or-keyword / type=Path / 必須 / default=なしlist[DetectedApp]
実装コード内の例外仕様を確認してください。
from nexom.buildTools.run import _detect_apps
result = _detect_apps(project_root="/path/to/value")
print(result)
分類: internal function
_require_gunicorn() -> str
実装コード由来のAPIです。
str
実装コード内の例外仕様を確認してください。
from nexom.buildTools.run import _require_gunicorn
result = _require_gunicorn()
print(result)
分類: internal function
_build_cmd(gunicorn_bin: str, app: DetectedApp) -> list[str]
実装コード由来のAPIです。
gunicorn_bin / kind=positional-or-keyword / type=str / 必須 / default=なしapp / kind=positional-or-keyword / type=DetectedApp / 必須 / default=なしlist[str]
実装コード内の例外仕様を確認してください。
from nexom.buildTools.run import _build_cmd
result = _build_cmd(gunicorn_bin="sample", app=...)
print(result)
分類: public function
run_project(project_root: Path, app_names: list[str] | None = None, *, dry_run: bool = False) -> None
Run WSGI apps in a Nexom project directory. - Detect apps: directories that contain both wsgi.py and gunicorn.conf.py. - If app_names is empty -> run all detected apps. - Else -> run only the specified ones. Notes: - Uses subprocess to start gunicorn (stable + predictable). - On Windows: gunicorn isn't supported (POSIX only) -> raise clear error.
project_root / kind=positional-or-keyword / type=Path / 必須 / default=なしapp_names / kind=positional-or-keyword / type=list[str] | None / 任意 / default=Nonedry_run / kind=keyword-only / type=bool / 任意 / default=FalseNone
実装コード内の例外仕様を確認してください。
from nexom.buildTools.run import run_project
result = run_project(project_root="/path/to/value", app_names=None, dry_run=False)
print(result)
分類: public class
Detected app directory with wsgi and gunicorn config.
このクラスにメソッド定義はありません。
分類: public class
Raised when naxom run fails.
このクラスにメソッド定義はありません。
nexom.buildTools.runservices/venv/lib/python3.10/site-packages/nexom/buildTools/run.py2026-03-14