photon_platform.clerk.init.progenitor

Repository scaffolding engine supporting code, codex, and catalog archetypes.

Attributes

ARCHETYPES

Functions

create_project(github_id, package_namespace, ...[, ...]) → pathlib.Path | None

Create a new Python 3.13 project repository from archetype templates.

Module Contents

photon_platform.clerk.init.progenitor.ARCHETYPES: tuple[str, ...] = ('code', 'codex', 'catalog')
photon_platform.clerk.init.progenitor.create_project(github_id: str, package_namespace: str, github_repo_id: str, package_name: str, author: str, description: str | None, path: str | pathlib.Path, *, archetype: str = 'code', edition_slug: str | None = None, book_title: str | None = None, book_author: str | None = None, git_init: bool = False) → pathlib.Path | None

Create a new Python 3.13 project repository from archetype templates.

Parameters:
  • github_id – GitHub organization or account slug (e.g. "geometor").

  • package_namespace – Top-level Python namespace package (e.g. "geometor").

  • github_repo_id – Repository folder and GitHub slug (preserves hyphens).

  • package_name – Python package name under src/<package_namespace>/.

  • author – Maintainer / copyright holder name.

  • description – One-line repository summary (auto-populated if None or empty).

  • path – Parent directory in which <github_repo_id>/ will be created.

  • archetype – One of "code", "codex", or "catalog".

  • edition_slug – Primary codex edition directory slug (defaults to package_name).

  • book_title – Optional scholarly treatise or catalog display title.

  • book_author – Optional primary historical or curated author attribution.

  • git_init – If True, initialize a git repository on branch main.

Returns:

Created project_path Path, or None if target already exists.

Raises:

ValueError – If archetype is not one of ARCHETYPES.