constants ========= .. py:module:: constants .. autoapi-nested-parse:: Shared constants for the webapp server and UI behavior. Keeping these values in one module makes it easier to reuse route-level limits and Generation tab metadata across HTTP handlers and service modules as refactoring continues. Attributes ---------- .. autoapisummary:: constants.DEFAULT_PAGE_LIMIT constants.MAX_PAGE_LIMIT constants.GENERATION_NAME_CLASSES constants.GENERATION_CLASS_PATTERNS constants.GENERATION_CLASS_KEYS constants.GENERATION_SYLLABLE_LABELS Module Contents --------------- .. py:data:: DEFAULT_PAGE_LIMIT :value: 20 .. py:data:: MAX_PAGE_LIMIT :value: 200 .. py:data:: GENERATION_NAME_CLASSES :type: list[tuple[str, str]] :value: [('first_name', 'First Name'), ('last_name', 'Last Name'), ('place_name', 'Place Name'),... .. py:data:: GENERATION_CLASS_PATTERNS :type: dict[str, tuple[str, Ellipsis]] .. py:data:: GENERATION_CLASS_KEYS :type: set[str] .. py:data:: GENERATION_SYLLABLE_LABELS :type: dict[str, str]