xbp 0.5.4

XBP is a build pack and deployment management tool to deploy, rust, nextjs etc and manage the NGINX configs below it
Documentation
�

�čh$	�� �%SSKJrJr SSKJrJrJr SSKrSSKJ	r	J
r
 \RRS5r
\\S'\RRS5r\\S'\
(a\(d\"S	5e\	"\
\5r\
\S
'"SS\5rg)
�)�	BaseModel�ValidationError)�Optional�Dict�AnyN)�
create_client�Client�XLX_SUPABASE_URL�supabase_url�XLX_SUPABASE_ANON_KEY�supabase_keyz8Supabase URL or Key is missing in environment variables.�supabasec���\rSrSr%\\S'\\\\	4\S'\\\S'\\\S'\\\\	4\S'\\S'\\S'\\S	'\\S
'\\S'\\S'\\S
'\\S'\\\S'\\S'\
\S'\\S'\\S'\\S'\\\S'\\\S'\\\S'\\\S'\\\S'\\\\	4\S'\\\S'\\\S'\\\S'\\\\	4\S'\\\S'\\\S '\S$S!j5rS"r
g#)%�XbpLog��time�request�http_status�method�payload�status�message�
deployment_id�	commit_id�
project_id�action�host�
user_agent�content_type�repository_url�error�runtime_version�runtime�	framework�total_pages�
build_time�
time_start�time_finish�	lint_time�routes_sourcemap�build_duration�
lint_duration�routes_duration�routes�routes_count�routes_timec��UR5n[RS5RU5R	5nUR
(a[
S5 g[
SUR
35 g![an[
SU35 SnAgSnAf[a!n[
S[U535 SnAgSnAff=f)z�
Adds a log entry to the 'xbp_logs' table in Supabase.

Args:
    log (XbpLog): An instance of the XbpLog class containing the log data.
�xbp_logsz)Log entry successfully added to Supabase.zFailed to add log entry: zValidation error occurred: Nz.An error occurred while adding the log entry: )
�dictr�table�insert�execute�data�printr�	Exception�str)�log�log_data�response�ve�es     �5C:\Users\floris\Documents\GitHub\xbp\log_to_server.py�add_xbp_log_to_supabase�XbpLog.add_xbp_log_to_supabase1s���	M��x�x�z�H�
 �~�~�j�1�8�8��B�J�J�L�H��}�}��A�B��1�(�-�-��A�B���	6��/��t�4�5�5���	M��B�3�q�6�(�K�L�L��	M�s*�AA:�!A:�:
C�B�
C�$C�C�N)r;r)�__name__�
__module__�__qualname__�__firstlineno__�int�__annotations__rrr:r�bool�staticmethodrA�__static_attributes__rC�r@rrs/��

�I�
�d�3��8�n�
%�%��#����S�M��
�d�3��8�n�
%�%��K�
�L����N��O��K�

�I��O��3�-�����K���
�L��N��#�����
����
���#�����}���t�C��H�~�.�.��S�M�!��C�=� ��c�]�"��T�#�s�(�^�$�$��3�-���#����M��MrMr)�pydanticrr�typingrrr�osrrr	�environ�getrr:rIr
�
ValueErrorrrCrMr@�<module>rTsy��/�/�&�&�	�*��J�J�N�N�#5�6��c�6��J�J�N�N�#:�;��c�;��<�
�O�
P�P� ��|�<��&�<�;M�Y�;MrM