Skip to main content
Glama

ClickUp Operator

by noah-vh
metadata.cpython-312.pyc27.2 kB
� lMgʇ���ddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl m Z m Z m Z mZmZmZddlmZmZmZmZddlmZddlmZe j2d�Ze j6d k\reZn Gd �d e�ZGd �d e�ZGd�ded��Z hd�Z!hd�Z"dhZ#dFd�Z$dGd�Z%dHd�Z&idd�dd�dd�dd�dd�d d!�d"d"�d#d$�d%d%�d&d&�d'd(�d)d*�d+d+�d,d-�d.d/�d0d0�d1d1�d2d3dd4d5d6d7d8d9d:d;d<d=d>� �Z'e'jQ�D��cic]\}}||�� c}}Z)dId?�Z*e+�Z,gd@�Z-ed@Z.e/gdA��Z0GdB�dCe e�Z1GdD�dE�Z2ycc}}w)J�)� annotationsN)�Any�Callable�Generic�Literal� TypedDict�cast�)�licenses� requirements� specifiers�utils)�version)�NormalizedLicenseExpression�T)�� c�6�eZdZUdZded<ded<d d�Zd d�Zy) �ExceptionGroupz�A minimal implementation of :external:exc:`ExceptionGroup` from Python 3.11. If :external:exc:`ExceptionGroup` is already defined by Python itself, that version is used instead. �str�message�list[Exception]� exceptionsc� �||_||_y�N)rr)�selfrrs �^C:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\packaging/metadata.py�__init__zExceptionGroup.__init__)s��"�D�L�(�D�O�c�h�|jj�d|j�d|j�d�S)N�(z, �))� __class__�__name__rr)rs r�__repr__zExceptionGroup.__repr__-s1���n�n�-�-�.�a�� � �/?�r�$�/�/�AT�TU�V� VrN)rrrr�return�None)r&r)r$� __module__� __qualname__�__doc__�__annotations__rr%�rrrrs�� � � �#�#� )� Wrrc�2��eZdZUdZded< d�fd� Z�xZS)�InvalidMetadataz'A metadata field contains invalid data.r�fieldc�2��||_t�|� |�yr)r/�superr)rr/rr#s �rrzInvalidMetadata.__init__7s����� � ����!r)r/rrrr&r')r$r(r)r*r+r� __classcell__)r#s@rr.r.1s���1� �J�;�"�"rr.c�>�eZdZUdZded<ded<ded<ded<ded<ded <ded <ded <ded <ded <ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded<ded <ded!<ded"<y#)$� RawMetadataa�A dictionary of raw core metadata. Each field in core metadata maps to a key of this dictionary (when data is provided). The key is lower-case and underscores are used instead of dashes compared to the equivalent core metadata field. Any core metadata field that can be specified multiple times or can hold multiple values in a single field have a key with a plural name. See :class:`Metadata` whose attributes match the keys of this dictionary. Core metadata fields that can be specified multiple times are stored as a list or dict depending on which is appropriate for the field. Any fields which hold multiple values in a single field are stored as a list. r�metadata_version�namer� list[str]� platforms�summary� description�keywords� home_page�author� author_email�license�supported_platforms� download_url� classifiers�requires�provides� obsoletes� maintainer�maintainer_email� requires_dist� provides_dist�obsoletes_dist�requires_python�requires_external�dict[str, str]� project_urls�description_content_type�provides_extra�dynamic�license_expression� license_filesN)r$r(r)r*r+r,rrr4r4@s��� � �� �I� �L��� �L������N� �K��� �L�#�"������������O����������� � � � �"�!��������rr4F)�total>r6r=r?r9rr<rFr:r>rArKrGr5rRrO> rQrDrCrEr8rBrSrIrHrJrPrLr@rNc�f�|jd�D�cgc]}|j���c}Scc}w)zCSplit a string of comma-separated keywords into a list of keywords.�,)�split�strip)�data�ks r�_parse_keywordsr[�s(��#�z�z�#�� /��!�A�G�G�I�� /�/�� /s�.c ��i}|D]s}|jdd�D�cgc]}|j���}}|jdgtddt |�z �z�|\}}||vr t d��|||<�u|Scc}w)z?Parse a list of label/URL string pairings separated by a comma.rVr �r�z duplicate labels in project urls)rWrX�extend�max�len�KeyError)rY�urls�pair�p�parts�label�urls r�_parse_project_urlsri�s��� �D���$%)�J�J�s�A�$6�7�$6�q�����$6��7� � � �b�T�S��A��E� �N�3�4�5�� ��s� �D�=��=�>� >���U� �A�D �K��!8s�A=c��t|t�r$|j�}t|t�sJ�|S|jd��}t|t�sJ� |j dd�S#t $r}t d�|�d}~wwxYw)zGet the body of the message.T��decode�utf8�strictzpayload in an invalid encodingN)� isinstancer� get_payload�bytesrl�UnicodeDecodeError� ValueError)�msg�source�payload�bpayload�excs r� _get_payloadry�s����&�#���/�/�#���'�3�'�'�'����?�?�$�?�/���(�E�*�*�*� H��?�?�6�8�4� 4��!� H��=�>�C� G�� H�s�A,�, B�5 B�Br=z author-emailr>� classifierrBr:zdescription-content-typerOz download-urlrArQz home-pager<r;r?zlicense-expressionrRz license-filerSrFzmaintainer-emailrG�metadata-versionr5r6rErJr8rDrIrPrCrHrLrKr9r@r) zobsoletes-dist�platformz project-urlrDz provides-distzprovides-extrarCz requires-distzrequires-externalzrequires-pythonr9zsupported-platformrc ���i}i}t|t�rHtjj tj j ��j|�}nGtjjtj j ��j|�}t|j��D�]�}|j�}|j|�xsg}g}d}|D]�}t|tjjtf�sJ�t|tjj�r�g} tjj!|�D]-\} } | j#dd�d} | j'| | f��/|j'ttjj)| �����|j'|���|s|||<��'t*j-|�} | �|||<��E| t.vrt1|�dk(r |d|| <��e| t2vr||| <��t| d k(r!t1|�dk(rt5|d�|| <���| d k(r t7|�|| <���|||<��� t;||�} | rfd |vrCt=t|j?d ��}|jAd g�jC|| g�nd |vr|d j'| �n| |d < t=tJ|�|fS#t$$rd} d}Y���wxYw#t8$r |||<Y��dwxYw#tD$rB|jAd g�j'|jGt|tH�� ��Y��wxYw) a Parse a distribution's metadata stored as email headers (e.g. from ``METADATA``). This function returns a two-item tuple of dicts. The first dict is of recognized fields from the core metadata specification. Fields that can be parsed and translated into Python's built-in types are converted appropriately. All other fields are left as-is. Fields that are allowed to appear multiple times are stored as lists. The second dict contains all other fields from the metadata. This includes any unrecognized fields. It also includes any fields which are expected to be parsed into a built-in type but were not formatted appropriately. Finally, any fields that are expected to appear only once but are repeated are included in this dict. )�policyTrmrn�latin1Fr rr;rNr:rk)&ror�email�parser�Parserr~�compat32�parsestr� BytesParser� parsebytes� frozenset�keys�lower�get_all�header�Header� decode_headerrlrr�append� make_header�_EMAIL_TO_RAW_MAPPING�get�_STRING_FIELDSra� _LIST_FIELDSr[rirbryr �pop� setdefaultr_rsrprqr4)rY�raw�unparsed�parsedr6�headers�value�valid_encoding�h�chunks�bin�encoding�raw_namerv�description_headers r� parse_emailr�s?�� 8:�C�%'�H��$������$�$�E�L�L�,A�,A�$�B�K�K�D�Q�����)�)����1F�1F�)�G�R�R�SW�X�� �&�+�+�-�(���z�z�|�� �.�.��&�,�"�������A��a�%�,�,�"5�"5�s�!;�<� <�<��!�U�\�\�0�0�1�:<��%*�\�\�%?�%?��%B�M�C��*�� � �6�8�4� $*���M�M�3��/�2�&C�� � �S����!9�!9�&�!A�B�C�� � �Q��G�P�"�H�T�N� �(�,�,�T�2�� � �#�H�T�N� � �~� %�#�e�*��/�!�!�H�C��M��� %�!�C��M� �� #��E� �a��+�E�!�H�5�C��M��� '� '� 3�E� :��H� � #�H�T�N�i)�t-��v�t�,�� ���#�%)�#�s�w�w�}�/E�%F�"��#�#�M�2�6�=�=�'��1���(�*���'�.�.�w�7�%,��M�"� � �S� !�8� +�+��Q.�/�#+��).��/��J� '�!&���� '�� � ����M�2�.�5�5� � � �j��u�&=� � >� � �s7�'K<�L�6 L%�< L � L �L"�!L"�%AM0�/M0)�1.0�1.1�1.2�2.1�2.2z2.3�2.4)r5r6rc���eZdZUdZded<ded<ded<dd� dd �Zdd �Zdd �Z d dd �Zdd�Z dd�Z d d�Z dd�Z dd�Z d!d�Z d"d�Zd#d�Z d$d�Z d%d�Zd!d�Zy )&� _ValidatoravValidate a metadata field. All _process_*() methods correspond to a core metadata field. The method is called with the field's raw value. If the raw value is valid it is returned in its "enriched" form (e.g. ``version.Version`` for the ``Version`` field). If the raw value is invalid, :exc:`InvalidMetadata` is raised (with a cause as appropriate). rr6r��_MetadataVersion�addedr��r�c��||_yrr�)rr�s rrz_Validator.__init__�s �� �� rc�.�||_t||_yr)r6�_RAW_TO_EMAIL_MAPPINGr�)r�_ownerr6s r� __set_name__z_Validator.__set_name__�s���� �-�d�3�� rc�z�|j}|jj|j�}|jtvs|�" t |d|j���}||�}|||j< |j|j=tt|�S#t $rY�BwxYw#t$rY�*wxYw)N� _process_) �__dict__�_rawr�r6�_REQUIRED_ATTRS�getattr�AttributeErrorrbr r)r�instancer��cacher�� converters r�__get__z_Validator.__get__�s����!�!��� � �!�!�$�)�)�,�� �9�9�� '�5�+<� )�07�� �$�)�)��>U�0V� �"�%�(�� ��d�i�i�� �� � �d�i�i�(��A�u�~���"� �� ��� � � �s$�B�8B.� B+�*B+�. B:�9B:Nc ��t|j|jdt|j�i��}||_|S)Nr/)r.r�� format_map�repr� __cause__)rrt�causerxs r�_invalid_metadataz_Validator._invalid_metadata s<��� �M�M�3�>�>�7�D����4G�*H�I� ���� �� rc�Z�|tvr|j|�d���tt|�S)Nz is not a valid metadata version)�_VALID_METADATA_VERSIONSr�r r��rr�s r�_process_metadata_versionz$_Validator._process_metadata_versions2�� �0� 0��(�(�E�9�4T�)U�V� V��$�e�,�,rc���|s|jd�� tj|d��|S#tj$r}|j|�d�|��|�d}~wwxYw)N�{field} is a required fieldT��validate� is invalid for {field}�r�)r�r�canonicalize_name� InvalidName�rr�rxs r� _process_namez_Validator._process_namess����(�(�)F�G� G� � � #� #�E�D� 9� �L�� � � � ��(�(��)�4�5�S�)��� �� �s�.�A�A�Ac��|s|jd�� tj|�S#tj$r}|j|�d�|��|�d}~wwxYw)Nr�r�r�)r��version_module�parse�InvalidVersionr�s r�_process_versionz_Validator._process_version(sk����(�(�)F�G� G� �!�'�'��.� .���,�,� ��(�(��)�4�5�S�)��� �� �s�*�A�A�Ac�0�d|vr|jd��|S)z%Check the field contains no newlines.� z{field} must be a single line)r�r�s r�_process_summaryz_Validator._process_summary2s �� �5�=��(�(�)H�I� I�� rc��hd�}tjj�}||d<|j�j �|dj }}||vs||j �vr |j dt|��d|����|jdd�}|dk7r|j dt|�����dd h}|jd d�}|d k(r$||vr |j d t|��d|����|S) N>� text/plain� text/x-rst� text/markdownz content-typez{field} must be one of �, not �charsetzUTF-8z0{field} can only specify the UTF-8 charset, not �GFM� CommonMark�variantr�z(valid Markdown variants for {field} are ) r�r� EmailMessage�get_content_typer��paramsr��listr�) rr�� content_typesr� content_type� parametersr��markdown_variantsr�s r�!_process_description_content_typez,_Validator._process_description_content_type8s/��E� ��-�-�,�,�.��"'���� � $� $� &� ,� ,� .� �N� #� *� *�!� � �}� ,� �E�K�K�M�0Q��(�(�+�D��,?�+@��u�i�P�� ��.�.��G�4�� �g� ��(�(�D�T�'�]�O�T�� �#�L�1���.�.��E�2�� �?� *�w�>O�/O��(�(�<�T�BS�=T�<U�V��k�#�� �� rc���ttj|�D]6}|dvr|j|�d���|tvs�$|j|�d���t ttj|��S)N>r6rr{z" is not allowed as a dynamic fieldz is not a valid dynamic field)�maprr�r�r�r�)rr�� dynamic_fields r�_process_dynamicz_Validator._process_dynamicXs��� ����E�2�M�� G�G��,�,�$�'�'I�J����&;�;��,�,�$�'�'D�E��� 3��C�� � �5�)�*�*rc���g} |D](}|jtj|d����* |S#tj$r}|j �d�|��|�d}~wwxYw)NTr�r�r�)r�rr�r�r�)rr��normalized_namesr6rxs r�_process_provides_extraz"_Validator._process_provides_extrads|���� $��� �'�'��(?�(?��t�(T�U��$� #�� � � � ��(�(��(�3�4�C�)��� �� �s�-4�A#�A�A#c�� tj|�S#tj$r}|j|�d�|��|�d}~wwxYw�Nr�r�)r � SpecifierSet�InvalidSpecifierr�r�s r�_process_requires_pythonz#_Validator._process_requires_pythonssV�� ��*�*�5�1� 1���*�*� ��(�(��)�4�5�S�)��� �� �s��A�A�Ac���g} |D]&}|jtj|���( |S#tj$r}|j �d�|��|�d}~wwxYwr�)r�r � Requirement�InvalidRequirementr�)rr��reqs�reqrxs r�_process_requires_distz!_Validator._process_requires_dist{sv���� ���� � �L�4�4�S�9�:���K�� �.�.� ��(�(��'�2�3�3�)��� �� �s�+2�A!�A�A!c�~� tj|�S#t$r}|j|�d�|��|�d}~wwxYwr�)r �canonicalize_license_expressionrsr�r�s r�_process_license_expressionz&_Validator._process_license_expression�sP�� ��;�;�E�B� B��� ��(�(��)�4�5�S�)��� �� �s�� <�7�<c���g}|D]�}d|vr|j|�d���d|vr|j|�d���tj|�j�s#tj|�j�r|j|�d���tj|�j �|k7r|j|�d���|j |���|S)Nz..zD is invalid for {field}, parent directory indicators are not allowed�*z/ is invalid for {field}, paths must be resolvedz/ is invalid for {field}, paths must be relativez5 is invalid for {field}, paths must use '/' delimiter)r��pathlib� PurePosixPath� is_absolute�PureWindowsPath�as_posixr�)rr��paths�paths r�_process_license_filesz!_Validator._process_license_files�s�����D��t�|��,�,��h�B�B����d�{��,�,��h�O�P����%�%�d�+�7�7�9��*�*�4�0�<�<�>��,�,��h�O�P����&�&�t�,�5�5�7�4�?��,�,��h�3�3��� �L�L�� �-�.� r)r�r�r&r')r��Metadatar6rr&r')r�r r�ztype[Metadata]r&rr)rtrr�zException | Noner&r.)r�rr&r�)r�rr&r)r�rr&zversion_module.Version)r�r7r&r7)r�r7r&zlist[utils.NormalizedName])r�rr&zspecifiers.SpecifierSet)r�r7r&zlist[requirements.Requirement])r�rr&z"NormalizedLicenseExpression | None)r$r(r)r*r+rr�r�r�r�r�r�r�r�r�r�r�r�rr r,rrr�r��s���� �I��M� �� #(�� �� � �4��837����/�� ��-� ��� �@ +� $�� $� $� $�� �� � (� ���� +��rr�c��eZdZUdZded<edd�d7d��Zedd�d8d��Ze�Z ded < e�Z d ed < e�Z d ed < ed��Z ded< e�Z ded< ed��Zded< e�Zded< e�Zded< ed��Zded< e�Zded< e�Zded< ed��Zded< e�Zded< e�Zded< ed��Zded < ed��Zded!< e�Zded"< ed#��Zd$ed%< ed#��Zded&< ed��Zded'< ed��Zd(ed)< ed��Zd*ed+< ed��Zded,< ed��Z d-ed.< ed��Z!d/ed0< ed��Z"ded1< ed��Z#ded2< ed��Z$ded3< ed��Z%ded4< ed��Z&ded5<y6)9r aJRepresentation of distribution metadata. Compared to :class:`RawMetadata`, this class provides objects representing metadata fields instead of only using built-in types. Any invalid metadata will cause :exc:`InvalidMetadata` to be raised (with a :py:attr:`~BaseException.__cause__` attribute as appropriate). r4r�Tr�c ���|�}|j�|_|r�g} |j}tj |�}t|j�tz}|dhz}|D]t} |rc |j| j} tj | �} | kDr/t| } t | | �d| �d|���} |j | ��it|| ��v|r td|��|S#t $r}|j |�d}Yd}~��d}~wwxYw#t$r#t | d| ���} |j | �Y��wxYw#t $r} |j | �Yd} ~ ��d} ~ wwxYw)z�Create an instance from :class:`RawMetadata`. If *validate* is true, all metadata will be validated. All exceptions related to validation will be gathered and raised as an :class:`ExceptionGroup`. Nr5�unrecognized field: z introduced in metadata version r�zinvalid metadata)�copyr�r5r��indexr.r�r�r�r�r�rbr�r�r)�clsrYr��insrr5� metadata_age�metadata_version_exc�fields_to_check�key�field_metadata_versionrx� field_ager/s r�from_rawzMetadata.from_raw�s����e���9�9�;��� �*,�J� (�#&�#7�#7� �7�=�=�>N�O� �(����1�O�C�O� � 2�3� 3�O�&��+�'�%�58�\�\�#�5F�5L�5L�2� %=�$B�$B�2�%� �%�|�3�$9�#�$>�E�"1� %�#(�'�)I�#9�":�&�AQ�@R�!T�#�C� '�-�-�c�2�$��C��%�/'�6�$�%7��D�D�� ��Q#� (��!�!�"6�7�#'� �� (��" (�%�"1�#�9M�c�W�7U�"V�C�&�-�-�c�2�$�%��"'�+��%�%�c�*�*��+�sZ�!C.�+E�.D�AE� E�. D�7D�D�)E�E�E�E� E*�E%�%E*c�$�t|�\}}|rEg}|D]0}|tvr|�d�}nd|��}|jt||���2|r t d|�� |j ||��S#t$r}t d|j �d�d}~wwxYw)z�Parse metadata from email headers. If *validate* is true, the metadata will be validated. All exceptions related to validation will be gathered and raised as an :class:`ExceptionGroup`. z has invalid datarr�r�zinvalid or unparsed metadataN)r�r�r�r.rrr) rrYr�r�r�r� unparsed_keyr� exc_groups r� from_emailzMetadata.from_email�s���$�D�)� ��X� �*,�J� (� ��#8�8�!-� 0�0A�B�G� 4�\�4D�E�G��!�!�/�,��"H�I� !)��$�Z��<�<� ��<�<��h�<�7� 7��� � �.� �0D�0D��� �� �s�A*�* B�3B � Bz_Validator[_MetadataVersion]r5z_Validator[str]r6z"_Validator[version_module.Version]rr�r�z_Validator[list[str] | None]rQr8r�r@z_Validator[str | None]r9r:r�rOr;r<rAr=r>r�rFrGr?r�z._Validator[NormalizedLicenseExpression | None]rRrSrBz1_Validator[list[requirements.Requirement] | None]rHz*_Validator[specifiers.SpecifierSet | None]rKrLz!_Validator[dict[str, str] | None]rNz-_Validator[list[utils.NormalizedName] | None]rPrIrJrCrDrEN)rYr4r��boolr&r )rY� bytes | strr�rr&r )'r$r(r)r*r+� classmethodrrr�r5r6rrQr8r@r9r:rOr;r<rAr=r>rFrGr?rRrSrBrHrKrLrNrPrIrJrCrDrEr,rrr r �s���� ���=A�6��6�p�?C����66@�\��2�A�<�'�L�D�/�(��3=�,�G� /�>�:�,6��-�G� )��D�.8�l�I�+�:�0�8B��8O��5�O�:�&0�l�G� #�2�R�*4�,�K�'�6�3�7A��7N��4�N�L�-7�\�H�*�9�0�(2� �I�%�4�1�+5�E�+B�L�(�B�4�%/�\�F� "�1�.�+5�<�L�(�7�4�)3�%�)@�J�&�@�2�/9��/F��,�F�8�&0�l�G� #�2�/�IS��J��F��;�2<�5�2I�M�/�I�4�0:��0G�K�-�G�2�GQ��H�M�D��6�BL��C�O�?��8�7A�u�6M��3�M�9�6@�u�6M�L�3�M�3�EO��E�N�A��7�2<�5�2I�M�/�I�5�3=�E�3J�N�0�J�6�-7�e�-D�H�*�D�#�-7�e�-D�H�*�D�#�.8�u�.E�I�+�E�$rr )rYrr&r7)rYr7r&rM)rtzemail.message.Messagerurr&r)rYrr&z(tuple[RawMetadata, dict[str, list[str]]])3� __future__r�email.feedparserr�� email.header� email.message� email.parser� email.policyr�sys�typingrrrrrr r]r r r rrr�r�TypeVarr� version_infor� Exceptionrsr.r4r�r�� _DICT_FIELDSr[riryr��itemsr�r��object� _NOT_FOUNDr�r�r�r�r�r )r�r�s00r�<module>r0s7��"������� � ���8�7�'�1��F�N�N�3������w��#�N�W��W�$"�j�"�E�)�5�E�P��$� �"�� � 0� %�PH�>� �h���N���-���=� � � :� � �N� ��y������ ���y���.���O���,���*���*��  �F�!�"��#�$'��!��$�&��$�,�(��/��=��@7L�6Q�6Q�6S�T�6S� ��s��e��6S�T��m,�`�X� �M���J�K���C�D��U����U�po%�o%��k Us� E 

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