Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hanaflow-0.1.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hanaflow-0.1.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file hanaflow-0.1.1.tar.gz.

File metadata

  • Download URL: hanaflow-0.1.1.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

Hashes for hanaflow-0.1.1.tar.gz
Algorithm Hash digest
SHA256 771d55ee718699538260e197c9dbaaf5703714435808b97e54251657f024ed02
MD5 d46d3a709c78415130e9b0694d651126
BLAKE2b-256 1ebb0a7d48a3a8b3b0e3c7bffbd354cfea8d47cea8bb09e3ce1f7f5a8561d17a

See more details on using hashes here.

File details

Details for the file hanaflow-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hanaflow-0.1.1-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

Hashes for hanaflow-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ef738fa346f10be46bc09a1aa4fdbbf0c642e8d5d8668863a9dbdd8224865fe
MD5 416b1693bdf265c6da92d0d0957ec037
BLAKE2b-256 a9375827ac76e77f17928f09eaffcc183b2d6e3c7ff85765cb7b3a99e4878d0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page