Ë
    äš¾jl  ã                   ó<   — d dl mZ d dlZd dlmZ  G d„ dee«      Zy)é    )ÚEnumN)ÚOptionalc                   ó<   — e Zd ZdZdZdZdZdZede	d    fd„«       Z
y)	ÚFileCacheModeaØ  Enumeration of the modes available for for the cloudpathlib file cache.

    Attributes:
        persistent (str): Cache is not removed by `cloudpathlib`.
        tmp_dir (str): Cache is stored in a
            [`TemporaryDirectory`](https://docs.python.org/3/library/tempfile.html#tempfile.TemporaryDirectory)
            which is removed when the Client object is garbage collected (or by the OS at some point if not).
        cloudpath_object (str): Cache for a `CloudPath` object is removed when `__del__` for that object is
            called by Python garbage collection.
        close_file (str): Cache for a `CloudPath` file is removed as soon as the file is closed. Note: you must
            use `CloudPath.open` whenever opening the file for this method to function.

    Modes can be set by passing them to the Client or by setting the `CLOUDPATHLIB_FILE_CACHE_MODE`
    environment variable.

    For more detail, see the [caching documentation page](../../caching).
    Ú
persistentÚtmp_dirÚcloudpath_objectÚ
close_fileÚreturnc                 ót   — t         j                  j                  dd«      j                  «       }|sy | |«      S )zËParses the environment variable `CLOUDPATHLIB_FILE_CACHE_MODE` into
        an instance of this Enum.

        Returns:
            FileCacheMode enum value if the env var is defined, else None.
        ÚCLOUDPATHLIB_FILE_CACHE_MODEÚ N)ÚosÚenvironÚgetÚlower)ÚclsÚ
env_strings     ú\/home/spazio/kingdom_calls/work5/transenv/lib/python3.12/site-packages/cloudpathlib/enums.pyÚfrom_environmentzFileCacheMode.from_environment   s2   € ô —Z‘Z—^‘^Ð$BÀBÓG×MÑMÓOˆ
áØá�z“?Ð"ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r	   r
   Úclassmethodr   r   © r   r   r   r      s<   „ ñð$ €JØ€GØ)ÐØ€Jàð# ¨/Ñ!:ò #ó ñ#r   r   )Úenumr   r   Útypingr   Ústrr   r   r   r   ú<module>r!      s   ðÝ Û 	Ý ô&#�C˜õ &#r   