Skip to main content

A Tool For Transferring Data, Tables, And Datasets Between Different Databases.

Project description

𝐏𝐲-𝐀𝐮𝐭𝐨-𝐌𝐢𝐠𝐫𝐚𝐭𝐞

A powerful database migration tool to transfer data (e.g., between MongoDB and MySQL or PostgreSQL and MySQL), with automatic table/database creation, existence checks, and support for full database migrations.

PyPI GitHub Repo Stars Forks Issues Pull Requests Releases


Installation

pip install py-auto-migrate

Download CLI

If you don’t have Python, or you want to use it with the CLI (Shell), you can download the dedicated PAM-CLI from the Releases on GitHub epository.


Help

py-auto-migrate --help

This command displays a detailed guide on how to use the package, including available commands, arguments, and examples. It’s the best place to start if you want to quickly understand how to work with py-auto-migrate.


Usage

Command Line Interface (CLI)

py-auto-migrate migrate --source <source_uri> --target <target_uri> --table <table_name>

--source :Source database URI (e.g., mysql://user:pass@host:3306/dbname)

--target :Target database URI (e.g., mongodb://localhost:27017/mydb)

--table (optional):Specific table/collection to migrate. If omitted, all tables/collections will be


Example

py-auto-migrate migrate --source "mongodb://localhost:27017/mydb" --target "mongodb://localhost:27017/mydb2"
py-auto-migrate migrate --source "mongodb://localhost:27017/mydb" --target "mysql://root:1234@localhost:3306/mydb" --table users

You can also use MongoDB → MongoDB or PostgreSQL → PostgreSQL


Database Support

  • MySQL
  • MongoDB
  • PostgreSQL
  • MariaDB
  • SQL Server
  • SQLite

Future Plans

  • Add support for creating indexes on tables/collections to improve query performance.
  • Support for more databases: Add migrations for Oracle.

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

py-auto-migrate-0.2.0.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file py-auto-migrate-0.2.0.tar.gz.

File metadata

  • Download URL: py-auto-migrate-0.2.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for py-auto-migrate-0.2.0.tar.gz
Algorithm Hash digest
SHA256 07988471464fc4550d12a36558debdb41d9519b860baad62a4c0f9fad8310a93
MD5 7441c9a69070deaa61fb3efb3a854fdd
BLAKE2b-256 936e06faac3d067d3ab75a29e047997f1521f2aea6be71ef9fd2fb421b585253

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