+
    ùäûjŽ:  ã                   ó’  € ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIHtH	t	H
t
  ! R R]]4      t]P                  ]P                  ]P                  ]P                   3t]P$                  ]P&                  ]P(                  ]P*                  ]P,                  ]P.                  ]P0                  ]P2                  3t ! R R	]]4      t ! R
 R]]4      t] ! R R4      4       t] ! R R4      4       t] ! R R4      4       t] ! R R4      4       t ] ! R R4      4       t!] ! R R4      4       t"] ! R R4      4       t#] ! R R4      4       t$R# )é    )Ú	dataclass)Údatetime)ÚEnum)ÚLiteral)ÚHfMountÚHfUriÚparse_datetimec                   óJ   € ] tR t^tRtRtRtRtRtRt	Rt
RtR	tR
tRtRtRtRtR# )Ú
SpaceStagea  
Enumeration of possible stage of a Space on the Hub.

Value can be compared to a string:
```py
assert SpaceStage.BUILDING == "BUILDING"
```

Taken from https://github.com/huggingface/moon-landing/blob/main/server/repo_types/SpaceInfo.ts#L61 (private url).
ÚNO_APP_FILEÚCONFIG_ERRORÚBUILDINGÚBUILD_ERRORÚRUNNINGÚRUNNING_BUILDINGÚRUNTIME_ERRORÚDELETINGÚSTOPPEDÚPAUSEDÚAPP_STARTINGÚRUNNING_APP_STARTING© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r   r   r   r   r   r   r   r   Ú__static_attributes__r   ó    ÚVC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\huggingface_hub\_space_api.pyr   r      sG   † ñ	ð  €KØ!€LØ€HØ€KØ€GØ)ÐØ#€MØ€HØ€GØ€FØ!€LØ1Ôr   r   c                   ón   € ] tR t^DtRtRtRtRtRtRt	Rt
RtR	tR
tRtRtRtRtRtRtRtRtRtRtRtRtRtR# )ÚSpaceHardwarea!  
Enumeration of hardwares available to run your Space on the Hub.

Value can be compared to a string:
```py
assert SpaceHardware.CPU_BASIC == "cpu-basic"
```

Taken from https://github.com/huggingface-internal/moon-landing/blob/main/server/repo_types/SpaceHardwareFlavor.ts (private url).
z	cpu-basiczcpu-upgradez	zero-a10gzt4-smallz	t4-mediumÚl4x1Úl4x4Úl40sx1Úl40sx4Úl40sx8z
a10g-smallz
a10g-largeza10g-largex2za10g-largex4z
a100-largeÚa100x4Úa100x8zrtx-pro-6000zrtx-pro-6000x2zrtx-pro-6000x4zrtx-pro-6000x8r   N)r   r   r   r   r   Ú	CPU_BASICÚCPU_UPGRADEÚ	ZERO_A10GÚT4_SMALLÚ	T4_MEDIUMÚL4X1ÚL4X4ÚL40SX1ÚL40SX4ÚL40SX8Ú
A10G_SMALLÚ
A10G_LARGEÚA10G_LARGEX2ÚA10G_LARGEX4Ú
A100_LARGEÚA100X4ÚA100X8ÚRTX_PRO_6000ÚRTX_PRO_6000X2ÚRTX_PRO_6000X4ÚRTX_PRO_6000X8r   r   r   r    r"   r"   D   sx   † ñ	ð €IØ€Kð €Ið €HØ€IØ€DØ€DØ€FØ€FØ€FØ€JØ€JØ!€LØ!€LØ€JØ€FØ€Fð "€LØ%€NØ%€NØ%„Nr   r"   c                   ó&   € ] tR t^ntRtRtRtRtRtR# )ÚSpaceStoragea  
Enumeration of persistent storage available for your Space on the Hub.

Value can be compared to a string:
```py
assert SpaceStorage.SMALL == "small"
```

Taken from https://github.com/huggingface/moon-landing/blob/main/server/repo_types/SpaceHardwareFlavor.ts#L24 (private url).
ÚsmallÚmediumÚlarger   N)	r   r   r   r   r   ÚSMALLÚMEDIUMÚLARGEr   r   r   r    r@   r@   n   s   † ñ	ð €EØ€FØ„Er   r@   c                   ór   a € ] tR t^t o RtRtRtRtV 3R lR ltV 3R lR lt	V 3R lR lt
V 3R	 ltR
tV tR# )ÚVolumea¦  
Describes a volume to mount in a Space or Job container.

Args:
    type (`str`):
        Type of volume: `"bucket"`, `"model"`, `"dataset"`, or `"space"`.
    source (`str`):
        Source identifier, e.g. `"username/my-bucket"` or `"username/my-model"`.
    mount_path (`str`):
        Mount path inside the container, e.g. `"/data"`. Must start with `/`.
    revision (`str` or `None`):
        Git revision (only for repos, defaults to `"main"`).
    read_only (`bool` or `None`):
        Read-only mount. Forced `True` for repos, defaults to `False` for buckets.
    path (`str` or `None`):
        Subfolder prefix inside the bucket/repo to mount, e.g. `"path/to/dir"`.
Nc                ó   <€ V ^8„  d   QhRR/# )é   ÚreturnNr   )ÚformatÚ__classdict__s   "€r    Ú__annotate__ÚVolume.__annotate__š   s   ø€ ÷ 'ñ ' Dñ 'r   c                óL  € VP                  R R4      V n        VR,          V n        VP                  R4      pVe   TMVR,          V n        VP                  R4      V n        VP                  R4      pVe   TMVP                  R4      V n        VP                  R	4      V n        R# )
ÚtypeÚmodelÚsourceÚ	mountPathNÚ
mount_pathÚrevisionÚreadOnlyÚ	read_onlyÚpath)ÚgetrQ   rS   rU   rV   rX   rY   )ÚselfÚkwargsrU   rX   s   &,  r    Ú__init__ÚVolume.__init__š   s†   € Ø—J‘J˜v wÓ/ˆŒ	Ø˜XÕ&ˆŒØ—Z‘Z Ó,ˆ
Ø(2Ò(>™*ÀFÈ<ÕDXˆŒØŸ
™
 :Ó.ˆŒØ—J‘J˜zÓ*ˆ	Ø&/Ò&;™ÀÇÁÈKÓAXˆŒØ—J‘J˜vÓ&ˆŽ	r   c                ó    <€ V ^8„  d   QhRS[ /# ©rJ   rK   ©Údict)rL   rM   s   "€r    rN   rO   ¤   s   ø€ ÷ ñ ™ñ r   c                ó   € RV P                   RV P                  RV P                  /pV P                  e   V P                  VR&   V P                  e   V P                  VR&   V P
                  e   V P
                  VR&   V# )z6Serialize to the JSON payload expected by the Hub API.rQ   rS   rT   rV   rW   rY   )rQ   rS   rU   rV   rX   rY   ©r[   Údatas   & r    Úto_dictÚVolume.to_dict¤   st   € ð �D—I‘IØ�d—k‘kØ˜Ÿ™ð
ˆð
 �=‰=Ò$Ø#Ÿ}™}ˆD�ÑØ�>‰>Ò%Ø#Ÿ~™~ˆD�ÑØ�9‰9Ò ØŸ9™9ˆD�‰LØˆr   c                ó    <€ V ^8„  d   QhRS[ /# r`   )Ústr)rL   rM   s   "€r    rN   rO   ³   s   ø€ ÷ ñ ™ñ r   c           	     óà   € \        \        V P                  V P                  V P                  V P
                  ;'       g    RR7      V P                  V P                  R7      P                  4       # )zGReturn the volume as an HF mount URI in the format expected by the CLI.Ú )rQ   ÚidrV   Úpath_in_repo)rS   rU   rX   )	r   r   rQ   rS   rV   rY   rU   rX   Úto_uri)r[   s   &r    rn   ÚVolume.to_uri³   sP   € äÜ˜dŸi™i¨D¯K©KÀ$Ç-Á-Ð^b×^gÑ^g×^mÐ^mÐkmÔnØ—‘Ø—n‘nô
÷ ‰&‹(ð		r   c                óš   <€ V ^8„  d   Qh/ S[ R,          ;R&   S[;R&   S[;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   # )	rJ   rQ   rS   rU   NrV   rX   rY   )ÚbucketrR   ÚdatasetÚspace)r   ri   Úbool)rL   rM   s   "€r    rN   rO      sc   ø‡ ‚ ñ( Ð7Õ
8Ñ8ñ) ñ* �Kñ+ ñ, �Oñ- ñ. �D�jÑñ/ ñ0 �d�{Ñ!ñ1 ñ2 ��*Ñò3 r   )rU   rY   rX   rV   rS   rQ   )r   r   r   r   r   rV   rX   rY   r]   rf   rn   Ú__annotate_func__r   Ú__classdictcell__©rM   s   @r    rH   rH      sA   ø‡ € ñð*  €HØ!€IØ€D÷'ð '÷ð ÷ð ÷i ƒ r   rH   c                   ó>   a € ] tR t^¼t o V 3R lR ltV 3R ltRtV tR# )ÚSpaceHotReloadingc                ó$   <€ V ^8„  d   QhRS[ RR/# ©rJ   re   rK   Nra   )rL   rM   s   "€r    rN   ÚSpaceHotReloading.__annotate__Â   s   ø€ ÷ ñ ™Tð  dñ r   c                óJ   € VR ,          V n         VR,          V n        Wn        R# )ÚstatusÚreplicaStatusesN)r~   Úreplica_statusesÚrawrd   s   &&r    r]   ÚSpaceHotReloading.__init__Â   s    € Ø˜8•nˆŒØ $Ð%6Õ 7ˆÔØŽr   c                ó€   <€ V ^8„  d   Qh/ S[ R,          ;R&   S[S[S[S[R,          3,          ,          ;R&   S[;R&   # )rJ   r~   Nr€   r�   )ÚcreatedÚcanceled)r   ÚlistÚtupleri   rb   )rL   rM   s   "€r    rN   r|   ¼   sA   ø‡ ‚ áÐ)Õ*Ñ*ñ ñ ™5¡¡c¨D¥j Õ1Õ2Ñ2ñ ñ 
�Iò	 r   )r�   r€   r~   N)r   r   r   r   r]   ru   r   rv   rw   s   @r    ry   ry   ¼   s   ø‡ € ÷ð ÷ ƒ r   ry   c                   óB   a € ] tR t^Èt o RtV 3R lR ltV 3R ltRtV tR# )ÚSpaceRuntimea+  
Contains information about the current runtime of a Space.

Args:
    stage (`str`):
        Current stage of the space. Example: RUNNING.
    hardware (`str` or `None`):
        Current hardware of the space. Example: "cpu-basic". Can be `None` if Space
        is `BUILDING` for the first time.
    requested_hardware (`str` or `None`):
        Requested hardware. Can be different from `hardware` especially if the request
        has just been made. Example: "t4-medium". Can be `None` if no hardware has
        been requested yet.
    sleep_time (`int` or `None`):
        Number of seconds the Space will be kept alive after the last request. By default (if value is `None`), the
        Space will never go to sleep if it's running on an upgraded hardware, while it will go to sleep after 48
        hours on a free 'cpu-basic' hardware. For more details, see https://huggingface.co/docs/hub/spaces-gpus#sleep-time.
    volumes (`list[Volume]` or `None`):
        List of volumes mounted in the Space. Each volume is a [`Volume`] object describing its type, source,
        mount path, and optional settings. `None` if no volumes are attached.
    raw (`dict`):
        Raw response from the server. Contains more information about the Space
        runtime like number of replicas, number of cpu, memory size,...
c                ó$   <€ V ^8„  d   QhRS[ RR/# r{   ra   )rL   rM   s   "€r    rN   ÚSpaceRuntime.__annotate__í   s   ø€ ÷ ñ ™Tð  dñ r   c                ó  € VR ,          V n         VP                  R4      ;'       g    / pVP                  R4      V n        VP                  R4      V n        VP                  R4      V n        VP                  R4      V n        VP                  RR4      V n        VP                  R4      ;pe   \        V4      MR	V n        VP                  R
4      pVe   V Uu. uF  p\        R/ VB NK  	  upMR	V n
        Wn        R	# u upi )ÚstageÚhardwareÚcurrentÚ	requestedÚ	gcTimeoutÚstorageÚdevModeFÚhotReloadingNÚvolumesr   )r�   rZ   rŽ   Úrequested_hardwareÚ
sleep_timer’   Údev_modery   Úhot_reloadingrH   r•   r�   )r[   re   Úhardware_dictÚraw_hrÚraw_volumesÚvs   &&    r    r]   ÚSpaceRuntime.__init__í   sÚ   € Ø˜'•]ˆŒ
ØŸ™ Ó,×2Ð2°ˆØ%×)Ñ)¨)Ó4ˆŒØ"/×"3Ñ"3°KÓ"@ˆÔØŸ(™( ;Ó/ˆŒØ—x‘x 	Ó*ˆŒØŸ™ ¨EÓ2ˆŒØEIÇXÁXÈnÓE]Ð;]¸6Ò:jÔ.¨vÔ6ÐptˆÔØ—h‘h˜yÓ)ˆØ=HÒ=T©[Ó9©[¨œ™ œ©[Ò9ÐZ^ˆŒØŽùò :s   ÃC?c                óê   <€ V ^8„  d   Qh/ S[ ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[R,          ;R&   S[;R&   S[R,          ;R&   S[S[,          R,          ;R	&   S[;R
&   # )rJ   r�   NrŽ   r–   r—   r’   r˜   r™   r•   r�   )	r   r"   Úintr@   rt   ry   r†   rH   rb   )rL   rM   s   "€r    rN   r‹   È   s¡   ø‡ ‚ ñ6 Ññ7 ñ8 ˜dÕ"Ñ"ñ9 ñ: &¨Õ,Ñ,ñ; ñ< �d•
Ññ= ñ> ˜DÕ Ñ ñ? ñ@ �NñA ñB % tÕ+Ñ+ñC ñD ‘&�\˜DÕ Ñ ñE ñF 
�IòG r   )	r˜   rŽ   r™   r�   r–   r—   r�   r’   r•   N©	r   r   r   r   r   r]   ru   r   rv   rw   s   @r    r‰   r‰   È   s   ø‡ € ñ÷Fð ÷K ƒ r   r‰   c                   óB   a € ] tR t^ût o RtV 3R lR ltV 3R ltRtV tR# )ÚSpaceSecretaú  
Contains information about a secret of a Space.

Secret values are write-only and cannot be read back. Only the key, description,
and last update time are returned by the API.

Args:
    key (`str`):
        Secret key. Example: `"GITHUB_API_KEY"`
    description (`str` or None):
        Description of the secret. Example: `"Github API key to access the Github API"`.
    updated_at (`datetime` or None):
        datetime of the last update of the secret (if the secret has been updated at least once).
c                ó*   <€ V ^8„  d   QhRS[ RS[RR/# ©rJ   ÚkeyÚvaluesrK   N©ri   rb   )rL   rM   s   "€r    rN   ÚSpaceSecret.__annotate__  s'   ø€ ÷ Yñ Y™Cð Y©ð Y°$ñ Yr   c                óš   € Wn         VP                  R 4      V n        VP                  R4      pVe   \        V4      V n        R# RV n        R# )ÚdescriptionÚ	updatedAtN)r¦   rZ   r«   r	   Ú
updated_at©r[   r¦   r§   r­   s   &&& r    r]   ÚSpaceSecret.__init__  s>   € ØŒØ!Ÿ:™: mÓ4ˆÔØ—Z‘Z Ó,ˆ
Ø8BÒ8Nœ.¨Ó4ˆŽÐTXˆŽr   c                óZ   <€ V ^8„  d   Qh/ S[ ;R&   S[ R,          ;R&   S[R,          ;R&   # )rJ   r¦   Nr«   r­   ©ri   r   )rL   rM   s   "€r    rN   r©   û   s3   ø‡ ‚ ñ" 
�Hñ# ñ$ �t•Ññ% ñ& ˜4•Ñò' r   )r«   r¦   r­   Nr¡   rw   s   @r    r£   r£   û   s   ø‡ € ñ÷&Yð Y÷+ ƒ r   r£   c                   óB   a € ] tR tRt o RtV 3R lR ltV 3R ltRtV tR# )ÚSpaceVariablei  a×  
Contains information about the current variables of a Space.

Args:
    key (`str`):
        Variable key. Example: `"MODEL_REPO_ID"`
    value (`str`):
        Variable value. Example: `"the_model_repo_id"`.
    description (`str` or None):
        Description of the variable. Example: `"Model Repo ID of the implemented model"`.
    updatedAt (`datetime` or None):
        datetime of the last update of the variable (if the variable has been updated at least once).
c                ó*   <€ V ^8„  d   QhRS[ RS[RR/# r¥   r¨   )rL   rM   s   "€r    rN   ÚSpaceVariable.__annotate__,  s'   ø€ ÷ Yñ Y™Cð Y©ð Y°$ñ Yr   c                ó¶   € Wn         VR ,          V n        VP                  R4      V n        VP                  R4      pVe   \	        V4      V n        R# RV n        R# )Úvaluer«   r¬   N)r¦   r·   rZ   r«   r	   r­   r®   s   &&& r    r]   ÚSpaceVariable.__init__,  sI   € ØŒØ˜G•_ˆŒ
Ø!Ÿ:™: mÓ4ˆÔØ—Z‘Z Ó,ˆ
Ø8BÒ8Nœ.¨Ó4ˆŽÐTXˆŽr   c                óf   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ R,          ;R&   S[R,          ;R&   # )rJ   r¦   r·   Nr«   r­   r±   )rL   rM   s   "€r    rN   rµ     s?   ø‡ ‚ ñ  
�Hñ! ñ" �Jñ# ñ$ �t•Ññ% ñ& ˜4•Ñò' r   )r«   r¦   r­   r·   Nr¡   rw   s   @r    r³   r³     s   ø‡ € ñ÷&Yð Y÷+ ƒ r   r³   c                   óB   a € ] tR tRt o RtV 3R lR ltV 3R ltRtV tR# )ÚSpaceSearchResulti4  a  A single result from the Spaces semantic search API.

Returned by [`HfApi.search_spaces`].

Attributes:
    id (`str`):
        ID of the Space (e.g. `"username/repo-name"`).
    author (`str`):
        Author of the Space.
    title (`str`):
        Display title of the Space.
    emoji (`str` or `None`):
        Emoji icon of the Space.
    sdk (`str` or `None`):
        SDK used by the Space (e.g. `"gradio"`, `"docker"`, `"static"`).
    likes (`int`):
        Number of likes.
    private (`bool`):
        Whether the Space is private.
    tags (`list[str]` or `None`):
        List of tags.
    runtime ([`SpaceRuntime`] or `None`):
        Runtime information (stage, hardware, etc.).
    ai_short_description (`str` or `None`):
        AI-generated short description.
    ai_category (`str` or `None`):
        AI-generated category (e.g. `"Image Generation"`).
    semantic_relevancy_score (`float` or `None`):
        Semantic relevancy score (0-1) relative to the search query.
    trending_score (`int` or `None`):
        Trending score.
c                ó$   <€ V ^8„  d   QhRS[ RR/# r{   ra   )rL   rM   s   "€r    rN   ÚSpaceSearchResult.__annotate__e  s   ø€ ÷ 8ñ 8™Tð 8 dñ 8r   c                ód  € VP                  R 4      pVR,          V n        VP                  RR4      V n        VP                  RR4      V n        VP                  R4      V n        VP                  R4      V n        VP                  R^ 4      V n        VP                  RR	4      V n        VP                  R
4      V n        V'       d   \        V4      MRV n
        VP                  R4      V n        VP                  R4      V n        VP                  R4      V n        VP                  R4      V n        R# )Úruntimerl   Úauthorrk   ÚtitleÚemojiÚsdkÚlikesÚprivateFÚtagsNÚai_short_descriptionÚai_categoryÚsemanticRelevancyScoreÚtrendingScore)rZ   rl   rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   r‰   r¿   rÇ   rÈ   Úsemantic_relevancy_scoreÚtrending_score)r[   re   r¿   s   && r    r]   ÚSpaceSearchResult.__init__e  sè   € Ø—(‘(˜9Ó%ˆØ�t•*ˆŒØ—h‘h˜x¨Ó,ˆŒØ—X‘X˜g rÓ*ˆŒ
Ø—X‘X˜gÓ&ˆŒ
Ø—8‘8˜E“?ˆŒØ—X‘X˜g qÓ)ˆŒ
Ø—x‘x 	¨5Ó1ˆŒØ—H‘H˜VÓ$ˆŒ	ß07”| GÔ,¸TˆŒØ$(§H¡HÐ-CÓ$DˆÔ!ØŸ8™8 MÓ2ˆÔØ(,¯©Ð1IÓ(JˆÔ%Ø"Ÿh™h Ó7ˆÖr   c                ó6  <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ R,          ;R&   S[ R,          ;R&   S[;R&   S[;R&   S[S[ ,          R,          ;R	&   S[R,          ;R
&   S[ R,          ;R&   S[ R,          ;R&   S[R,          ;R&   S[R,          ;R&   # )rJ   rl   rÀ   rÁ   NrÂ   rÃ   rÄ   rÅ   rÆ   r¿   rÇ   rÈ   rË   rÌ   )ri   r    rt   r†   r‰   Úfloat)rL   rM   s   "€r    rN   r½   4  sè   ø‡ ‚ ñF 	�GñG ñH �KñI ñJ �JñK ñL ��:ÑñM ñN 
ˆt��OñO ñP �JñQ ñR �MñS ñT ‰s�)�dÕ
ÑñU ñV ˜DÕ Ñ ñW ñX  �*Ñ$ñY ñZ �t•Ññ[ ñ\ $ d�lÑ*ñ] ñ^ ˜$•JÑò_ r   )rÈ   rÇ   rÀ   rÂ   rl   rÄ   rÅ   r¿   rÃ   rË   rÆ   rÁ   rÌ   Nr¡   rw   s   @r    r»   r»   4  s   ø‡ € ñ÷^8ð 8÷c ƒ r   r»   c                   óB   a € ] tR tRt o RtV 3R lR ltV 3R ltRtV tR# )ÚSpaceTemplateiv  a  
Contains information about a Space template available on the Hub.

Returned by [`HfApi.list_space_templates`]. The `repo_id` can be passed as `space_template`
to [`HfApi.create_repo`] to seed a new Space from that template.

Args:
    name (`str`):
        Human-friendly name of the template (e.g. `"JupyterLab"`, `"chatbot"`).
    repo_id (`str`):
        Repo id of the template Space (e.g. `"SpacesExamples/jupyterlab"`).
    sdk (`str`):
        SDK the template is built with (e.g. `"gradio"`, `"docker"`, `"static"`).
    preferred_private (`bool`):
        Whether Spaces created from this template are recommended to be private.
c                ó$   <€ V ^8„  d   QhRS[ RR/# r{   ra   )rL   rM   s   "€r    rN   ÚSpaceTemplate.__annotate__Ž  s   ø€ ÷ :ñ :™Tð : dñ :r   c                óv   € VR ,          V n         VR,          V n        VR,          V n        VR,          V n        R# )ÚnameÚrepoIdrÃ   ÚpreferredPrivateN)rÕ   Úrepo_idrÃ   Úpreferred_privaterd   s   &&r    r]   ÚSpaceTemplate.__init__Ž  s1   € Ø˜•LˆŒ	Ø˜H•~ˆŒØ˜•;ˆŒØ!%Ð&8Õ!9ˆÖr   c                óJ   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[;R&   # )rJ   rÕ   rØ   rÃ   rÙ   )ri   rt   )rL   rM   s   "€r    rN   rÓ   v  s6   ø‡ ‚ ñ& �Iñ' ñ( �Lñ) ñ* 
�Hñ+ ñ, Ñò- r   )rÕ   rÙ   rØ   rÃ   Nr¡   rw   s   @r    rÑ   rÑ   v  s   ø‡ € ñ÷,:ð :÷1 ƒ r   rÑ   c                   óB   a € ] tR tRt o RtV 3R lR ltV 3R ltRtV tR# )ÚZeroGpuQuotai•  aE  
Contains information about the ZeroGPU quota of the authenticated user.

The ZeroGPU quota is consumed each time you use a ZeroGPU Space (from the UI or through its API) and is reset
periodically. See https://huggingface.co/docs/hub/spaces-zerogpu for more details.

Returned by [`HfApi.get_zero_gpu_quota`].

Args:
    base (`float`):
        Total quota, in GPU-seconds.
    remaining (`float`):
        Remaining quota, in GPU-seconds.
    resets_at (`datetime` or `None`):
        Date at which the quota will be reset. `None` if the quota has not been used yet.
    overquota_used (`float` or `None`):
        Overquota (paid) GPU-seconds consumed once the base quota is exhausted. PRO, Team and Enterprise users
        can purchase credits to go beyond the base quota at https://huggingface.co/settings/billing?add-credits=true.
c                ó$   <€ V ^8„  d   QhRS[ RR/# r{   ra   )rL   rM   s   "€r    rN   ÚZeroGpuQuota.__annotate__°  s   ø€ ÷ 8ñ 8™Tð 8 dñ 8r   c                ó¸   € VR ,          V n         VR,          V n        VP                  R4      ;pe   \        V4      MRV n        VP                  R4      V n        R# )Úbaser�   ÚresetsAtNÚoverquotaUsed)rá   Ú	remainingrZ   r	   Ú	resets_atÚoverquota_used)r[   re   rå   s   && r    r]   ÚZeroGpuQuota.__init__°  sK   € Ø˜•LˆŒ	Ø˜i�ˆŒØDHÇHÁHÈZÓDXÐ7X°yÒ6eœ¨	Ô2ÐkoˆŒØ"Ÿh™h Ó7ˆÖr   c                óf   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[R,          ;R&   S[ R,          ;R&   # )rJ   rá   rä   Nrå   ræ   )rÏ   r   )rL   rM   s   "€r    rN   rß   •  s@   ø‡ ‚ ñ, �Kñ- ñ. Ññ/ ñ0 ˜$�Ññ1 ñ2 ˜D•LÑ ò3 r   )rá   ræ   rä   rå   Nr¡   rw   s   @r    rÝ   rÝ   •  s   ø‡ € ñ÷28ð 8÷7 ƒ r   rÝ   N)%Údataclassesr   r   Úenumr   Útypingr   Úhuggingface_hub.utilsr   r   r	   ri   r   r   r   r   r   ÚINTERMEDIATE_SPACE_STAGESr   r   r   r   r   r   r   r   ÚTERMINAL_SPACE_STAGESr"   r@   rH   ry   r‰   r£   r³   r»   rÑ   rÝ   r   r   r    Ú<module>rï      s•  ðõ "Ý Ý Ý ç @Ñ @ô2��dô 2ð8 ×ÑØ×ÑØ×ÑØ×#Ñ#ð	Ð ð ×ÑØ×ÑØ×ÑØ×ÑØ×ÑØ×ÑØ×ÑØ×Ñð	Ð ô'&�C˜ô '&ôT�3˜ô ð" ÷9ð 9ó ð9ðx ÷ð ó ðð ÷/ð /ó ð/ðd ÷Yð Yó ðYð6 ÷Yð Yó ðYð8 ÷>8ð >8ó ð>8ðB ÷:ð :ó ð:ð< ÷8ð 8ó ò8r   