🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "flask"

Found 50 matching component(s)

  • function test_web_ui

    Integration test function that validates a Flask web UI for meeting minutes generation by testing file upload, generation, and regeneration endpoints with sample transcript and PowerPoint files.

    File: /tf/active/vicechatdev/leexi/test_ui.py

    testing integration-test web-ui flask api-testing
  • function allowed_file

    Validates whether a filename has an allowed file extension by checking if it contains a dot and if the extension (case-insensitive) exists in a predefined ALLOWED_EXTENSIONS collection.

    File: /tf/active/vicechatdev/leexi/app.py

    validation file-upload security flask file-extension
  • function index_v6

    Flask route handler that renders the main landing page containing a form for the meeting minutes application.

    File: /tf/active/vicechatdev/leexi/app.py

    flask web route-handler view-function template-rendering
  • function generate_minutes

    Flask route handler that processes uploaded meeting transcripts and optional supporting documents to generate structured meeting minutes using AI, with configurable output styles and validation.

    File: /tf/active/vicechatdev/leexi/app.py

    flask web-api file-upload meeting-minutes ai-generation
  • function regenerate_minutes

    Flask route handler that regenerates meeting minutes from a previous session using modified instructions, model selection, and configuration parameters.

    File: /tf/active/vicechatdev/leexi/app.py

    flask meeting-minutes regeneration ai-generation openai
  • function download_file

    Flask route handler that serves generated report files for download from a designated reports folder.

    File: /tf/active/vicechatdev/leexi/app.py

    flask file-download web-route file-serving error-handling
  • function health_check

    A Flask route handler that provides a health check endpoint returning the application's status and current timestamp.

    File: /tf/active/vicechatdev/leexi/app.py

    health-check monitoring flask endpoint api
  • function test_upload

    Flask route handler that serves a static HTML test page for debugging multiple file upload functionality.

    File: /tf/active/vicechatdev/leexi/app.py

    flask route file-upload testing debugging
  • function test_multiple_file_upload

    A test function that validates multiple file upload functionality to a Flask application endpoint by sending a transcript file and multiple previous report files.

    File: /tf/active/vicechatdev/leexi/test_flask_upload.py

    testing file-upload integration-test flask multipart-form
  • function login_required

    A Flask decorator that enforces authentication requirements on routes by checking for user session data and redirecting unauthenticated users to the login page.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication decorator flask security session-management
  • function get_user_session_key

    Generates a user-specific session key by combining user ID and session ID when authentication is required, or returns just the session ID otherwise.

    File: /tf/active/vicechatdev/docchat/app.py

    session-management authentication user-session key-generation session-key
  • function get_current_user_id

    Retrieves the current logged-in user's ID from the Flask session, returning 'anonymous' if authentication is disabled or no user is logged in.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication session-management user-identification flask access-control
  • function is_admin_user

    Checks if the currently authenticated user has administrator privileges by comparing their email against a hardcoded list of admin emails.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication authorization rbac admin access-control
  • function load_session_from_disk

    Loads a session from disk storage by reading a JSON file identified by session_id, deserializing the data, and converting timestamp strings back to datetime objects.

    File: /tf/active/vicechatdev/docchat/app.py

    session-management persistence file-io deserialization json
  • function create_task

    Creates and registers a new background task in a thread-safe manner by initializing its metadata in a shared dictionary with status tracking, progress information, and timestamps.

    File: /tf/active/vicechatdev/docchat/app.py

    task-management background-tasks thread-safe concurrency task-tracking
  • function get_task_status_v1

    Thread-safe function that retrieves the current status of a task from a shared dictionary using a task identifier.

    File: /tf/active/vicechatdev/docchat/app.py

    threading concurrency task-management status-tracking thread-safe
  • function login

    Flask route handler that renders the login page for user authentication, with support for Azure SSO integration and automatic redirection for authenticated users or when authentication is disabled.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication login flask-route session-management azure-sso
  • function azure_callback

    OAuth 2.0 callback endpoint for Azure AD authentication that exchanges authorization codes for access tokens and establishes user sessions.

    File: /tf/active/vicechatdev/docchat/app.py

    oauth authentication azure-ad callback session-management
  • function logout

    Flask route handler that logs out the current user by clearing their session and redirecting them to either the login page or index page based on authentication requirements.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication logout session-management flask-route user-management
  • function index_v1

    Flask route handler that renders the main application page with user session management, authentication checks, and document collection statistics.

    File: /tf/active/vicechatdev/docchat/app.py

    flask web-route session-management authentication main-page
  • function user_guide

    Flask route handler that renders and displays the user guide page for the application.

    File: /tf/active/vicechatdev/docchat/app.py

    flask web-route template-rendering user-guide documentation
  • function api_get_models

    Flask API endpoint that returns a list of available LLM models and the default model configuration.

    File: /tf/active/vicechatdev/docchat/app.py

    api flask rest-api llm configuration
  • function api_get_system_config

    Flask API endpoint that retrieves current system configuration settings for admin users only, returning configuration values like system role, expertise, domain context, and supported languages.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api admin configuration system-settings
  • function api_update_system_config

    Flask API endpoint that allows administrators to update system configuration settings including system role, expertise, domain context, custom instructions, output style, and query languages, with persistence to disk.

    File: /tf/active/vicechatdev/docchat/app.py

    admin configuration system-settings api-endpoint flask
  • function get_session_settings

    Flask API endpoint that retrieves saved settings for the current user's session from the session store.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api session-management settings rest-api
  • function save_session_settings

    Flask API endpoint that saves user-provided settings for the current session by retrieving the session ID from Flask's session object and updating the session settings in the backend.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api-endpoint session-management settings configuration
  • function get_session_history

    Flask API endpoint that retrieves the chat message history for the current user's session.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api rest-endpoint session-management chat-history
  • function api_chat

    Flask API endpoint that handles chat requests asynchronously, processing user queries through a RAG (Retrieval-Augmented Generation) engine with support for multiple modes, memory, web search, and custom configurations.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api chat async rag
  • function api_task_status

    Flask API endpoint that retrieves and returns the status of asynchronous tasks (chat or indexing operations) by task ID.

    File: /tf/active/vicechatdev/docchat/app.py

    api flask rest-endpoint task-status async-polling
  • function api_chat_status

    Flask API endpoint that retrieves the detailed status of a chat task by delegating to the api_task_status function using the provided task_id.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api endpoint chat status
  • function api_document_tree

    Flask API endpoint that returns a hierarchical document tree structure from a configured document folder, supporting lazy loading and full expansion modes for efficient navigation and search.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api rest-endpoint document-management tree-structure
  • function api_folders

    Flask API endpoint that returns a hierarchical JSON tree structure of all folders (excluding files) within the configured document folder, used for folder selection in upload interfaces.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api endpoint folder-tree directory-structure
  • function api_upload

    Flask API endpoint that handles file uploads, validates file types, saves files to a configured directory structure, and automatically indexes the uploaded document for search/retrieval.

    File: /tf/active/vicechatdev/docchat/app.py

    file-upload api-endpoint document-management rag indexing
  • function api_documents

    Flask API endpoint that retrieves statistics and metadata about indexed documents from a document indexer service.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api rest-endpoint document-management statistics
  • function api_clear_history

    Flask API endpoint that clears the chat history for the current user session by removing stored conversation data associated with the session ID.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api endpoint chat history
  • function api_index_folder

    Flask API endpoint that initiates a background task to index documents in a specified folder, tracking progress and returning a task ID for status monitoring.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api endpoint background-task document-indexing
  • function api_index_progress

    Flask API endpoint that retrieves the current progress status of an asynchronous indexing task by its task ID.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api rest-endpoint progress-tracking async-task
  • function view_document

    Flask route handler that serves documents for in-browser viewing by accepting a file path as a query parameter, validating security constraints, and returning the file with appropriate MIME types and CORS headers.

    File: /tf/active/vicechatdev/docchat/app.py

    flask file-serving document-viewer security path-validation
  • function health_v1

    Flask route handler that provides a health check endpoint returning the operational status of the application and its core components (RAG engine and document indexer).

    File: /tf/active/vicechatdev/docchat/app.py

    health-check monitoring diagnostics flask rest-api
  • function not_found_v1

    Flask error handler that returns a JSON response with a 404 status code when a requested resource is not found.

    File: /tf/active/vicechatdev/docchat/app.py

    flask error-handler http-404 json-response web-api
  • function internal_error

    Flask error handler that catches internal server errors (HTTP 500), logs them, and returns a standardized JSON error response.

    File: /tf/active/vicechatdev/docchat/app.py

    flask error-handler http-500 exception-handling logging
  • function get_instruction_templates

    Flask API endpoint that returns a dictionary of predefined instruction templates for different document types including SOPs, work instructions, quality forms, and document comparison guidelines.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api endpoint templates instructions
  • function save_custom_instructions

    Flask API endpoint that saves custom instructions to a markdown file in a designated instructions directory with filename sanitization.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api-endpoint file-operations rest-api file-saving
  • function load_custom_instructions

    Flask API endpoint that loads and returns the content of custom instruction files from a designated instructions directory with security validation.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api-endpoint file-loading security path-traversal-prevention
  • function list_custom_instructions

    Flask API endpoint that retrieves and returns a list of all custom instruction markdown files stored in the 'instructions' directory.

    File: /tf/active/vicechatdev/docchat/app.py

    flask api rest-api file-listing directory-scanning
  • function export_to_word

    Flask route handler that exports a chat conversation to a formatted Microsoft Word (.docx) document with styled headings, timestamps, and references.

    File: /tf/active/vicechatdev/docchat/app.py

    export word-document docx chat-history conversation-export
  • function export_to_pdf_v1

    Flask route handler that exports a chat conversation to a PDF file with formatted messages, roles, and references using the reportlab library.

    File: /tf/active/vicechatdev/docchat/app.py

    pdf-export document-generation chat-export reportlab flask-route
  • function get_current_username

    Retrieves the current user's username from Flask-Login's current_user object or falls back to the Flask session, returning 'anonymous' if neither is available.

    File: /tf/active/vicechatdev/docchat/blueprint.py

    authentication flask user-management session flask-login
  • function index_v2

    Flask route handler that renders the main DocChat interface with document collection statistics.

    File: /tf/active/vicechatdev/docchat/blueprint.py

    flask route-handler web-interface authentication rag
  • function user_guide_v1

    Flask route handler that renders the user guide page for the document chat application.

    File: /tf/active/vicechatdev/docchat/blueprint.py

    flask route-handler view-function authentication user-guide

Search Examples