Metadata-Version: 2.4
Name: csvtojsonify
Version: 2.0.2
Summary: Convert CSV text to JSON — library, CLI, and optional web UI
Author-email: Sriram Sreedhar <sriramsreedhar003@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://pypi.org/project/csvtojsonify/
Project-URL: Repository, https://github.com/sriramsreedhar/csvtojsonify
Keywords: csv,json,convert
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: web
Requires-Dist: fastapi>=0.100.0; extra == "web"
Requires-Dist: uvicorn[standard]>=0.22.0; extra == "web"
Dynamic: license-file

# csvtojsonify

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

## Install from PyPI

```bash
pip install csvtojsonify
```

Web UI (FastAPI + Uvicorn):

```bash
pip install 'csvtojsonify[web]'
```

## Install from source

```bash
pip install .
pip install ".[web]"
```

## Library

```python
from csvtojsonify import csv_to_json

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

## CLI

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

## Web UI

```bash
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](https://raw.githubusercontent.com/sriramsreedhar/csvtojsonify/main/docs/web-ui.png)

## License

This project is licensed under the **Apache License, Version 2.0**. See the [`LICENSE`](https://github.com/sriramsreedhar/csvtojsonify/blob/main/LICENSE) file in the repository for the full text.
