Skip to main content
Glama

ClickUp Operator

by noah-vh
config.cpython-312.pyc5.99 kB
� lMg���<�UddlmZddlZddlZddlZddlZddlmZiZde d<ejjejjd�d�Z ejjde �Zejfd �Zd �Zd d �Zeee�ee�y) �)� annotationsN)�Anyzdict[str, dict[str, Any]]�conf�~z.config/fsspec�FSSPEC_CONFIG_DIRc �^�g}|D�]}|jd�r�t|�dkDr�|ddk7r�|jd�dkDr|j|��Q t j ||�}t |t�rE|jdd�\}}|j|j�i�j|���tjd|�dt|������|jd �s��tjd|�d ����|D]L}|jdd �\}}}|||j|j�i�|j�<�Ny#tjj $r&}tjd|�d|���Yd}~���d}~wwxYw) a�Set config values from environment variables Looks for variables of the form ``FSSPEC_<protocol>`` and ``FSSPEC_<protocol>_<kwarg>``. For ``FSSPEC_<protocol>`` the value is parsed as a json dictionary and used to ``update`` the config of the corresponding protocol. For ``FSSPEC_<protocol>_<kwarg>`` there is no attempt to convert the string value, but the kwarg keys will be lower-cased. The ``FSSPEC_<protocol>_<kwarg>`` variables are applied after the ``FSSPEC_<protocol>`` ones. Parameters ---------- conf_dict : dict(str, dict) This dict will be mutated envdict : dict-like(str, str) Source for the values - usually the real environment �FSSPEC_��_�zIgnoring environment variable z due to not being a dict: z due to a parse failure: N�FSSPECz! due to having an unexpected name�)� startswith�len�count�append�json�loads� isinstance�dict�split� setdefault�lower�update�warnings�warn�type�decoder�JSONDecodeError) � conf_dict�envdict� kwarg_keys�key�valuer �proto�ex�kwargs �YC:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\fsspec/config.py� set_conf_envr)s���&�J��� �>�>�)� $��S��A��#�a�&�C�-��y�y��~��!��!�!�#�&�� �� � �7�3�<�0�� �e�T�*�"�y�y��a�0�H�A�u��(�(������;�B�B�5�I��M�M�8���>� ��K�=�*���^�^�H� %� �M�M�0���5V�W� �+�2���)�)�C��+���5�%�AH��� ���U�[�[�]�B�/�� � � �>���%�<�<�/�/� �� � �4�S�E�9R�SU�RV�W���� �s�E)�)F,�F'�'F,c���tjj|�syttj|��}|D�]}|j d�r}t j�}|jtjj||��|D]5}|dk(r� |j|i�jt||���7|j d�s��ttjj||��5}tj|�}ddd�D]/}|j|i�jt||���1��!y#1swY�AxYw)a�Set config values from files Scans for INI and JSON files in the given dictionary, and uses their contents to set the config. In case of repeated values, later values win. In the case of INI files, all values are strings, and these will not be converted. Parameters ---------- cdir : str Directory to search conf_dict : dict(str, dict) This dict will be mutated Nz.ini�DEFAULTz.json)�os�path�isdir�sorted�listdir�endswith� configparser� ConfigParser�read�joinrrr�openr�load)�cdirr �allfiles�fn�inir#�f�jss r(�set_conf_filesr>@s��" �7�7�=�=�� ���b�j�j��&�'�H��� �;�;�v� ��+�+�-�C� �H�H�R�W�W�\�\�$��+� ,����)�#���$�$�S�"�-�4�4�T�#�c�(�^�D�� �;�;�w� ��b�g�g�l�l�4��,�-���Y�Y�q�\��.����$�$�S�"�-�4�4�T�"�S�'�]�C���.�-�s �E$�$E- c���|�t}t|jttf�r |jn |jg}i}|D]}||vs�|j ||��|j di|��|}|S)a�Supply default values for kwargs when instantiating class Augments the passed kwargs, by finding entries in the config dict which match the classes ``.protocol`` attribute (one or more str) Parameters ---------- cls : file system implementation kwargs : dict conf_dict : dict of dict Typically this is the global configuration Returns ------- dict : the modified set of kwargs �)rr�protocol�tuple�listr)�cls�kwargsr �protos�kwr%s r(� apply_configrHcsv��"��� �'�� � �u�d�m�D�S�\�\�3�<�<�.�F� �B��� �I� � �I�I�i��&� '�� �B�I�I���� �F� �M�)N)� __future__rr2rr,r�typingrr�__annotations__r-r5� expanduser�default_conf_dir�environ�get�conf_dirr)r>rHr@rIr(�<module>rRs���"�� � ���"$���$��7�7�<�<���� 2� 2�3� 7�9I�J�� �:�:�>�>�-�/?� @��%'�J�J�/N�d D�F�>�x��� �T�rI

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/noah-vh/mcp-server-clickup'

If you have feedback or need assistance with the MCP directory API, please join our Discord server