Project scaffolding and gateway config generation.
最初に以下の最小例でモジュール利用方法を確認し、その後 API リファレンスを参照してください。
from pathlib import Path
from nexom.buildTools.build import start_project
start_project(project_root=Path('.'), main_name='app', auth_name='auth')
分類: internal function
_bootstrap_auth_master(*, project_root: Path, master_user: str, master_user_login_password: str) -> None
実装コード由来のAPIです。
project_root / kind=keyword-only / type=Path / 必須 / default=なしmaster_user / kind=keyword-only / type=str / 必須 / default=なしmaster_user_login_password / kind=keyword-only / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import _bootstrap_auth_master
result = _bootstrap_auth_master(project_root="/path/to/value", master_user="sample", master_user_login_password="sample")
print(result)
分類: internal function
_copy_from_package(pkg: str, filename: str, dest: Path) -> None
実装コード由来のAPIです。
pkg / kind=positional-or-keyword / type=str / 必須 / default=なしfilename / kind=positional-or-keyword / type=str / 必須 / default=なしdest / kind=positional-or-keyword / type=Path / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import _copy_from_package
result = _copy_from_package(pkg="sample", filename="sample", dest="/path/to/value")
print(result)
分類: internal function
_read_text_from_package(pkg: str, filename: str) -> str
実装コード由来のAPIです。
pkg / kind=positional-or-keyword / type=str / 必須 / default=なしfilename / kind=positional-or-keyword / type=str / 必須 / default=なしstr
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import _read_text_from_package
result = _read_text_from_package(pkg="sample", filename="sample")
print(result)
分類: internal function
_replace_many(text: str, repl: dict[str, str]) -> str
実装コード由来のAPIです。
text / kind=positional-or-keyword / type=str / 必須 / default=なしrepl / kind=positional-or-keyword / type=dict[str, str] / 必須 / default=なしstr
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import _replace_many
result = _replace_many(text="sample", repl="sample")
print(result)
分類: internal function
_validate_app_name(name: str) -> None
実装コード由来のAPIです。
name / kind=positional-or-keyword / type=str / 必須 / default=なしNone
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import _validate_app_name
result = _validate_app_name(name="sample")
print(result)
分類: internal function
_write_gateway_config(gateway_dir: Path, *, kind: str, app_name: str, app_port: int, domain: str) -> Path
実装コード由来のAPIです。
gateway_dir / kind=positional-or-keyword / type=Path / 必須 / default=なしkind / kind=keyword-only / type=str / 必須 / default=なしapp_name / kind=keyword-only / type=str / 必須 / default=なしapp_port / kind=keyword-only / type=int / 必須 / default=なしdomain / kind=keyword-only / type=str / 必須 / default=なしPath
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import _write_gateway_config
result = _write_gateway_config(gateway_dir="/path/to/value", kind="sample", app_name="sample", app_port=1, domain="sample")
print(result)
分類: public function
create_app(project_dir: str | Path, app_name: str, *, options: AppBuildOptions | None = None, gateway_config: str | None = None, domain: str = '') -> Path
Create a new Nexom app scaffold. Copies template assets and writes config/gunicorn/wsgi files.
project_dir / kind=positional-or-keyword / type=str | Path / 必須 / default=なしapp_name / kind=positional-or-keyword / type=str / 必須 / default=なしoptions / kind=keyword-only / type=AppBuildOptions | None / 任意 / default=Nonegateway_config / kind=keyword-only / type=str | None / 任意 / default=Nonedomain / kind=keyword-only / type=str / 任意 / default=''Path
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import create_app
result = create_app(project_dir="sample", app_name="sample", options=None, gateway_config=None, domain='')
print(result)
分類: public function
create_auth(project_dir: str | Path, *, options: AppBuildOptions | None = None, master_user: str = 'master_user', master_user_login_password: str | None = None) -> Path
Create a new Nexom auth app scaffold.
project_dir / kind=positional-or-keyword / type=str | Path / 必須 / default=なしoptions / kind=keyword-only / type=AppBuildOptions | None / 任意 / default=Nonemaster_user / kind=keyword-only / type=str / 任意 / default='master_user'master_user_login_password / kind=keyword-only / type=str | None / 任意 / default=NonePath
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import create_auth
result = create_auth(project_dir="sample", options=None, master_user='master_user', master_user_login_password=None)
print(result)
分類: public function
create_config(project_dir: str | Path, app_name: str, *, options: AppBuildOptions | None = None, auth: bool = False, master_user: str = 'master_user', master_user_login_password: str | None = None) -> Path
Create only config.py for an existing app directory. Raises: - FileNotFoundError: app directory does not exist - FileExistsError: config.py already exists
project_dir / kind=positional-or-keyword / type=str | Path / 必須 / default=なしapp_name / kind=positional-or-keyword / type=str / 必須 / default=なしoptions / kind=keyword-only / type=AppBuildOptions | None / 任意 / default=Noneauth / kind=keyword-only / type=bool / 任意 / default=Falsemaster_user / kind=keyword-only / type=str / 任意 / default='master_user'master_user_login_password / kind=keyword-only / type=str | None / 任意 / default=NonePath
from nexom.buildTools.build import create_config
result = create_config(project_dir="sample", app_name="sample", options=None, auth=False, master_user='master_user', master_user_login_password=None)
print(result)
分類: public function
start_project(*, project_root: Path, main_name: str = 'app', auth_name: str = 'auth', main_options: AppBuildOptions | None = None, auth_options: AppBuildOptions | None = None, gateway: str = 'none', domain: str = '', master_user: str = 'master_user', master_user_login_password: str | None = None) -> Path
Assumption: user already created the project directory and cd'ed into it. So we DO NOT create the project directory itself; we only populate inside.
project_root / kind=keyword-only / type=Path / 必須 / default=なしmain_name / kind=keyword-only / type=str / 任意 / default='app'auth_name / kind=keyword-only / type=str / 任意 / default='auth'main_options / kind=keyword-only / type=AppBuildOptions | None / 任意 / default=Noneauth_options / kind=keyword-only / type=AppBuildOptions | None / 任意 / default=Nonegateway / kind=keyword-only / type=str / 任意 / default='none'domain / kind=keyword-only / type=str / 任意 / default=''master_user / kind=keyword-only / type=str / 任意 / default='master_user'master_user_login_password / kind=keyword-only / type=str | None / 任意 / default=NonePath
実装コード内の例外仕様を確認してください。
from nexom.buildTools.build import start_project
result = start_project(project_root="/path/to/value", main_name='app', auth_name='auth', main_options=None, auth_options=None, gateway='none', domain='', master_user='master_user', master_user_login_password=None)
print(result)
分類: public class
Options for generated app configuration.
このクラスにメソッド定義はありません。
分類: public class
Raised when project generation fails for any reason.
このクラスにメソッド定義はありません。
nexom.buildTools.buildservices/venv/lib/python3.10/site-packages/nexom/buildTools/build.py2026-03-14