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)
-
Create a PyPI account and API token (scope: entire account or this project only).
-
Install build tools:
pip install build twine -
Bump the
versioninpyproject.toml(and__version__insrc/csvtojsonify/__init__.py) to a new number; PyPI rejects re-uploading the same version. -
Build artifacts:
python -m build
-
Upload to the test index first (recommended):
python -m twine upload --repository testpypi dist/*
Verify:
pip install -i https://test.pypi.org/simple/ csvtojsonify -
Upload to production PyPI:
python -m twine upload dist/*
Configure credentials via
~/.pypircor environment variablesTWINE_USERNAME=__token__andTWINE_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25b1fc87da71dc636eabefc4c52f420b45bfeaa3beb8cf08b309daac445c8f95
|
|
| MD5 |
66f474a6d82c19ca179839e183068886
|
|
| BLAKE2b-256 |
224db3a52c87d6a3fb27a3c82138230b827bed0bc762c7005afc72787725cf6b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe6cfa160b3e4ceebb01d731cf65bd94669f304a7d415946fd3d22e01c8a3228
|
|
| MD5 |
3b1378086296d821289f2574dda2afde
|
|
| BLAKE2b-256 |
8dac6c89bdca932c76f7b650d2a8ee50f1d45e8b8ab3e82a7e77f614d6097e39
|