Socket
Socket
Sign inDemoInstall

jcsv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jcsv

Convert csv to json and convert json to csv


Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc