Turn any excel or csv into a sqlite database, while you see what you are doing.
Project description
migrador
Migrate Excel/CSV data into a SQLite table — interactively via a TUI, or in one command.
Usage
TUI
Launch without arguments to open the interactive TUI:
migrador
Use the TUI to configure your migration and optionally save it as a JSON config file for later reuse.
One-liner
Run a saved migration config non-interactively:
migrador --input data.xlsx --database mydb.db --config migration.json --mode append
Options
| Option | Description |
|---|---|
--input |
Path to the Excel or CSV file |
--database |
Path to the SQLite database |
--config |
Path to the migration JSON (created via the TUI) |
--mode |
append, replace, or upsert |
--join-col |
Column to upsert on (required when --mode=upsert) |
As a library
from migrador import ExcelMigrator
import sqlite3
migrator = ExcelMigrator("data.xlsx", header_row=1, start_col="A")
print(migrator.columns())
conn = sqlite3.connect("mydb.db")
rows = migrator.to_sqlite({"A": "tag", "B": "description"}, conn, "my_table")
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 migrador-0.1.1.tar.gz.
File metadata
- Download URL: migrador-0.1.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09122c2ed782412150a9afbc99dbcda35275e05ebb35b95df9eeb6d58b65e02c
|
|
| MD5 |
73ceda82aeef1913daf10cb8a0306ed9
|
|
| BLAKE2b-256 |
3531f9212277fabd2fa65c5369ca928ead5b0aec51c4ff9692f0556e9d2cf495
|
File details
Details for the file migrador-0.1.1-py3-none-any.whl.
File metadata
- Download URL: migrador-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f84cc7b5dcd0824cc36c35bac118d1a585cd78e1383ef91c583d1b9ad36a0ff2
|
|
| MD5 |
d8185a3ef537a5430587c7c39f5fa233
|
|
| BLAKE2b-256 |
98328812f7b5059a93c01b1ddc07935058362f39782f9797791d3398a535727d
|