Skip to main content

Compute a series of operations to transform one tree into another

Project description

fladrif

Quick and dirty library to generate a "patch" transforming one tree into another. Heavily based on rstdiff by Stefan Merten.

Usage

Subclass fladrif.treediff.Adapter to connect your tree objects to the algorithm in this package.

Then, use fladrif.treediff.TreeMatcher to compute the set of operations in the patch.

Finally, you can subclass fladrif.apply.Apply to walk the operations to build a new tree.

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

fladrif-0.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

fladrif-0.2.0-py3-none-any.whl (6.4 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