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.

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.0.tar.gz (11.6 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.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csvtojsonify-2.0.0.tar.gz
  • Upload date:
  • Size: 11.6 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.0.tar.gz
Algorithm Hash digest
SHA256 25b1fc87da71dc636eabefc4c52f420b45bfeaa3beb8cf08b309daac445c8f95
MD5 66f474a6d82c19ca179839e183068886
BLAKE2b-256 224db3a52c87d6a3fb27a3c82138230b827bed0bc762c7005afc72787725cf6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csvtojsonify-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6cfa160b3e4ceebb01d731cf65bd94669f304a7d415946fd3d22e01c8a3228
MD5 3b1378086296d821289f2574dda2afde
BLAKE2b-256 8dac6c89bdca932c76f7b650d2a8ee50f1d45e8b8ab3e82a7e77f614d6097e39

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