
    ch                    p    S SK Jr  S SKrS SKJrJr  \(       a  S SKJr  Sr      S	S jr	S
S jr
SS jrg)    )annotationsN)TYPE_CHECKINGAny)
Collectionz~/.snowsql/configc                P    0 nU  H  nX1;   d  M
  UR                  U5      X#'   M     U$ )av  Extract the specified keys from source_dict and return them in a new dict.

Parameters
----------
keys : Collection[str]
    The keys to extract from source_dict.
source_dict : Dict[str, Any]
    The dict to extract keys from. Note that this function mutates source_dict.

Returns
-------
Dict[str, Any]
    A new dict containing the keys/values extracted from source_dict.
)pop)keyssource_dictdks       mC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/connections/util.pyextract_from_dictr       s0    " 	A??1%AD  H    c                   [         R                  R                  [        5      n[         R                  R	                  U5      (       d  0 $ SSKnUR                  SS9nUR                  U5        SU  3U;   a	  USU  3   nOSU;   a  US   nO0 $ UR                  5        VVs0 s H'  u  pVUR                  SS5      UR                  S	5      _M)     nnnS
U;   a  US
   US'   US
	 U$ s  snnf )z.Loads the dictionary from snowsql config file.r   N#)inline_comment_prefixeszconnections.connectionsname "dbdatabase)ospath
expanduserSNOWSQL_CONNECTION_FILEexistsconfigparserConfigParserreaditemsreplacestrip)connection_namesnowsql_config_filer   configraw_conn_paramsr   vconn_paramss           r   load_from_snowsql_config_filer*   :   s    '',,-DE77>>-..	 &&s&CF
KK#$	o&'61 </@!AB	&	  /	 9H8M8M8O8O		&"qwws|+8O   {"-d"3Js   !.C%c                 >     SSK Jn   U " 5       $ ! [         a     gf = f)z*Return whether this app is running in SiS.r   is_in_stored_procedureF)"snowflake.snowpark._internal.utilsr-   ModuleNotFoundErrorr,   s    r   running_in_sisr0   X   s)    	
 &'' s    
)r	   zCollection[str]r
   dict[str, Any]returnr1   )r$   strr2   r1   )r2   bool)
__future__r   r   typingr   r   collections.abcr   r   r   r*   r0    r   r   <module>r9      sC   * # 	 %*- 
(64<	r   