semvec/pypi-packages huggingface dataset:
sondesh 1.0
parse sql , compare two .sql file , generate optimization hint for your sql and various other utilities
License: MIT
Requires Python: >=3.9.0


# Project : Sondesh 

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
![Maintainer](https://img.shields.io/badge/maintainer-Koushik-blue)
[![PyPI license](https://img.shields.io/pypi/l/ansicolortags.svg)](https://pypi.python.org/pypi/ansicolortags/)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
[![Generic badge](https://img.shields.io/badge/release-1.0-green.svg)](https://shields.io/)
<br>
![logo.png](https://i.ibb.co/x596NHL/logo.png)    

## Description

Sondesh is the name of my cat . I love him very much 
so i've decided to name this project after him.

This project is all about a parser and comparator . 
Question is what it is parsing ? 
- It parse SQL statements , but only DDL statements
- It supports many sql dialects , example oracle , postgresql , sparksql , hive .. 
- There is a cli app ( cli_app.py ), it compares two DDL statements and show you the differences in terminal

![compare_result.png](https://i.ibb.co/94VWWTy/compare-result.png)

### Dependencies

* Windows 10 , Debian , BSD these are the supported platform 
* Python version >=  3.8

### Installing

* ddl_compare can be installed using pip 

```
pip install ddl-parse
```

### Usage

```python
from sondesh import ddl_parser
import pprint

result = ddl_parser.parse_from_file('/home/koushik/sample_ddl.sql')
pprint.pprint(result)
``` 

Using the CLI APP . 

1. Just Open the Terminal 
2. type sondesh
3. VOALAA !!!!! 

![logo_terminal.png](https://i.ibb.co/F67hnjf/cli-app-terminal.png)

## What Next :

1. Integration to remote file system to load .sql from there and parse it
2. Integration with data-catalogues like spark catalogue or hive metastore and compare ddl.