MCPcopy
hub / github.com/marimo-team/marimo / read_text

Method read_text

marimo/_utils/async_path.py:127–131  ·  view source on GitHub ↗

Read and return the file contents as text.

(
        self, encoding: str | None = None, errors: str | None = None
    )

Source from the content-addressed store, hash-verified

125 # File I/O operations
126
127 async def read_text(
128 self, encoding: str | None = None, errors: str | None = None
129 ) -> str:
130 """Read and return the file contents as text."""
131 return await asyncio.to_thread(self._path.read_text, encoding, errors)
132
133 async def read_bytes(self) -> bytes:
134 """Read and return the file contents as bytes."""

Callers 15

indexFunction · 0.95
test_read_textMethod · 0.95
read_opengraph_from_fileFunction · 0.45
is_editableFunction · 0.45
extract_headerMethod · 0.45
readMethod · 0.45
read_related_fileMethod · 0.45
read_css_fileFunction · 0.45
read_html_head_fileFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_read_textMethod · 0.76
test_write_textFunction · 0.36
test_renameMethod · 0.36
test_replaceMethod · 0.36
test_write_textMethod · 0.36
test_hardlink_toMethod · 0.36
test_write_successMethod · 0.36