Source code for k1lib.cli.kcsv
# AUTOGENERATED FILE! PLEASE DON'T EDIT
"""All tools related to csv file format. Expected to use behind the "kcsv"
module name, like this::
from k1lib.imports import *
kcsv.cat("file.csv") | display()
"""
from k1lib import cli
import csv
[docs]def cat(file:str) -> cli.Table[str]:
"""Opens a csv file, and turns them into nice row elements"""
with open(file) as f:
yield from csv.reader(f)