Skip to main content

Build and modify Liquibase changelogs in Python.

Project description

liquichange

Build and modify Liquibase changelogs in Python.

Installation

$ pip install liquichange

Usage

liquichange can be used to generate Liquibase XML changelogs as follows:

from liquichange.changelog import Changelog, Changeset, CypherChange

# instantiate Changelog
changelog = Changelog()

# add Changeset with change_type neo4j:cypher to Changelog
changeset = Changeset(
  id="42",
  author="Nelson",
  change_type=CypherChange(
    text="MERGE (:property {handle: 'fastq_name', model: 'GDC'})"
  )
)
changelog.add_changeset(changeset)

# write changelog to XML file
file_path = "path/to/file.xml"
changelog.save_to_file(
  file_path=file_path,
  encoding="UTF-8"
)

License

liquichange is licensed under the terms of the the Apache 2.0 license.

LIQUIBASE is a registered trademark of Liquibase, INC. Liquibase Open Source is released under the Apache 2.0 license.

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

liquichange-0.2.1.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

liquichange-0.2.1-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page