Python Client for Cloud Database Migration Service
Cloud Database Migration Service: makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL.
Quick Start
In order to use this library, you first need to go through the following steps:
Installation
Install this library in a virtual environment usingvenv.venv is a tool thatcreates isolated Python environments. These isolated environments can have separateversions of Python packages, which allows you to isolate one project’s dependenciesfrom the dependencies of other projects.
Withvenv, it’s possible to install this library without needing systeminstall permissions, and without clashing with the installed systemdependencies.
Code samples and snippets
Code samples and snippets live in thesamples/ folder.
Supported Python Versions
Our client libraries are compatible with all currentactive andmaintenance versions ofPython.
Python >= 3.7
Unsupported Python Versions
Python <= 3.6
If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.
Mac/Linux
python3 -m venv <your-env>source <your-env>/bin/activatepip install google-cloud-dmsWindows
py -m venv <your-env>.\<your-env>\Scripts\activatepip install google-cloud-dmsNext Steps
Read theClient Library Documentation for Cloud Database Migration Serviceto see other available methods on the client.
Read theCloud Database Migration Service Product documentation to learnmore about the product and see How-to Guides.
View thisREADME to see the full list of CloudAPIs that we cover.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-13 UTC.