Skip to main content

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
image image image image

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")

Metadata

Release files for migrador 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for migrador 0.1.3
File Size Uploaded Provenance Actions
migrador-0.1.3.tar.gz 15.1 kB Without provenance Details for migrador-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for migrador 0.1.3
File Interpreter ABI Platform Actions
migrador-0.1.3-py3-none-any.whl Python 3 none any Details for migrador-0.1.3-py3-none-any.whl

Total release size: 31.0 kB

Release files / migrador-0.1.3.tar.gz

Download URL migrador-0.1.3.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
427e9aa83b2f6ac27125fc7d74197e93148b443db215f8bcfbbddb1b5e2d4c39
BLAKE2b-256 checksum
How to use checksums
249b165a4d2bc98ea451d78c431b046343df72b0806324b489bdbc10e7a1c818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / migrador-0.1.3-py3-none-any.whl

Download URL migrador-0.1.3-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41d1e106ac8fc6623e395e6e4d84069ee3fdefd82f87e711138c368763e50cfd
BLAKE2b-256 checksum
How to use checksums
b1858bd0d67a9ec1d1ae986625dd082cb8ca8dd1c8816d309e120f9c399914a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for migrador 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page