Developer Tools
vtomllib
Reads a clearly stated subset of TOML into a plain map.
Released v1.0.0 · 2026-09-28use "stdlib/tomllib.ven"
A pure Venutian parser for a useful, well defined subset of TOML text, turning it into a plain map, the same convention the language's own JSON and INI parsing already follow. It covers the common, everyday shape of a TOML configuration file rather than the format's full specification.
Reference (1 functions)
API reference
toml_parse(text)
Parses a whole TOML document into a plain, nested Map.
doc = toml_parse("title = \"demo\"\n[owner]\nname = \"ada\"\n")
print(map_get(doc, "title"))
:: prints: demo
print(map_get(map_get(doc, "owner"), "name"))
:: prints: ada