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
Release history Release notifications | RSS feed
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.0.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for liquichange-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0400d9f9de6827506e9ce1af4b6a7c4a81ce5f46494aea4141e1f96637a2238e |
|
MD5 | 753f3b3da7577ab5f224be29b51c5619 |
|
BLAKE2b-256 | 150f4c4844fbb5ef7025a32937c2dfdd2ebacb14eb8a52748a69fe4ccbe073f1 |