epythet.cli¶
Command line access to epythet.
epythet quickstart PROJECT_DIR [--ignore ...] is the command the
publish-github-pages action runs: it scaffolds docsrc, builds the HTML
and writes it to PROJECT_DIR/docsrc/_build/html.
Module Attributes
The commands |
|
The v2 source-editing and fleet commands, by their command-line name. |
|
maintenance of the artifact ledger. |
|
the command modules use |
Functions
|
List the AI agent artifacts a project ships (skills, subagents, instruction files). |
|
Print the build provenance record for a project as JSON. |
|
Diagnose GitHub Pages setup for a repo. |
|
Enable or fix GitHub Pages for a repo. |
|
Entry point for the |
|
The full |
|
Scaffold docsrc and build the HTML documentation in one go. |
- epythet.cli.COMMANDS = [<function make_docsrc>, <function make_autodocs>, <function make>, <function quickstart>, <function check_pages>, <function configure_pages>, <function validate>, <function ai_artifacts>, <function ai_readme_check>, <function build_info>]¶
The commands
epythetexposes, in the order they appear in--help.
- epythet.cli.CONVENTION = Convention(naming='by_name_if_has_default', short_flags=True, hyphenate_commands=True, hyphenate_groups=False, default_in_help=True, hints_when_declared=False, resolve_hints=True, decode=<function argh_decode>, egress=<function argh_egress>)¶
the command modules use
from __future__ import annotations, andlist[str]must still becomenargs="*"(--ignore a b), not a single value.- Type:
cw’s argh-compatible convention, resolving string annotations
- epythet.cli.LEDGER_COMMANDS = {'propose': <function propose_command>}¶
maintenance of the artifact ledger.
- Type:
epythet ledger <command>
- epythet.cli.TOOL_COMMANDS = {'migrate-style': <function migrate_style_command>, 'repair': <function repair_command>, 'sweep': <function sweep_command>}¶
The v2 source-editing and fleet commands, by their command-line name.
- epythet.cli.ai_artifacts(project_dir, *, format='table')[source]¶
List the AI agent artifacts a project ships (skills, subagents, instruction files).
Looks where agents and
gh skilllook:<pkg>/data/skills,skills/,.claude/skills,<pkg>/data/agents,.claude/agents,CLAUDE.md,AGENTS.md,.cursor/rules,.codex. The same discovery feeds the generated “For AI agents” documentation page.- Parameters:
project_dir – the project root
format (
str) – table (human) or json
- epythet.cli.build_info(project_dir, *, no_pypi=False)[source]¶
Print the build provenance record for a project as JSON.
The same record that an
htmlbuild writes tobuild_info.jsonat the site root and renders on the about-this-build page: package name and version, git commit/branch/tags/dirty flag, CI context, tool versions, the resolved configuration, the latest PyPI release and whether the docs and the package look aligned. The documented-module counts need a build and arenullhere.- Parameters:
project_dir – the project root
no_pypi (
bool) – skip the PyPI lookup (alsoEPYTHET_PYPI_CHECK=0)
- epythet.cli.check_pages(repo, *, no_url_check=False)[source]¶
Diagnose GitHub Pages setup for a repo.
- Parameters:
repo – GitHub repo as ‘owner/repo’, or path to a local git checkout.
no_url_check (
bool) – Skip checking if the docs URL actually responds.
- epythet.cli.configure_pages(repo, *, branch='gh-pages', path='/')[source]¶
Enable or fix GitHub Pages for a repo. Requires gh CLI or GITHUB_TOKEN.
- epythet.cli.mk_epythet_parser(**parser_kwargs)[source]¶
The full
epythetparser: the flat commands, the tool commands, theledgergroup.
- epythet.cli.quickstart(project_dir, *, ignore=None)[source]¶
Scaffold docsrc and build the HTML documentation in one go.
Equivalent to
make-docsrcthenmake html, withignoreapplied to the API generator. An emptyignore(the action passes--ignorewith no values when its input is unset, or"") means “use the configured default”; each value may itself be comma-separated.