o
    w+f                     @   s   d Z zddlmZ W n
   ddlmZ Y zddlmZ W n
   ddlmZ Y ddlmZm	Z	m
Z
 ddlZeeZe Zejddgdd	d
 Zejejdgddd ZedkrweejdejZeejkrlde_ejdejed dS dS )zgReceiver module for processing SendGrid Inbound Parse messages.

See README.txt for usage instructions.    )Config)Parse)Flaskrequestrender_templateN/GET)methodsc                   C   s   t dS )z2Show index page to confirm that server is running.z
index.html)r    r
   r
   O/var/www/html/venv/lib/python3.10/site-packages/sendgrid/helpers/inbound/app.pyindex   s   r   POSTc                  C   s   t tt} t|   dS )z8Process POST from Inbound Parse and print received data.OK)r   configr   print
key_values)parser
   r
   r   inbound_parse   s   
r   __main__PORTFz0.0.0.0)hostdebugport)__doc__r   r   sendgrid.helpers.inbound.configr   r   sendgrid.helpers.inbound.parseflaskr   r   r   os__name__approuter   endpointr   intenvirongetr   r   run
debug_moder
   r
   r
   r   <module>   s.    



