How asozialesnetzwerk/an-website works
AN Website is a Python web application with browser-side features and integrations. Its principal flow is an HTTP request entering the application, passing through shared request handling, and reaching a feature handler that returns a page or API response. The tree and excerpts also show quote browsing and voting, search, emoji chat, and operational integrations. Several feature files are unsampled, so their internal call paths are not asserted; shared-layer links are included only where the excerpts or source index support them.
Main entry points: request_handler.py Request handling · main.py Application startup · background_tasks.py Background tasks · search.py Search
Components 27
Application
- Application startup
an_website/main.py
Web framework
- Request handling
an_website/utils/request_handler.py - Base handlers
an_website/utils/base_request_handler.py
Website features
- Search
an_website/search/search.py - Quotes
an_website/quotes/quotes.py - Quote data
an_website/quotes/utils.py - Quote images
an_website/quotes/image.py - Emoji chat
an_website/emoji_chat/chat.py - Chat pub/sub
an_website/emoji_chat/pub_sub_provider.py - Contact form
an_website/contact/contact.py - Swapped words
an_website/swapped_words/swap.py - Soundboard
an_website/soundboard/soundboard.py - Settings
an_website/settings/settings.py - Uptime
an_website/uptime/uptime.py
Shared services
- Background tasks
an_website/utils/background_tasks.py - Elasticsearch setup
an_website/utils/elasticsearch_setup.py - Elasticsearch
- Redis
- Configuration
an_website/utils/better_config_parser.py - Static files
an_website/utils/static_file_handling.py - Data parsing
an_website/utils/data_parsing.py - Request decorators
an_website/utils/decorators.py - Options and themes
an_website/utils/options.py - Theme support
an_website/utils/themes.py - Logging
an_website/utils/logging.py - Shared utilities
an_website/utils/utils.py
Other components
- Visitor
Connections 27
- Visitor → Application startup: requests site
- Application startup → Configuration: loads config
an_website/main.py - Application startup → Background tasks: starts tasks
an_website/main.py - Application startup → Static files: configures assets
an_website/main.py - Application startup → Request handling: uses handlers
an_website/main.py - Request handling → Base handlers: extends
an_website/utils/request_handler.py - Search → Request handling: uses handlers
an_website/search/search.py - Search → Quote data: searches quotes
an_website/search/search.py - Search → Soundboard: searches soundboard
an_website/search/search.py - Quotes → Quote data: loads quote data
an_website/quotes/quotes.py - Quotes → Quote images: uses images
an_website/quotes/quotes.py - Emoji chat → Chat pub/sub: uses pub/sub
an_website/emoji_chat/chat.py - Emoji chat → Redis: stores messages
an_website/emoji_chat/chat.py - Contact form → Request handling: uses handlers
an_website/contact/contact.py - Contact form → Visitor: sends email
- Swapped words → Data parsing: parses input
an_website/swapped_words/swap.py - Settings → Options and themes: uses options
an_website/settings/settings.py - Settings → Theme support: uses themes
an_website/settings/settings.py - Uptime → Request handling: uses handlers
an_website/uptime/uptime.py - Background tasks → Elasticsearch setup: sets up search
an_website/utils/background_tasks.py - Elasticsearch setup → Elasticsearch: configures
an_website/utils/elasticsearch_setup.py - Background tasks → Redis: checks health
an_website/utils/background_tasks.py - Background tasks → Elasticsearch: checks health
an_website/utils/background_tasks.py - Request handling → Request decorators: uses decorators
- Request handling → Static files: serves assets
- Options and themes → Base handlers: reads settings
an_website/utils/options.py - Logging → Visitor: posts webhook