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.1.tar.gz
(11.2 kB
view details)
Built Distribution
File details
Details for the file liquichange-0.2.1.tar.gz
.
File metadata
- Download URL: liquichange-0.2.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38266c54e10c1dc5c130950f4b463d2090840271297d15b5789775f2883020b5 |
|
MD5 | 0b5c8a05504bec664ded8d9455b14a20 |
|
BLAKE2b-256 | 07e17b9381714dd432fa617aecc06146df5f95dadf0526816b02417a75b450ba |
File details
Details for the file liquichange-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: liquichange-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d857b20b911e7a665440adc2c2c2bfcfced0797c350d317e554956fe2f04db6 |
|
MD5 | 4756953c4e5388cfe9b5e0dbd3d72e55 |
|
BLAKE2b-256 | b05348e94199ea0603d6b39e1761e12cc5ebad0c04142fc1c0307d45dc7f657d |