§
    Ò¬¸j<  ã                  óŒ   — d dl mZ d dlmZ d dlZddlmZmZ ddlm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZ  G d„ d¦  «        ZdS )	é    )Úannotations)ÚSequenceNé   )ÚSyncAPIClientÚ_resolve_api_key)ÚAccountÚBillingÚDatasetsÚDeploymentsÚExploreÚExportsÚImagesÚ	LifecycleÚModelsÚProjectsÚStorageIntegrationsÚTrainingÚUploadc                  óB   — e Zd ZdZdddddddœd d„Zd!d„Zd"d„Zd#d„ZdS )$ÚPlatformz(Client for the Ultralytics Platform API.Nz https://platform.ultralytics.comg      N@é   )ÚGETÚHEADÚOPTIONS©Úapi_keyÚbase_urlÚtimeoutÚmax_retriesÚretry_methodsÚhttp_clientr   ú
str | Noner   Ústrr   úfloat | httpx.Timeoutr   Úintr    úSequence[str]r!   úhttpx.Client | NoneÚreturnÚNonec               óâ  — t          |¦  «        }t          ||||||¬¦  «        | _        t          | j        ¦  «        | _        t          | j        ¦  «        | _        t          | j        ¦  «        | _        t          | j        ¦  «        | _
        t          | j        ¦  «        | _        t          | j        ¦  «        | _        t          | j        ¦  «        | _        t#          | j        ¦  «        | _        t'          | j        ¦  «        | _        t+          | j        ¦  «        | _        t/          | j        ¦  «        | _        t3          | j        ¦  «        | _        t7          | j        ¦  «        | _        dS )aÔ  Initialize the client.

        Args:
            api_key (str, optional): API key. Defaults to ULTRALYTICS_API_KEY then the configured credential provider. Pass an empty string to disable authentication.
            base_url (str): API base URL.
            timeout (float | httpx.Timeout): Request timeout.
            max_retries (int): Retries for connection errors and retryable responses.
            retry_methods (Sequence[str]): HTTP methods safe to repeat after network errors or HTTP 408, 409, 429, and 5xx responses. Defaults to GET, HEAD, OPTIONS. Opt in only when the operation is safe to repeat and its request body can be resent.
            http_client (httpx.Client, optional): Custom HTTP client.
        r   N)r   r   Ú_clientr   Úaccountr	   Úbillingr
   Údatasetsr   Údeploymentsr   Úexplorer   Úimagesr   Ústorage_integrationsr   Úmodelsr   Úexportsr   Úprojectsr   Útrainingr   Ú	lifecycler   Úupload)Úselfr   r   r   r   r    r!   Úresolved_api_keys           úk/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/ultralytics_platform/client.pyÚ__init__zPlatform.__init__   s  € õ( ,¨GÑ4Ô4ÐÝ$Ø$ØØØ#Ø'Ø#ð
ñ 
ô 
ˆŒõ ˜tœ|Ñ,Ô,ˆŒÝ˜tœ|Ñ,Ô,ˆŒÝ  ¤Ñ.Ô.ˆŒÝ& t¤|Ñ4Ô4ˆÔÝ˜tœ|Ñ,Ô,ˆŒÝ˜Tœ\Ñ*Ô*ˆŒÝ$7¸¼Ñ$EÔ$EˆÔ!Ý˜Tœ\Ñ*Ô*ˆŒÝ˜tœ|Ñ,Ô,ˆŒÝ  ¤Ñ.Ô.ˆŒÝ  ¤Ñ.Ô.ˆŒÝ" 4¤<Ñ0Ô0ˆŒÝ˜Tœ\Ñ*Ô*ˆŒˆˆó    c                ó8   — | j                              ¦   «          dS )z!Close the underlying HTTP client.N)r+   Úclose©r9   s    r;   r?   zPlatform.closeI   s   € àŒ×ÒÑÔÐÐÐr=   c                ó   — | S ©N© r@   s    r;   Ú	__enter__zPlatform.__enter__M   s   € Øˆr=   Úexc_typeútype[BaseException] | NoneÚexcúBaseException | NoneÚ	tracebackÚobjectc                ó.   — |                       ¦   «          d S rB   )r?   )r9   rE   rG   rI   s       r;   Ú__exit__zPlatform.__exit__P   s   € ð 	�
Š
‰Œˆˆˆr=   )r   r"   r   r#   r   r$   r   r%   r    r&   r!   r'   r(   r)   )r(   r)   )r(   r   )rE   rF   rG   rH   rI   rJ   r(   r)   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r<   r?   rD   rL   rC   r=   r;   r   r      s‰   € € € € € Ø2Ð2ð
 #Ø:Ø)-ØØ'AØ+/ð)+ð )+ð )+ð )+ð )+ð )+ðVð ð ð ðð ð ð ðð ð ð ð ð r=   r   )Ú
__future__r   Úcollections.abcr   Úhttpxr+   r   r   Ú	resourcesr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   rC   r=   r;   ú<module>rU      s  ðð #Ð "Ð "Ð "Ð "Ð "à $Ð $Ð $Ð $Ð $Ð $à €€€à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4Ð 4ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð";ð ;ð ;ð ;ð ;ñ ;ô ;ð ;ð ;ð ;r=   