Skip to main content

Convert csv to json and convert json to csv

Project description

JCSV (JSON2CSV and CSV2JSON converter)

Project developed in the Python for Data Science course - Artificial intelligence PUC-MG

Requirements

  • python ^3.7

Install

pip install jcsv
or
pip3 install jcsv

Usage

  • convert csv to json
csv2json --input /path/to/csv/files --output /path/to/json/files --delimiter ,
  • convert json to csv
json2csv --input /path/to/json/files --output /path/to/csv/files --delimiter ,

Default

  • input = "./"
  • output = "./"
  • delimiter = ","

Help

csv2json --help
Usage: csv2json [OPTIONS]

Options:
  -i, --input TEXT      Path where to find CSV files to be contered to JSON.
  -o, --output TEXT     Path where the converted files will be saved.
  -d, --delimiter TEXT  Separator used to split files.
  --help                Show this message and exit.
json2csv --help
Usage: json2csv [OPTIONS]

Options:
  -i, --input TEXT      Path where to find JSON files to be contered to CSV.
  -o, --output TEXT     Path where the converted files will be saved.
  -d, --delimiter TEXT  Separator used to split files.
  --help                Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jcsv-0.2.19.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jcsv-0.2.19-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file jcsv-0.2.19.tar.gz.

File metadata

  • Download URL: jcsv-0.2.19.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.10 Windows/10

File hashes

Hashes for jcsv-0.2.19.tar.gz
Algorithm Hash digest
SHA256 e8a6bd97406cf70a7f1af822336ab7107eee90102ee8b25945d289ae346f61d3
MD5 dd83e44d5502188ee695ee117fbb6d50
BLAKE2b-256 507a96070825c01200a657a7e37eb04fef231845d01664bbae66915c4bdf13e8

See more details on using hashes here.

File details

Details for the file jcsv-0.2.19-py3-none-any.whl.

File metadata

  • Download URL: jcsv-0.2.19-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.10 Windows/10

File hashes

Hashes for jcsv-0.2.19-py3-none-any.whl
Algorithm Hash digest
SHA256 98af6b7bbc2eacca4f19eeb0b78c6b04214cc823de8e1634f19a6566dbd804b2
MD5 e678893ce16ea66cb71fc1fc39de2634
BLAKE2b-256 d1deb847250bc8b5c3b5e99d030b0423fa4b407c36b0b4c896d3a6bb67a600f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page