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.2.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liquichange-0.2.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file liquichange-0.2.2.tar.gz.

File metadata

  • Download URL: liquichange-0.2.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for liquichange-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f73b34c2fa5f1486b9c53c12d4da973355b8b251f4996d7296502bd3059d7073
MD5 2f1ef25945e92a5a25c29307c552fbea
BLAKE2b-256 f9e496715a633e9f43e6d33ccea4e2623878e1559d929d32aca13470bf3f0d3a

See more details on using hashes here.

File details

Details for the file liquichange-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: liquichange-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for liquichange-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dc357096a6b42aa2f35fb70526a8945ede63b1d6441c88e2031b5a73a8f7b3
MD5 dd1e9f36684854a5c9cdc84488ef7a0e
BLAKE2b-256 16768a42ffa11313d85603f815fff4becca9fad55a1d95f604a951a35ad011fa

See more details on using hashes here.

Supported by

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