kleister-nda-clone/main.py
2021-04-27 21:03:51 +02:00

18 lines
387 B
Python

import csv
import sys
import lzma
def main(fname):
print(fname)
with lzma.open(fname, mode="rt", encoding="utf-8") as tsvfile:
reader = csv.reader(tsvfile, delimiter='\t', quoting=csv.QUOTE_NONE)
for item in reader:
pass
if __name__ == "__main__":
if len(sys.argv) < 2:
raise Exception("Input file not provided")
main(sys.argv[1])