Skip to content

Commit bbff7b1

Browse files
Add mcp subcommand + fix pyproject.toml structure
- Add mcp command for MCP server integration with click-to-mcp - Fix pyproject.toml: move dependencies under [project] to fix build
1 parent 1fc6755 commit bbff7b1

6 files changed

Lines changed: 66 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ requires-python = ">=3.10"
1111
license = "MIT"
1212
authors = [{name = "Revenue Holdings"}]
1313

14+
dependencies = [
15+
"typer>=0.9.0",
16+
"rich>=13.0.0",
17+
]
18+
1419
[project.urls]
1520
Homepage = "https://github.com/Coding-Dev-Tools/json2sql"
1621
Repository = "https://github.com/Coding-Dev-Tools/json2sql"
1722
Documentation = "https://github.com/Coding-Dev-Tools/json2sql#readme"
1823
"Issue Tracker" = "https://github.com/Coding-Dev-Tools/json2sql/issues"
1924

20-
dependencies = [
21-
"typer>=0.9.0",
22-
"rich>=13.0.0",
23-
]
24-
2525
[project.optional-dependencies]
2626
dev = ["pytest>=7.0", "pytest-cov"]
2727

src/json2sql.egg-info/PKG-INFO

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ Name: json2sql
33
Version: 0.1.0
44
Summary: Convert JSON files/datasets to SQL INSERT statements
55
Author: Revenue Holdings
6-
License: MIT
6+
License-Expression: MIT
7+
Project-URL: Homepage, https://github.com/Coding-Dev-Tools/json2sql
8+
Project-URL: Repository, https://github.com/Coding-Dev-Tools/json2sql
9+
Project-URL: Documentation, https://github.com/Coding-Dev-Tools/json2sql#readme
10+
Project-URL: Issue Tracker, https://github.com/Coding-Dev-Tools/json2sql/issues
711
Requires-Python: >=3.10
812
Description-Content-Type: text/markdown
913
Requires-Dist: typer>=0.9.0
@@ -14,9 +18,15 @@ Requires-Dist: pytest-cov; extra == "dev"
1418

1519
# json2sql
1620

17-
Convert JSON files/datasets to SQL INSERT statements. Supports nested JSON (flattens to relational tables), PostgreSQL, MySQL, and SQLite output dialects.
21+
Convert JSON files and datasets to SQL INSERT statements. Supports nested JSON, PostgreSQL, MySQL, and SQLite output dialects.
1822

19-
## Install
23+
[![PyPI](https://img.shields.io/pypi/v/json2sql)](https://pypi.org/project/json2sql/)
24+
[![Python](https://img.shields.io/pypi/pyversions/json2sql)](https://pypi.org/project/json2sql/)
25+
[![License](https://img.shields.io/pypi/l/json2sql)](https://github.com/Coding-Dev-Tools/json2sql/blob/main/LICENSE)
26+
27+
**Why json2sql?** Moving data from JSON into a database should be one command, not a script you maintain. json2sql takes JSON files — flat or nested — and produces correct SQL INSERT statements in your dialect of choice. Nested objects are automatically flattened into relational tables. Arrays become multiple INSERT rows. Type inference handles strings, numbers, booleans, and nulls without configuration. Pipe data from stdin, specify the table name, and get clean SQL out. Zero dependencies beyond Python 3.10+ and the CLI.
28+
29+
## Installation
2030

2131
```bash
2232
pip install json2sql
@@ -25,7 +35,7 @@ pip install json2sql
2535
## Quick Start
2636

2737
```bash
28-
# Basic usage - converts JSON to SQL INSERT statements
38+
# Basic usage converts JSON to SQL INSERT statements
2939
json2sql convert data.json
3040

3141
# Specify output dialect
@@ -52,8 +62,51 @@ json2sql convert nested_data.json --flatten
5262
- **Pipe support**: Read from stdin for pipeline usage
5363
- **Zero dependencies**: Only Python 3.10+ required (typer for CLI)
5464

55-
## Revenue
65+
## CI/CD Integration
66+
67+
```bash
68+
# Generate SQL as part of a data pipeline
69+
cat data.json | json2sql convert --dialect postgres --table events > events.sql
70+
71+
# Use in GitHub Actions to prepare test data
72+
json2sql convert fixtures.json --dialect sqlite -o seed.sql
73+
sqlite3 test.db < seed.sql
74+
```
75+
76+
## Pricing
77+
78+
One license covers all Revenue Holdings CLI tools. Pricing is per-seat.
79+
80+
| Tier | Price | Best For |
81+
|------|-------|----------|
82+
| **Open Source** | $0 | Individual devs, OSS projects — CLI only, limited rows |
83+
| **Pro** | **$29/mo** ($23 billed annually) | Professional devs — unlimited rows, batch processing |
84+
| **Team** | **$79/mo** ($63 billed annually) | Teams up to 5 — API access, CI/CD integration, priority support |
85+
| **Enterprise** | **$199/mo** (custom) | Organizations — compliance reports, RBAC, SSO, SLA |
86+
87+
🔹 **No lock-in**: CLI works fully offline on the free tier — no telemetry, no phone-home.
88+
🔹 **Annual billing**: Save 20%.
89+
90+
### Per-Tier Features
91+
92+
| Feature | OSS | Pro | Team | Enterprise |
93+
|---------|:---:|:---:|:----:|:----------:|
94+
| CLI: convert, pipe | ✓ | ✓ | ✓ | ✓ |
95+
| Unlimited rows per conversion | — | ✓ | ✓ | ✓ |
96+
| Batch processing | — | ✓ | ✓ | ✓ |
97+
| Schema generation | — | ✓ | ✓ | ✓ |
98+
| API access | — | — | ✓ | ✓ |
99+
| Compliance reports | — | — | — | ✓ |
100+
| RBAC | — | — | — | ✓ |
101+
| SSO / SAML / OIDC | — | — | — | ✓ |
102+
| Priority support | Community | 24h | 8h | Dedicated |
103+
104+
---
105+
106+
<p align="center">
107+
<sub>Part of <a href="https://coding-dev-tools.github.io/revenueholdings.dev/">Revenue Holdings</a> — CLI tools built by autonomous AI.</sub>
108+
</p>
109+
110+
## License
56111

57-
- **Free tier**: Up to 1,000 rows per conversion
58-
- **Pro tier** ($19/mo): Unlimited rows, batch processing, schema generation
59-
- **Team tier** ($49/mo): API access, CI/CD integration, priority support
112+
MIT
269 Bytes
Binary file not shown.
3.76 KB
Binary file not shown.
9.72 KB
Binary file not shown.
4.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)