endpoint_adapters ================= .. py:module:: endpoint_adapters .. autoapi-nested-parse:: Endpoint adapter functions for webapp HTTP dispatch. These adapters bridge route dispatch to route-domain modules while keeping ``WebAppHandler`` focused on transport concerns. Functions --------- .. autoapisummary:: endpoint_adapters.get_root endpoint_adapters.get_static_pipe_works_fonts_css endpoint_adapters.get_static_pipe_works_base_css endpoint_adapters.get_static_app_css endpoint_adapters.get_static_app_js endpoint_adapters.get_static_api_builder_preview_js endpoint_adapters.get_static_favorites_js endpoint_adapters.get_static_font endpoint_adapters.get_health endpoint_adapters.get_version endpoint_adapters.get_help endpoint_adapters.get_favorites endpoint_adapters.get_favorite_tags endpoint_adapters.get_favorites_export endpoint_adapters.post_favorites endpoint_adapters.post_favorites_update endpoint_adapters.post_favorites_delete endpoint_adapters.post_favorites_export endpoint_adapters.post_favorites_import endpoint_adapters.get_generation_package_options endpoint_adapters.get_generation_package_syllables endpoint_adapters.get_generation_selection_stats endpoint_adapters.get_database_packages endpoint_adapters.get_database_package_tables endpoint_adapters.get_database_table_rows endpoint_adapters.get_favicon endpoint_adapters.post_browse_directory endpoint_adapters.post_read_metadata endpoint_adapters.post_import endpoint_adapters.post_generate endpoint_adapters.post_database_backup endpoint_adapters.post_database_export endpoint_adapters.post_database_delete_package endpoint_adapters.post_database_import Module Contents --------------- .. py:function:: get_root(handler, _query) Serve the single-page web UI shell with version injected. .. py:function:: get_static_pipe_works_fonts_css(handler, _query) Serve shared Pipe-Works font-face declarations. .. py:function:: get_static_pipe_works_base_css(handler, _query) Serve shared Pipe-Works base design-system stylesheet. .. py:function:: get_static_app_css(handler, _query) Serve main webapp stylesheet. .. py:function:: get_static_app_js(handler, _query) Serve main webapp client-side script bundle. .. py:function:: get_static_api_builder_preview_js(handler, _query) Serve the API builder preview support script. .. py:function:: get_static_favorites_js(handler, _query) Serve the favorites tab support script. .. py:function:: get_static_font(handler, path) Serve bundled font files from the static directory. .. py:function:: get_health(handler, _query) Return a lightweight liveness response. .. py:function:: get_version(handler, _query) Return the package version. .. py:function:: get_help(handler, _query) Return Help tab Q&A content. .. py:function:: get_favorites(handler, query) Return favorites list and metadata. .. py:function:: get_favorite_tags(handler, _query) Return known favorites tags. .. py:function:: get_favorites_export(handler, _query) Return export JSON for favorites. .. py:function:: post_favorites(handler) Persist favorites entries. .. py:function:: post_favorites_update(handler) Update favorites note or tags. .. py:function:: post_favorites_delete(handler) Delete a favorite. .. py:function:: post_favorites_export(handler) Write favorites export to a file path. .. py:function:: post_favorites_import(handler) Import favorites from a file path. .. py:function:: get_generation_package_options(handler, _query) Return package options grouped by generation class. .. py:function:: get_generation_package_syllables(handler, query) Return available syllable options for one class/package selection. .. py:function:: get_generation_selection_stats(handler, query) Return max item and max unique counts for one selection scope. .. py:function:: get_database_packages(handler, _query) Return imported package metadata used by the Database View tab. .. py:function:: get_database_package_tables(handler, query) Return available imported txt tables for a selected package id. .. py:function:: get_database_table_rows(handler, query) Return paginated rows from one imported physical txt-backed table. .. py:function:: get_favicon(handler, _query) Reply to browser favicon probes without noisy 404 logs. .. py:function:: post_browse_directory(handler) Browse a directory for *_metadata.json files. .. py:function:: post_read_metadata(handler) Read a *_metadata.json file and return its contents. .. py:function:: post_import(handler) Import one metadata+zip pair and create tables for included txt data. .. py:function:: post_generate(handler) Generate names from SQLite tables for one selected class scope. .. py:function:: post_database_backup(handler) Create a backup copy of the main SQLite database. .. py:function:: post_database_export(handler) Export the main SQLite database to a file path. .. py:function:: post_database_delete_package(handler) Delete one imported package and its associated tables. .. py:function:: post_database_import(handler) Restore the main SQLite database from a file path.