AsyncLocalFileContentContext ============================ .. py:class:: AsyncLocalFileContentContext :canonical: ansys.tools.variableinterop.file_value.AsyncLocalFileContentContext Bases: :py:obj:`contextlib.AbstractAsyncContextManager`, :py:obj:`abc.ABC` Represents the context during which a locally available copy of file value content Overview -------- .. py:currentmodule:: AsyncLocalFileContentContext .. tab-set:: .. tab-item:: Abstract methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~keep_file_on_exit` - Call this method before exiting to prevent deleting the file on exit. .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~content_path` - Get the local path to the content. Import detail ------------- .. code-block:: python from ansys.tools.variableinterop.file_value import AsyncLocalFileContentContext Property detail --------------- .. py:property:: content_path :canonical: ansys.tools.variableinterop.file_value.AsyncLocalFileContentContext.content_path :type: anyio.Path :abstractmethod: Get the local path to the content. .. !! processed by numpydoc !! Method detail ------------- .. py:method:: keep_file_on_exit() -> None :abstractmethod: Call this method before exiting to prevent deleting the file on exit. .. !! processed by numpydoc !!