endpoint_adapters

Endpoint adapter functions for webapp HTTP dispatch.

These adapters bridge route dispatch to route-domain modules while keeping WebAppHandler focused on transport concerns.

Functions

get_root(handler, _query)

Serve the single-page web UI shell with version injected.

get_static_pipe_works_fonts_css(handler, _query)

Serve shared Pipe-Works font-face declarations.

get_static_pipe_works_base_css(handler, _query)

Serve shared Pipe-Works base design-system stylesheet.

get_static_app_css(handler, _query)

Serve main webapp stylesheet.

get_static_app_js(handler, _query)

Serve main webapp client-side script bundle.

get_static_api_builder_preview_js(handler, _query)

Serve the API builder preview support script.

get_static_favorites_js(handler, _query)

Serve the favorites tab support script.

get_static_font(handler, path)

Serve bundled font files from the static directory.

get_health(handler, _query)

Return a lightweight liveness response.

get_version(handler, _query)

Return the package version.

get_help(handler, _query)

Return Help tab Q&A content.

get_favorites(handler, query)

Return favorites list and metadata.

get_favorite_tags(handler, _query)

Return known favorites tags.

get_favorites_export(handler, _query)

Return export JSON for favorites.

post_favorites(handler)

Persist favorites entries.

post_favorites_update(handler)

Update favorites note or tags.

post_favorites_delete(handler)

Delete a favorite.

post_favorites_export(handler)

Write favorites export to a file path.

post_favorites_import(handler)

Import favorites from a file path.

get_generation_package_options(handler, _query)

Return package options grouped by generation class.

get_generation_package_syllables(handler, query)

Return available syllable options for one class/package selection.

get_generation_selection_stats(handler, query)

Return max item and max unique counts for one selection scope.

get_database_packages(handler, _query)

Return imported package metadata used by the Database View tab.

get_database_package_tables(handler, query)

Return available imported txt tables for a selected package id.

get_database_table_rows(handler, query)

Return paginated rows from one imported physical txt-backed table.

get_favicon(handler, _query)

Reply to browser favicon probes without noisy 404 logs.

post_browse_directory(handler)

Browse a directory for *_metadata.json files.

post_read_metadata(handler)

Read a *_metadata.json file and return its contents.

post_import(handler)

Import one metadata+zip pair and create tables for included txt data.

post_generate(handler)

Generate names from SQLite tables for one selected class scope.

post_database_backup(handler)

Create a backup copy of the main SQLite database.

post_database_export(handler)

Export the main SQLite database to a file path.

post_database_delete_package(handler)

Delete one imported package and its associated tables.

post_database_import(handler)

Restore the main SQLite database from a file path.

Module Contents

endpoint_adapters.get_root(handler, _query)

Serve the single-page web UI shell with version injected.

endpoint_adapters.get_static_pipe_works_fonts_css(handler, _query)

Serve shared Pipe-Works font-face declarations.

endpoint_adapters.get_static_pipe_works_base_css(handler, _query)

Serve shared Pipe-Works base design-system stylesheet.

endpoint_adapters.get_static_app_css(handler, _query)

Serve main webapp stylesheet.

endpoint_adapters.get_static_app_js(handler, _query)

Serve main webapp client-side script bundle.

endpoint_adapters.get_static_api_builder_preview_js(handler, _query)

Serve the API builder preview support script.

endpoint_adapters.get_static_favorites_js(handler, _query)

Serve the favorites tab support script.

endpoint_adapters.get_static_font(handler, path)

Serve bundled font files from the static directory.

endpoint_adapters.get_health(handler, _query)

Return a lightweight liveness response.

endpoint_adapters.get_version(handler, _query)

Return the package version.

endpoint_adapters.get_help(handler, _query)

Return Help tab Q&A content.

endpoint_adapters.get_favorites(handler, query)

Return favorites list and metadata.

endpoint_adapters.get_favorite_tags(handler, _query)

Return known favorites tags.

endpoint_adapters.get_favorites_export(handler, _query)

Return export JSON for favorites.

endpoint_adapters.post_favorites(handler)

Persist favorites entries.

endpoint_adapters.post_favorites_update(handler)

Update favorites note or tags.

endpoint_adapters.post_favorites_delete(handler)

Delete a favorite.

endpoint_adapters.post_favorites_export(handler)

Write favorites export to a file path.

endpoint_adapters.post_favorites_import(handler)

Import favorites from a file path.

endpoint_adapters.get_generation_package_options(handler, _query)

Return package options grouped by generation class.

endpoint_adapters.get_generation_package_syllables(handler, query)

Return available syllable options for one class/package selection.

endpoint_adapters.get_generation_selection_stats(handler, query)

Return max item and max unique counts for one selection scope.

endpoint_adapters.get_database_packages(handler, _query)

Return imported package metadata used by the Database View tab.

endpoint_adapters.get_database_package_tables(handler, query)

Return available imported txt tables for a selected package id.

endpoint_adapters.get_database_table_rows(handler, query)

Return paginated rows from one imported physical txt-backed table.

endpoint_adapters.get_favicon(handler, _query)

Reply to browser favicon probes without noisy 404 logs.

endpoint_adapters.post_browse_directory(handler)

Browse a directory for *_metadata.json files.

endpoint_adapters.post_read_metadata(handler)

Read a *_metadata.json file and return its contents.

endpoint_adapters.post_import(handler)

Import one metadata+zip pair and create tables for included txt data.

endpoint_adapters.post_generate(handler)

Generate names from SQLite tables for one selected class scope.

endpoint_adapters.post_database_backup(handler)

Create a backup copy of the main SQLite database.

endpoint_adapters.post_database_export(handler)

Export the main SQLite database to a file path.

endpoint_adapters.post_database_delete_package(handler)

Delete one imported package and its associated tables.

endpoint_adapters.post_database_import(handler)

Restore the main SQLite database from a file path.