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

Publishing to PyPI (maintainers)

  1. Create a PyPI account and API token (scope: entire account or this project only).

  2. Install build tools: pip install build twine

  3. Bump the version in pyproject.toml (and __version__ in src/csvtojsonify/__init__.py) to a new number; PyPI rejects re-uploading the same version.

  4. Build artifacts:

    python -m build
    
  5. Upload to the test index first (recommended):

    python -m twine upload --repository testpypi dist/*
    

    Verify: pip install -i https://test.pypi.org/simple/ csvtojsonify

  6. Upload to production PyPI:

    python -m twine upload dist/*
    

    Configure credentials via ~/.pypirc or environment variables TWINE_USERNAME=__token__ and TWINE_PASSWORD=pypi-....

After the first release, users install with pip install csvtojsonify.

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.1.tar.gz (98.1 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.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csvtojsonify-2.0.1.tar.gz
  • Upload date:
  • Size: 98.1 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.1.tar.gz
Algorithm Hash digest
SHA256 f40059337bb625bca1b4436c381615780b9ff1b40b164ebd8a5a309a99cbedc2
MD5 36f2bf4d40b5a128ca30546a0217a026
BLAKE2b-256 ce1e427925301cf643aad4286a424ff1754a108d070ccc509b5dae7b6854fc56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csvtojsonify-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 031a8d12e7b9db2aaa82d6e4dcad25588c58beaa409b6bbac28c73b75e5ca2fe
MD5 4eed8b2fd8461b5f3130dfd5297711d2
BLAKE2b-256 a6b54f728eba815d2d6716788057597bf411563d400f69d08a1e265215ddcc2a

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