Learn laterite — start here¶
A linear, five-step tour of the library: install it, read an AGS4 file into typed frames, validate against the numbered rules, query with the builder or raw SQL, and produce byte-faithful AGS4 back out. Work through them in order — each page ends with a Next → to the following step.
- Install —
pip install laterite, the optional extras, and thelatCLI in one line. - Read —
read()a path, text, or bytes; AGS types arrive as polars dtypes (every column is born typed). - Validate — run the numbered-rules engine and read the
Reportof findings. - Query — fan out a group with
.at(), chain the lazyAgsQuerybuilder, or drop to.sql()over DuckDB. - Produce —
build_ags4()from frames or a typedPROJgraph into aBuildResultyou can.save.
Tip
In a hurry? The cheatsheet is the whole API on one page, and the cookbook has task-shaped recipes.