Skip to content

blackwhale/csvtojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csvtojson

This tool is to convert a csv file into new line delimited json format. A data type auto-detection is implemented so that the schema and/or data type of a column will be auto-detected. The supported data types are string, numbers (float and integer), and boolean.

Install

pip install csvtojson

Usage

# auto-detect schema
import csvtojson as c2j
data = c2j.load('./file.csv')

# print the rows in json format
for item in data:
    print item

About

A python package to auto-detect csv schema and convert into json format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages