Skip to main content

Creating binary patch files containing changes in the directory

Project description

Creating binary patch files containing changes in the directory

Simple usage :

root_dir = os.path.abspath(".tmp")
patch_file="new.patch"
# Get snapshot metadata of folder
state1 = GetState(root_dir)

# change files

# Get snapshot metadata of folder after changes
state2 = GetState(root_dir)

# Calculate diff
diff = GetDiff(state1, state2)

# Create patch file
CreatePatch(root_dir, patch_file, diff)  

# Apply patch file
ApplyPatch(root_dir, patch_file)

Source Code:

Travis CI Deploys:

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

stateman-1.0.6.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

stateman-1.0.6-py3-none-any.whl (3.3 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