
    Je                     ~   d Z ddlmZ dZ G d de      Z edddd	i      Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                   ej"                  iZy
)z#Kite client requests and constants.    )CompletionRequestTypesz	127.0.0.1c                   Z    e Zd ZdZdZdj                  ee      ZdZdZ	dZ
dZdZd	Zd
Zd Zy)_KiteEndpoints HTTP endpoints supported by Kitei   zhttp://{0}:{1})GETz/clientapi/languages)POSTz/clientapi/editor/event)r   zF/api/buffer/spyder/{filename}/{hash}/hover?cursor_runes={cursor_runes})r   z/clientapi/editor/complete)r   z/clientapi/editor/signatures)r   z0/clientapi/plugins/onboarding_file?editor=spyder)r   z/clientapi/statusc                     t         j                  | |      }|j                  d      r3|\  }}dj                  | j                  |      }|j                         |fS |S )NENDPOINTz{0}{1})object__getattribute__endswithformatKITE_URLlower)selfattrvalueverbpathurls         S/usr/lib/python3/dist-packages/spyder/plugins/completion/providers/kite/__init__.pyr   z_KiteEndpoints.__getattribute__    sU    ''d3==$JD$""4==$7C::<$$    N)__name__
__module____qualname____doc__	KITE_PORTr   	LOCALHOSTr   LANGUAGES_ENDPOINTEVENT_ENDPOINTHOVER_ENDPOINTCOMPLETION_ENDPOINTSIGNATURE_ENDPOINTONBOARDING_ENDPOINTSTATUS_ENDPOINTr    r   r   r   r      sR    *I&&y)<H88N.N AAO%Or   r   KiteEndpointsr&   r   r   N)r   spyder.plugins.completion.apir   r   typer   KITE_ENDPOINTSDOCUMENT_DID_OPENr    DOCUMENT_DID_CLOSEDOCUMENT_DID_CHANGEDOCUMENT_CURSOR_EVENTDOCUMENT_HOVERr!   DOCUMENT_COMPLETIONr"   DOCUMENT_SIGNATUREr#   KITE_REQUEST_MAPPINGr&   r   r   <module>r3      s    * @ 	T 4  R)%GHJ
 ,,n.K.K--~/L/L..0M0M00.2O2O))>+H+H..0R0R--~/P/P r   