Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/temboinc/pycsvjson
A pure-Python command-line tool for converting CSV files into JSON
https://github.com/temboinc/pycsvjson
csv csv-converter etl json json-schema python
Last synced: 28 days ago
JSON representation
A pure-Python command-line tool for converting CSV files into JSON
- Host: GitHub
- URL: https://github.com/temboinc/pycsvjson
- Owner: TemboInc
- License: mit
- Created: 2017-11-27T19:33:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T03:04:23.000Z (about 6 years ago)
- Last Synced: 2024-11-14T16:20:00.777Z (about 1 month ago)
- Topics: csv, csv-converter, etl, json, json-schema, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pycsvjson
=========
A command-line utility to convert CSV files to JSON.Installation
------------
**Requires:** Python 3You should really consider using virtual environments when installing any Python software. See http://docs.python-guide.org/en/latest/dev/virtualenvs/#virtualenvironments-ref for more information on virtual environments.
To use virtual environments with pycsvjson, do something like:
```
pip install virtualenv
virtualenv -p $(which python3) .ve
source .ve/bin/activate
```To install this package:
`pip install pycsvjson`Quickstart
----------
`pycsvjson csvfile mappingfile --output outfile`For pretty, human-readable versions of JSON, use the `--pretty` option:
`pycsvjson file.csv mapping.json --output outfile.json --pretty`
For extended options: `pycsvjson --help`
For more information on what a mapping file is, see https://github.com/pudo/jsonmapping
Status
------
This software should be considered Alpha.License
-------
This project is released under the MIT License.