Skip to content

j-ncel/ex2db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EX2DB: Excel to Database Migrator

EX2DB is a Python tool that simplifies the migration of Excel spreadsheets to databases. It supports multiple database engines and includes a Streamlit UI for visual, user-friendly migration.


What EX2DB Does?

  • ✅ Load Excel files
  • ✅ Clean and standardize column names and data types
  • ✅ Validate missing values, duplicates, and schema consistency
  • ✅ Infer SQL schema and write to SQLite, PostgreSQL, MySQL, or Oracle
  • ✅ Streamlit UI for visual migration and preview

How to Use?

Using the Streamlit app

streamlit run app.py

Then:

  1. Upload your Excel file
  2. Configure your database connection
  3. Preview cleaned data and validation reports
  4. Migrate sheets with a single click

This this the preview of EX2DB Streamlit app. EX2DB Steamlit UI Preview

The sample data shown are not real and generated only by the Faker package.


Core function 'migration' usage sample

from core.migrator import migrate

report = migrate("data.xlsx", "sqlite:///output.db")
print(report)

Each sheet in the Excel file returns a dictionary entry with:

"status": "success" or "error"
"rows": number of rows written
"columns": list of column names
"validation": summary of issues (missing values, duplicates, etc.)
"table": final table name used in the database
"message": error description (if any)

Buy Me a Coffee

About

Excel to Database Migrator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages