Skip to main content

Convert CSV text to JSON — library, CLI, and optional web UI

Project description

csvtojsonify

Convert CSV to JSON as a Python library, CLI, or browser UI.

Install from PyPI

pip install csvtojsonify

Web UI (FastAPI + Uvicorn):

pip install 'csvtojsonify[web]'

Install from source

pip install .
pip install ".[web]"

Library

from csvtojsonify import csv_to_json

json_str = csv_to_json("name,age\nAlice,30")

CLI

csvtojsonify < input.csv > out.json
csvtojsonify path/to/file.csv
csvtojsonify --compact < data.csv

Web UI

csvtojsonify-web

Open http://127.0.0.1:8765 — paste CSV on the left, JSON appears on the right.

Web UI: CSV input on the left, formatted JSON on the right

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file in the repository for the full text.

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

csvtojsonify-2.0.2.tar.gz (97.2 kB view details)

Uploaded Source

Built Distribution

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

csvtojsonify-2.0.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file csvtojsonify-2.0.2.tar.gz.

File metadata

  • Download URL: csvtojsonify-2.0.2.tar.gz
  • Upload date:
  • Size: 97.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for csvtojsonify-2.0.2.tar.gz
Algorithm Hash digest
SHA256 6a512d5046948b5de98651ed46342ba8171b956cefc3366b281fd47bada45d30
MD5 ae87ff8ac0fe6205df56da4a05f9783f
BLAKE2b-256 58e20399a275d687ff92e6f9e7d69bdf5057e1537614cc3d569e6116136b25be

See more details on using hashes here.

File details

Details for the file csvtojsonify-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: csvtojsonify-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for csvtojsonify-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 500b101bf68006e83ac1706bd73d5c7850f638fb96491eeef2c787b12d24e466
MD5 391da9f0f1f22846220552f801d9c226
BLAKE2b-256 911927862371e6f85f15f38f672530114039b0ddde005eb614a8fc3c8d9f80a1

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