🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function mark_notification_read

    Updates a notification's read status in a Neo4j graph database and sets a timestamp when marked as read.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 963-990

    notification database neo4j graph-database read-status
  • function create_notification

    Creates an in-app notification for a user in a graph database, linking it to the user and optionally to a related resource.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 882-961

    notification in-app-notification graph-database neo4j user-notification
  • function html_to_text

    Converts HTML content to plain text by removing HTML tags, decoding common HTML entities, and normalizing whitespace.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 852-878

    html text-conversion html-parsing text-extraction html-entities
  • function render_template

    Renders a template string by replacing placeholders with data values and processing conditional blocks (if/endif tags).

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 704-850

    template-rendering string-formatting conditional-logic placeholder-replacement text-processing
  • function gen_send_email

    Sends templated emails using either MS365 or SMTP provider, with support for multiple recipients, attachments, and HTML/text rendering.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 613-702

    email notification templating MS365 SMTP
  • function send_email_smtp

    Sends emails via SMTP server with support for HTML/text content, multiple recipients (to/cc/bcc), and file attachments.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 545-611

    email smtp communication messaging mime
  • function send_email_ms365

    Sends an email through Microsoft 365 Graph API with support for HTML content, multiple recipients (to/cc/bcc), and file attachments.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 446-543

    email microsoft-365 graph-api ms365 communication
  • function get_ms365_token

    Acquires an OAuth access token for Microsoft 365 using the MSAL library with client credentials flow for authenticating with Microsoft Graph API.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 412-444

    authentication oauth microsoft-365 ms365 msal
  • function get_email_templates

    Loads HTML email templates from a predefined directory structure and returns them as a dictionary mapping template names to their content.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 387-407

    email templates file-loading html template-management
  • class EmailError

    Custom exception class for handling errors that occur during email sending operations.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 383-385

    exception error-handling email custom-exception notification
  • class NotificationManager

    Central manager class for handling in-app and email notifications within the application, providing methods for creating, managing, and sending notifications to users.

    File: /tf/active/vicechatdev/CDocs/utils/notifications.py | Lines: 194-380

    notifications messaging email in-app-notifications user-communication
  • function get_pdf_generator

    Factory function that creates and initializes a PDFGenerator instance with registered fonts and optional custom style initialization, using a non-standard instantiation pattern to bypass __init__.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 2188-2220

    pdf-generation factory-function reportlab initialization document-generation
  • function add_watermark

    A wrapper function that adds a customizable text watermark to every page of a PDF document with configurable opacity and color.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 2162-2186

    pdf watermark document-processing pdf-manipulation branding
  • function extract_text_from_pdf

    Extracts all text content from a PDF document and returns it as a string.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 2145-2160

    pdf text-extraction document-processing file-io pdf-parsing
  • function merge_pdfs

    Merges multiple PDF files into a single consolidated PDF document by delegating to a PDFManipulator instance.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 2126-2143

    pdf merge combine document-processing file-manipulation
  • function merge_pdfs_v1

    Merges multiple PDF files into a single output PDF file with robust error handling and fallback mechanisms.

    File: /tf/active/vicechatdev/msg_to_eml.py | Lines: 412-474

    pdf merge file-processing document-processing pdf-manipulation
  • function convert_to_pdf

    Converts a document file to PDF format, automatically generating an output path if not specified.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 2102-2124

    pdf conversion document-processing file-conversion pdf-generation
  • class PDFTextExtractor

    A class for extracting text, images, and structured content from PDF documents with layout preservation capabilities.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 1743-2097

    pdf text-extraction document-processing layout-analysis markdown-conversion
  • class PDFManipulator

    Manipulates existing PDF documents This class provides methods to add watermarks, merge PDFs, extract pages, and perform other manipulation operations.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 1159-1740

    class pdfmanipulator
  • class SignatureImage

    A ReportLab Flowable subclass for embedding signature images in PDFs with automatic fallback to placeholder text when images are unavailable or cannot be loaded.

    File: /tf/active/vicechatdev/CDocs/utils/pdf_utils.py | Lines: 564-609

    reportlab pdf-generation signature flowable image-handling