All docs
Source·
classmethod
Source.of
builds a source of any registered custom kind
Python
of(kind: str, **config) -> Source
Returns Source — a source of the given registered kind
Parameters#
| name | type | default | description |
|---|---|---|---|
kind |
str |
— | the registered kind name, e.g. "largecsv" |
**config |
Any |
— | config fields for that kind, passed by keyword |
Example#
Python
from lsdtools import Source
Source.of("largecsv", path="huge.csv", threshold_mb=200)
Notes#
kind must be a source kind registered with @tool.source; the
keyword config values must match the fields of that kind's config UI tree — they are handed
to the kind's reader as a dict. Use file or
sql for the two built-in kinds.
See also#
Guides: Load steps
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown