Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
hooks.cpython-313.pyc30 linesDownload Raw Back to __pycache__
1�

2��j��B�%SSKrSSKrSSKJr SSKJr SSKJr SSKJr SSKJ	r	 SSKJ3r4 SSKJr SSKr
\(aSSKr
SSKr
"S	S55r0r\\\\4\S'\"SS
\55r\"SS\55r\"SS\55r\"SS\55rg)�N)�Sequence)�	dataclass)�fields)�is_dataclass)�Any)�ClassVar)�
TYPE_CHECKINGc�T^�\rSrSr%\\\S'S\\4Sjr	U4Sjr6SrSrU=r
$)�Hook��name�returnc�v�/n[U5H'nUR[XR55 M) U$)N)r�append�getattrr
)�self�args�fields   �UD:\code\apps\devtools\python\user_packages\Python313\site-packages\mitmproxy/hooks.pyr�	Hook.argss/�����D�\�E��K�K���j�j�1�2�"���c�>�U[La[S5e[U5(d[S5e[TU]U5$)Nz&Hook may not be instantiated directly.zSubclass is not a dataclass.)r�	TypeErrorr�super�__new__)�clsr�kwargs�	__class__s   �rr�Hook.__new__s<����$�;��D�E�E��C� � ��:�;�;��w��s�#�#rc��URRSS5cGURRSS5n[R7"SSU5R
5UlUR[;aA[URn[R"SURSUSU3[5 URS:XagU[UR'[RUl
[RUlg)	Nr
r�z
(?!^)([A-Z]+)z_\1z"Two conflicting event classes for z: z and )�__dict__�get�__name__�replace�re�sub�lowerr
�	all_hooks�warnings�warn�RuntimeWarning�object�__hash__�__eq__)rrr
�others    r�__init_subclass__�Hook.__init_subclass__"s����<�<���F�D�)�1��<�<�'�'���3�D��v�v�o�v�t�<�B�B�D�C�H��8�8�y� ��c�h�h�'�E��M�M�4�S�X�X�J�b���U�5�'�R��
��8�8�r�>��!�	�#�(�(��������]�]��8r�)r$�9__module__�__qualname__�__firstlineno__r�str�__annotations__�listrrrr1�__static_attributes__�
__classcell__)rs@rrrs,���10�3�-���d�3�i��$�#�#rrr)c�*�\rSrSr%Sr\\\S'Srg)�
ConfigureHook�9z�11Called when configuration changes. The updated argument is a12set-like object containing the keys of all changed options. This13event is called during startup with all options in the updated set.14�updatedr3N)	r$r4r5r6�__doc__�setr7r8r:r3rrr=r=9s�����X�rr=c��\rSrSrSrSrg)�DoneHook�Dae15Called when the addon shuts down, either by being removed from16the mitmproxy instance, or when mitmproxy itself shuts down. On17shutdown, this event is called after the event loop is18terminated, guaranteeing that it will be the final event an addon19sees. Note that log handlers are shut down at this point, so20calls to log functions will produce no output.21r3N�r$r4r5r6r@r:r3rrrCrCDs��rrCc��\rSrSrSrSrg)�RunningHook�Pz�22Called when the proxy is completely up and running. At this point,23you can expect all addons to be loaded and all options to be set.24r3NrEr3rrrGrGPs��rrGc�R�\rSrSr%Sr\\RR\	S'Sr25g)�26UpdateHook�Xzd27Update is called when one or more flow objects have been modified,28usually from a different addon.29�flowsr3N)r$r4r5r6r@r�	mitmproxy�flow�Flowr8r:r3rrrJrJXs���30�I�N�N�'�'�(�(rrJ)r&r*�collections.abcr�dataclassesrrr�typingrrr	�mitmproxy.flowrM�mitmproxy.addonmanager�
mitmproxy.logrr)�dictr7�typer8r=rCrGrJr3rr�<module>rXs���	��$�!��$��� ���!��!#�!#�H$&�	�4��T�$�Z�� �%���D������t������$�����)��)��)r
codekingpro/portable-devtools · Team Ai