For now tabulator support only stream.save(format='csv') to csv format. It's pretty easy to implement json writer just porting writers.csv.CSVWriter to writers.json.JSONWriter.
What we're aiming for:
from tabulator import Stream
with Stream('data.xls', headers=1) as stream:
stream.save('path.json')
And of course it will be a pretty cool and useful feature :+1:
Plan
[ ] port writers.csv.CSVWriter to writers.json.JSONWrter
[ ] register new writer in config.py (see WRITERS)
[ ] add writing tests to tests.formats.json
[ ] mention writing ability in readme json format section
Overview
For now
tabulator
support onlystream.save(format='csv')
tocsv
format. It's pretty easy to implementjson
writer just portingwriters.csv.CSVWriter
towriters.json.JSONWriter
.What we're aiming for:
And of course it will be a pretty cool and useful feature :+1:
Plan
writers.csv.CSVWriter
towriters.json.JSONWrter
config.py
(seeWRITERS
)tests.formats.json
json
format section