Upload datasets to SAP HANA, auto-generate REST APIs and query with LLM
Project description
# 🌊 hanaflow
Upload any dataset to SAP HANA Cloud in one command — then query it with LLM.
## Installation
pip install hanaflow
## Quick Start
### 1. Configure credentials
Create a .env file:
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
hanaflow ping
### 3. Upload a dataset
hanaflow upload-cmd --file sales\_data.csv
### 4. Get an LLM summary of your data
hanaflow summary --file sales\_data.csv
### 5. Ask questions about your data
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hanaflow-0.1.2.tar.gz.
File metadata
- Download URL: hanaflow-0.1.2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101371833b471a1bb86d781322fd31480de9667681df691e7e635957a93f702f
|
|
| MD5 |
8145af617932506a73c412a3d9da21f0
|
|
| BLAKE2b-256 |
7196e482ea9ee13d584bb24615c7c27d634bcfbd8c56f0e7c45a9c574cfcfbe4
|
File details
Details for the file hanaflow-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hanaflow-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
820987dae0eeaae721306bf533a045170bdead52c1f9d457bfe1f936669dbda6
|
|
| MD5 |
4ca5633c1bcda422f6909f28756d8343
|
|
| BLAKE2b-256 |
43b3bcad01c572c6260c94f135ecd52ace7221f27e32d743c0f4ba7c6a9defeb
|