csv
CSV parsing and writing (RFC 4180 compatible).
Load with: use csv
Quick example
use csv
result = csvde("value", "value")
prn(result)
Functions
CSV state
csvne()
Creates a new instance.
csvde(c, d)
Decodes. Takes c, d.
csvqu(c, q)
Performs the operation. Takes c, q.
csvli(c, l)
Performs the operation. Takes c, l.
Parse CSV string to list of lists
csvpa(s)
Parses. Takes s.
csvpa(s, c)
Parses. Takes s, c.
Write list of lists to CSV string
csvwr(rows)
Writes data. Takes rows.
csvwr(rows, c)
Writes data. Takes rows, c.
Header-aware operations
csvhd(s)
Performs the operation. Takes s.
csvhd(s, c)
Performs the operation. Takes s, c.
csvob(s)
Performs the operation. Takes s.
csvob(s, c)
Performs the operation. Takes s, c.
csvwo(objs, hds)
Performs the operation. Takes objs, hds.
csvwo(objs, hds, c)
Performs the operation. Takes objs, hds, c.
Module aliases
These are the public-facing names you call with use csv:
csv.csvrd(s)
Notes
- CSV parsing and serialisation.