Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hex7c0/csv-to-json
build json file, from csv file in Python3
https://github.com/hex7c0/csv-to-json
csv json python
Last synced: about 1 month ago
JSON representation
build json file, from csv file in Python3
- Host: GitHub
- URL: https://github.com/hex7c0/csv-to-json
- Owner: hex7c0
- License: gpl-3.0
- Created: 2014-09-25T13:43:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T13:43:17.000Z (almost 7 years ago)
- Last Synced: 2024-04-13T19:19:45.093Z (9 months ago)
- Topics: csv, json, python
- Language: Python
- Homepage: https://github.com/hex7c0/csv-to-json
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# csv-to-json
[![Build Status](https://travis-ci.org/hex7c0/csv-to-json.svg?branch=master)](https://travis-ci.org/hex7c0/csv-to-json)
Build json file, from csv file matrix
## API
Run through bash
```bash
python3 ctj.py file.csv
```### csv-to-json(options)
#### options
- `csv` - **String** Csv path *(default "required")*
- `-d`- **String** Delimiter for csv *(default ";")*
- `-q` - **String** Quotechar for csv *(default """)*
- `-s` - **Boolean** Sort csv with "row x column" *(default "column x row")*
- `-j` - **String** Path of json file *(default "ctj.json")*
- `-w`- **String** Wrapper for csv *(default "False")*
- `-i` - **Integer** Indent for csv *(default "4")*
- `-s` - **Boolean** Sort keys for json *(default "True")*
- `-h`, `--help` - Show this help message and exit
- `-v`, `--version` - Show program's version number and exit## Examples
Take a look at my [examples](examples)
### [License GPLv3](LICENSE)