+
    QV-jì.  ã                   óF  € ^ 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 ! 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# )é    )Ú	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   ó    Úk/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/huggingface_hub/_space_api.pyr   r      sG   † ñ	ð  €KØ!€LØ€HØ€KØ€GØ)ÐØ#€MØ€HØ€GØ€FØ!€LØ1Ôr   r   c                   ó^   € ] tR t^1t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Úa100x8r   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ÚA100X8r   r   r   r    r"   r"   1   sb   † ñ	ð €IØ€Kð €Ið €HØ€IØ€DØ€DØ€FØ€FØ€FØ€JØ€JØ!€LØ!€LØ€JØ€FØ„Fr   r"   c                   ó&   € ] tR t^Ut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<   U   s   † ñ	ð €EØ€FØ„Er   r<   c                   ór   a € ] tR t^ft 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)ÚgetrM   rO   rQ   rR   rT   rU   )ÚselfÚkwargsrQ   rT   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[ /# ©rF   rG   ©Údict)rH   rI   s   "€r    rJ   rK   ‹   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.rM   rO   rP   rR   rS   rU   )rM   rO   rQ   rR   rT   rU   ©rW   Ú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)rH   rI   s   "€r    rJ   rK   š   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.Ú )rM   ÚidrR   Úpath_in_repo)rO   rQ   rT   )	r   r   rM   rO   rR   rU   rQ   rT   Úto_uri)rW   s   &r    rj   Ú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&   # )	rF   rM   rO   rQ   NrR   rT   rU   )ÚbucketrN   ÚdatasetÚspace)r   re   Úbool)rH   rI   s   "€r    rJ   rK   f   sc   ø‡ ‚ ñ( Ð7Õ
8Ñ8ñ) ñ* �Kñ+ ñ, �Oñ- ñ. �D�jÑñ/ ñ0 �d�{Ñ!ñ1 ñ2 ��*Ñò3 r   )rQ   rU   rT   rR   rO   rM   )r   r   r   r   r   rR   rT   rU   rY   rb   rj   Ú__annotate_func__r   Ú__classdictcell__©rI   s   @r    rD   rD   f   sA   ø‡ € ñð*  €HØ!€IØ€D÷'ð '÷ð ÷ð ÷i ƒ r   rD   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/# ©rF   ra   rG   Nr]   )rH   rI   s   "€r    rJ   ÚSpaceHotReloading.__annotate__©   s   ø€ ÷ ñ ™Tð  dñ r   c                óJ   € VR ,          V n         VR,          V n        Wn        R# )ÚstatusÚreplicaStatusesN)rz   Úreplica_statusesÚrawr`   s   &&r    rY   Ú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&   # )rF   rz   Nr|   r}   )ÚcreatedÚcanceled)r   ÚlistÚtuplere   r^   )rH   rI   s   "€r    rJ   rx   £   sA   ø‡ ‚ áÐ)Õ*Ñ*ñ ñ ™5¡¡c¨D¥j Õ1Õ2Ñ2ñ ñ 
�Iò	 r   )r}   r|   rz   N)r   r   r   r   rY   rq   r   rr   rs   s   @r    ru   ru   £   s   ø‡ € ÷ð ÷ ƒ r   ru   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/# rw   r]   )rH   rI   s   "€r    rJ   ÚSpaceRuntime.__annotate__Ô   s   ø€ ÷ 
ñ 
™Tð 
 dñ 
r   c                ó  € VR ,          V n         VP                  R/ 4      P                  R4      V n        VP                  R/ 4      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‰   rV   rŠ   Úrequested_hardwareÚ
sleep_timerŽ   Údev_moderu   Úhot_reloadingrD   r‘   r}   )rW   ra   Úraw_hrÚraw_volumesÚvs   &&   r    rY   ÚSpaceRuntime.__init__Ô   sÚ   € Ø˜'•]ˆŒ
ØŸ™ ¨RÓ0×4Ñ4°YÓ?ˆŒØ"&§(¡(¨:°rÓ":×">Ñ">¸{Ó"KˆÔØŸ(™( ;Ó/ˆŒØ—x‘x 	Ó*ˆŒØŸ™ ¨EÓ2ˆŒØEIÇXÁXÈnÓE]Ð;]¸6Ò:jÔ.¨vÔ6ÐptˆÔØ—h‘h˜yÓ)ˆØ=HÒ=T©[Ó9©[¨œ™ œ©[Ò9ÐZ^ˆŒØŽùò :s   ÃD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
&   # )rF   r‰   NrŠ   r’   r“   rŽ   r”   r•   r‘   r}   )	r   r"   Úintr<   rp   ru   r‚   rD   r^   )rH   rI   s   "€r    rJ   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   rY   rq   r   rr   rs   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/# ©rF   ÚkeyÚvaluesrG   N©re   r^   )rH   rI   s   "€r    rJ   Ú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¡   rV   r¦   r	   Ú
updated_at©rW   r¡   r¢   r¨   s   &&& r    rY   Ú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&   # )rF   r¡   Nr¦   r¨   ©re   r   )rH   rI   s   "€r    rJ   r¤   á   s3   ø‡ ‚ ñ" 
�Hñ# ñ$ �t•Ññ% ñ& ˜4•Ñò' r   )r¦   r¡   r¨   Nrœ   rs   s   @r    rž   rž   á   s   ø‡ € ñ÷&Yð Y÷+ ƒ 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# )ÚSpaceVariablea×  
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£   )rH   rI   s   "€r    rJ   Ú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²   rV   r¦   r	   r¨   r©   s   &&& r    rY   Ú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&   # )rF   r¡   r²   Nr¦   r¨   r¬   )rH   rI   s   "€r    rJ   r°   ý   s?   ø‡ ‚ ñ  
�Hñ! ñ" �Jñ# ñ$ �t•Ññ% ñ& ˜4•Ñò' r   )r¦   r¡   r¨   r²   Nrœ   rs   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# )ÚSpaceSearchResulti  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/# rw   r]   )rH   rI   s   "€r    rJ   ÚSpaceSearchResult.__annotate__K  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# )Úruntimerh   Úauthorrg   ÚtitleÚemojiÚsdkÚlikesÚprivateFÚtagsNÚai_short_descriptionÚai_categoryÚsemanticRelevancyScoreÚtrendingScore)rV   rh   r»   r¼   r½   r¾   r¿   rÀ   rÁ   r…   rº   rÂ   rÃ   Úsemantic_relevancy_scoreÚtrending_score)rW   ra   rº   s   && r    rY   ÚSpaceSearchResult.__init__K  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&   # )rF   rh   r»   r¼   Nr½   r¾   r¿   rÀ   rÁ   rº   rÂ   rÃ   rÆ   rÇ   )re   r›   rp   r‚   r…   Úfloat)rH   rI   s   "€r    rJ   r¸     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½   rh   r¿   rÀ   rº   r¾   rÆ   rÁ   r¼   rÇ   Nrœ   rs   s   @r    r¶   r¶     s   ø‡ € ñ÷^8ð 8÷c ƒ r   r¶   N)Údataclassesr   r   Úenumr   Útypingr   Úhuggingface_hub.utilsr   r   r	   re   r   r"   r<   rD   ru   r…   rž   r®   r¶   r   r   r    Ú<module>rÏ      sâ   ðõ "Ý Ý Ý ç @Ñ @ô2��dô 2ô6!�C˜ô !ôH�3˜ô ð" ÷9ð 9ó ð9ðx ÷ð ó ðð ÷.ð .ó ð.ðb ÷Yð Yó ðYð6 ÷Yð Yó ðYð8 ÷>8ð >8ó ò>8r   