Skip to main content

csv2json

A command-line utility that quickly and easily converts CSVs to JSON.

Usage

You can install csv2json using PyPi and use it as follows:

$ pip install csv2json.py
$ cat <mycsv> | csv2json -p

# See --help for more information.

Help

A utility to convert CSVs to JSON quickly and easily.

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
  -o OUTPUT, --output OUTPUT
  -c INCLUDE_COLUMNS [INCLUDE_COLUMNS ...], --include-columns INCLUDE_COLUMNS [INCLUDE_COLUMNS ...]
  -x EXCLUDE_COLUMNS [EXCLUDE_COLUMNS ...], --exclude-columns EXCLUDE_COLUMNS [EXCLUDE_COLUMNS ...]
  -p, --pretty
  --indent INDENT

Contributing

csv2json.py welcomes contributions. Please submit PRs & issues as needed. Just don't be a dick.

Download files

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

Source Distribution

csv2json.py-1.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file csv2json.py-1.1.tar.gz.

File metadata

  • Download URL: csv2json.py-1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for csv2json.py-1.1.tar.gz
Algorithm Hash digest
SHA256 fa4dc5db797f11a6cea46e605cfbb25dce8746d9fc707b328b5875505b8d65be
MD5 51d836393f7894babe02841567eef79f
BLAKE2b-256 5eb151ee64ba00cefa76bca47ef0ce7d1d54f118a318d1fda276cbaaaaf5424b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1 This release

1 file

1.0

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

0.0.5

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page