All docs
Source·
method
Source.read
reads the source and returns its data as a table
Python
read() -> Table
Returns Table — the source's data as an immutable Table
Example#
Inside a load step, read() turns whatever the user picked into rows:
Python
from lsdtools import Tool, Source, Table
tool = Tool("io")
@tool.load(source_kinds=("file",))
def load_it(src: Source) -> Table:
return src.read()
Or drive a load directly from a value source:
Python
Source.file("assays.csv").read() # → a Table
Notes#
Files are read by extension — .csv via CSV, .parquet / .pq via Parquet — and custom
kinds run their registered reader. Every call returns a new immutable
Table.
See also#
API: paths · file · sql · Table
Guides: Load steps · Tables & data flow
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown