terminal_table/csv_adapter

Optional RFC-style CSV input adapter backed by Nim's standard library.

Importing the main terminal_table faรงade does not import a CSV parser.

Procs

proc tableFromCsv(input: string; hasHeader = true; separator = ',';
                  quote = '\"'; escape = '\x00'; skipInitialSpace = false): Table {.
    ...raises: [IOError, OSError, IOError, OSError, CsvError, ValueError],
    tags: [ReadIOEffect, WriteIOEffect], forbids: [].}
Parses CSV text into a table and validates that it is rectangular. Quoted separators, doubled quotes, and multiline fields are supported.
proc tableFromCsvFile(filename: string; hasHeader = true; separator = ',';
                      quote = '\"'; escape = '\x00'; skipInitialSpace = false): Table {....raises: [
    CsvError, IOError, OSError, IOError, OSError, CsvError, ValueError],
    tags: [ReadIOEffect, WriteIOEffect], forbids: [].}
Reads a CSV file into a table. File and CSV errors propagate to callers.

Exports

initTableMargin, draw, rotateCounterClockwise, CellAddress, initTable, build, removeRows, row, setSpan, isActive, psqlTheme, TableTheme, headerCell, replaceRow, or, Panel, footerSelector, setHeader, clearSpan, extractRows, percentageWidth, initColumn, setMaxRows, initCell, initShadow, setVerticalAlignment, footerCell, setAlignment, setPadding, headerSelector, BorderSet, addRow, addRow, OverflowMode, CellModifier, WidthConstraint, roundedTheme, predicateSelector, duplicateColumn, setTitle, contentWidth, setVerticalAlignment, initTableBuilder, addRow, fromRows, Column, Table, clearShadow, updateCell, allCellsSelector, setAlignment, initLiveTableOptions, TableBuilder, maxRows, replaceRow, splitColumns, startLive, LiveTableOptions, setAlignment, asciiTheme, colorBorders, setFooter, cell, duplicateRow, splitRows, print, transpose, cell, merge, highlight, LiveTableMode, addRow, clearFooter, finishRow, CellPadding, row, maximumWidth, addPanel, PanelPosition, verticalConcat, panel, cellSelector, setVerticalAlignment, fixedWidth, horizontalConcat, borderlessTheme, setPadding, VerticalAlignment, renderFrame, column, clearTitle, rotate180, addCell, apply, addRow, Row, minimumWidth, Selector, Shadow, column, clearHeader, rotateClockwise, CellPredicate, matchingCells, initCellPadding, TableSection, LiveTable, columnSelector, initTable, rowSelector, pad, markdownTheme, columnCount, alignVertical, stopLive, align, Cell, removeColumns, extractColumns, WidthKind, renderToTerminalWidth, CellContext, customTheme, render, initRow, segmentSelector, setWidthPriority, setPadding, modernTheme, TableMargin, initLiveTable, setShadow