https://github.com/amoghmadan/table2json
Convert Tabular Data to JSON
https://github.com/amoghmadan/table2json
cli csv json mysql neo4j pandas psv python sqlite tsv utilties
Last synced: about 1 month ago
JSON representation
Convert Tabular Data to JSON
- Host: GitHub
- URL: https://github.com/amoghmadan/table2json
- Owner: amoghmadan
- License: mit
- Created: 2020-08-31T17:17:10.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-09T10:49:48.000Z (over 3 years ago)
- Last Synced: 2025-05-07T05:06:23.868Z (about 1 month ago)
- Topics: cli, csv, json, mysql, neo4j, pandas, psv, python, sqlite, tsv, utilties
- Language: Python
- Homepage: https://pypi.org/project/Table2JSON/
- Size: 166 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Table2JSON
Convert Tabular Data to JSON**Python 3.7 <= 3.X < 3.11**
**Setup CSV and SQLite (Basic Installation)**
```bash
pip install table2json # Setup CSV and SQLite by Default
```**Setup (All Installation)**
```bash
pip install table2json[all] # Setup All
```## Debian [Ubuntu, Mint and Others]
```bash
sudo apt-get install python3.X-venv python3.X-dev libssl-dev libmysqlclient-dev build-essential
```
Note (Python): Replace X with Python Minor Version## Redhat [CentOS, Rocky, Fedora and Others]
```bash
sudo yum install python3.X python3.X-devel ssl-devel mysql-devel
```
Note (Python): Replace X with Python Minor VersionNote (Fedora): Replace yum with dnf
Caution: ```Not a tried and tested method but known to work. If mysql-devel thing does not work replace mysqlclient package with pymysql package in the requirements.txt, setup.cfg, tox.ini and the mysql.py file.```
## Windows
Download, MS VS C++ Redistributable: [Microsoft Visual Studio C++ Redistributable]Download, Python 3.X: [Python 3.X]
Note (Python): Replace X with Python Minor Version
## Requirements [Build]
```bash
pip install -r requirements.txt
```## Requirements [Development]
```bash
pip install -r requirements.txt
pip install -r requirements/generic/common.txt
pip install -r requirements/generic/csv.txt
pip install -r requirements/generic/excel.txt
pip install -r requirements/generic/mysql.txt
pip install -r requirements/generic/neo4j.txt
pip install -r requirements/generic/sqlite.txt
```## Generate [Build (Distribution and Wheel)]
```bash
tox -c . -e py3X-build
```Note: Replace X with Python Minor Version
## Install [Wheel]
```bash
cd dist
pip install Table2JSON-{version}-py3X-none-any.whl[all] # All Optionals Will Be Installed
```
Note: Replace X with Python Minor Version# Generate [Executable]
```bash
tox -c . -e py3X-build-exe # All Optionals Will Be Installed
```
Note (Python): Replace X with Python Minor Version## Help
```bash
Table2JSON -h
```### CSV
```bash
Table2JSON csv -h
```### Excel
```bash
Table2JSON excel -h
```### MySQL
```bash
Table2JSON mysql -h
```### Neo4j
```bash
Table2JSON neo4j -h
```### SQLite
```bash
Table2JSON sqlite -h
```[Microsoft Visual Studio C++ Redistributable]: https://www.microsoft.com/en-in/download/details.aspx?id=48145
[Python 3.X]: https://www.python.org/downloads/windows/