An autonomous AI data pipeline for cleaning, EDA, ML modeling, and business reporting.
Project description
InsightFlow 🚀
InsightFlow is an autonomous, end-to-end AI data pipeline designed to transform raw, messy datasets into fully trained Machine Learning models and C-Level Executive Business Reports—all with zero manual coding.
🌟 Features
- AutoFix: Automatically cleans messy data (missing values, outliers, duplicates) and normalizes columns using AI heuristics. Supports multi-sheet Excel files.
- AutoEDA: Generates stunning, dark-mode glassmorphism HTML reports with interactive
Chart.jsvisualizations and AI data insights. - AutoModel: Auto-detects target prediction columns, trains 12+ classification/regression
scikit-learnmodels, evaluates them, saves the Champion model as.joblib, and generates an interactive leaderboard. - AutoReport: Compiles all previous pipeline steps into a pristine, high-contrast HTML Executive Dashboard that features a one-click PDF Export button for business stakeholders.
⚙️ Installation
You can install InsightFlow directly via pip (if hosted on PyPI) or locally:
# To install locally from the source folder:
git clone https://github.com/yourusername/InsightFlow.git
cd InsightFlow
pip install -e .
🔑 Authentication (HuggingFace API Token)
InsightFlow uses the GLM-5.2 LLM hosted on the HuggingFace Router. You must have a HuggingFace API Token.
How to get your token:
- Go to HuggingFace Settings -> Access Tokens.
- Click "New token".
- Name it (e.g.,
InsightFlow_Token) and give it Read permissions. - Copy the token (it starts with
hf_...).
📖 Quickstart Guide
Using InsightFlow is incredibly simple. You can import modules directly:
from InsightFlow import autofix, autoeda, automodel, autoreport
# 1. Provide your token and data
HF_TOKEN = "hf_your_token_here"
data_path = "messy_sales_data.xlsx"
# 2. Automatically clean the data
clean_data = autofix(data_path, HF_TOKEN)
# 3. Generate Exploratory Data Analysis
eda_results, eda_insights = autoeda(clean_data, HF_TOKEN)
# 4. Train Models (AI auto-detects the target column!)
model_results, model_insights, trained_models = automodel(clean_data, HF_TOKEN)
# 5. Generate final C-Level PDF Business Report
autoreport(eda_results, eda_insights, model_results, model_insights, target_col="Target", hf_token=HF_TOKEN)
The "One-Liner" Ultimate Pipeline
Don't want to run steps manually? Use the integrated clean_and_analyze wrapper!
from InsightFlow.autofix import clean_and_analyze, set_hf_token
set_hf_token("hf_your_token_here")
# This one line does ALL of the above!
clean_and_analyze("raw_data.csv", run_eda=True, run_model=True, run_report=True)
☁️ Uploading to HuggingFace / PyPI
Publishing to PyPI
To share your package with the world so they can pip install insightflow:
# 1. Install build tools
pip install build twine
# 2. Build your package
python -m build
# 3. Upload to PyPI
twine upload dist/*
Hosting Privately on HuggingFace Spaces
You can host this entire workflow on HuggingFace Spaces or as a private HF Model repository:
- Create a Private Space on HuggingFace.
- Add your token to the Space Secrets as
HF_TOKEN. - Push this exact codebase using standard
git:
git remote add origin https://huggingface.co/spaces/YourUser/InsightFlow
git push origin main
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 insightflow_ai-1.0.0.tar.gz.
File metadata
- Download URL: insightflow_ai-1.0.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267993bf0acaa3b51309ce3e3b0a1e36aa2cfd81f6e274a3558c0750edb405f6
|
|
| MD5 |
f18240926869a76c595a0e07c0b8a767
|
|
| BLAKE2b-256 |
79b5302dfb774240016badbec44301fe13246bd762b74e9119c2176482cb7e3a
|
File details
Details for the file insightflow_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: insightflow_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 42.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e72952ae9221091a32cf93ba1fadf772e6d690ab2fdd22cee2bd0ec58ffdba1
|
|
| MD5 |
f73bb223410e6d3b4a24b2abf4b2feda
|
|
| BLAKE2b-256 |
59674a9cb58c3885292a99db5816f6b25534fa893ed797aef123c054a567d190
|