Metadata-Version: 2.4
Name: hanaflow
Version: 0.1.1
Summary: Upload datasets to SAP HANA, auto-generate REST APIs and query with LLM
Author-email: Your Name <your@email.com>
License: MIT
Project-URL: Homepage, https://github.com/your-username/hanaflow
Project-URL: Repository, https://github.com/your-username/hanaflow
Keywords: SAP HANA,machine learning,data upload,CLI,REST API,LLM,hdbcli
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Database
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: typer[all]>=0.12
Requires-Dist: hdbcli>=2.19
Requires-Dist: pandas>=2.0
Requires-Dist: openpyxl>=3.1
Requires-Dist: pyarrow>=14.0
Requires-Dist: fastapi>=0.111
Requires-Dist: uvicorn[standard]>=0.29
Requires-Dist: pyngrok>=7.0
Requires-Dist: python-dotenv>=1.0
Requires-Dist: openai>=1.30
Requires-Dist: rich>=13.0
Requires-Dist: tabulate>=0.9
Requires-Dist: langchain>=0.2
Requires-Dist: langchain-google-genai>=1.0

\# 🌊 hanaflow



> Upload any dataset to SAP HANA Cloud in one command — then query it with LLM.



\## Installation

```bash

pip install hanaflow

```



\## Quick Start



\### 1. Configure credentials

Create a `.env` file:

```env

HANA\_HOST=your-host.hanacloud.ondemand.com

HANA\_PORT=443

HANA\_USER=DBADMIN

HANA\_PASSWORD=your-password

HANA\_ENCRYPT=true

LLM\_API=your-gemini-api-key

LLM\_MODEL=gemini-2.0-flash

```



\### 2. Test connection

```bash

hanaflow ping

```



\### 3. Upload a dataset

```bash

hanaflow upload-cmd --file sales\_data.csv

```



\### 4. Get an LLM summary of your data

```bash

hanaflow summary --file sales\_data.csv

```



\### 5. Ask questions about your data

```bash

hanaflow ask --file sales\_data.csv --question "What is the average price by city?"

```



\## Supported File Formats

| Format | Extension |

|--------|-----------|

| CSV | `.csv` |

| Excel | `.xlsx` / `.xls` |

| JSON | `.json` |

| Parquet | `.parquet` |



\## CLI Commands

| Command | Description |

|---------|-------------|

| `hanaflow ping` | Test SAP HANA connectivity |

| `hanaflow upload-cmd` | Upload data file to SAP HANA |

| `hanaflow summary` | Generate LLM summary of dataset |

| `hanaflow ask` | Ask natural language questions about data |



\## Built With

\- \[hdbcli](https://pypi.org/project/hdbcli/) — SAP HANA Python Client

\- \[LangChain](https://python.langchain.com/) — LLM framework

\- \[Google Gemini](https://aistudio.google.com/) — LLM provider

\- \[Typer](https://typer.tiangolo.com/) — CLI framework

\- \[FastAPI](https://fastapi.tiangolo.com/) — REST API (coming soon)



\## License

MIT

