§
    Ò¬¸jß  ã                  óv   — U d Z ddlmZ ddlZddlmZ dZded<   dZded	<   d
Z	ded<   dd„Z
dd„Zdd„Zdd„ZdS )z&Shared utilities for query monitoring.é    )ÚannotationsN)ÚFinalÚPOLARS_QUERY_MONITORINGz
Final[str]ÚMONITORING_ENV_VARÚ!POLARS_QUERY_MONITORING_WORKSPACEÚMONITORING_WORKSPACE_ENV_VARÚ$POLARS_QUERY_MONITORING_ORGANIZATIONÚMONITORING_ORGANIZATION_ENV_VARÚreturnÚboolc                 óR   — t           j                             t          ¦  «        dk    S )NÚ1)ÚosÚenvironÚgetr   © ó    úh/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/polars/_utils/monitoring.pyÚmonitoring_enabled_globallyr      s   € ÝŒ:�>Š>Õ,Ñ-Ô-°Ò4Ð4r   ú
str | Nonec                 óN   — t           j                             t          ¦  «        pdS )zKThe Polars Cloud workspace metrics are sent to, `None` for the default one.N)r   r   r   r   r   r   r   Úmonitoring_workspacer      s   € åŒ:�>Š>Õ6Ñ7Ô7Ð?¸4Ð?r   c                 óN   — t           j                             t          ¦  «        pdS )zNThe Polars Cloud organization metrics are sent to, `None` for the default one.N)r   r   r   r
   r   r   r   Úmonitoring_organizationr      s   € åŒ:�>Š>Õ9Ñ:Ô:ÐB¸dÐBr   ÚNonec                 óR   — ddl m}   | ddd¬¦  «                             ¦   «          dS )zEEnsure `polars_cloud` is installed and this session is authenticated.r   ©Úimport_optionalÚpolars_cloudzquery monitoring requires thezFPlease install using the command `pip install 'polars-cloud>=0.11.0'`.)Ú
err_prefixÚinstall_messageN)Úpolars._dependenciesr   Úauthenticater   s    r   Úactivate_monitoringr$      sB   € à4Ð4Ð4Ð4Ð4Ð4à€OØØ2àTð	ñ ô ÷ ‚l�n„n€n€n€nr   )r   r   )r   r   )r   r   )Ú__doc__Ú
__future__r   r   Útypingr   r   Ú__annotations__r   r
   r   r   r   r$   r   r   r   ú<module>r)      sÓ   ðØ ,Ð ,Ð ,à "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø Ð Ð Ð Ð Ð à!:Ð Ð :Ð :Ð :Ñ :Ø+NÐ Ð NÐ NÐ NÑ NØ.TÐ Ð TÐ TÐ TÑ Tð5ð 5ð 5ð 5ð@ð @ð @ð @ð
Cð Cð Cð Cð

ð 
ð 
ð 
ð 
ð 
r   