Using Liquibase with python

Hi all
if anyone wants to use liquibase with python its possible with pyliquibase
it has simple and direct python+java integration

install

pip install https://github.com/memiiso/pyliquibase/archive/master.zip --upgrade --user

use

from pyliquibase import Pyliquibase
if __name__ == '__main__':
    liquibase = Pyliquibase(defaultsFile="resources/liquibase.properties", logLevel="INFO")
    # call execute with arguments
    liquibase.execute("status")
    liquibase.execute("rollback", "MyTag")
    # or 
    liquibase.validate()
    liquibase.status()
    liquibase.updateSQL()
    liquibase.update()
    liquibase.rollback("MyTag")
3 Likes

That is very cool. Thanks sharing that!

Awesome!! Thank you! :slight_smile: