Skip to content

EmperorArthur/par2py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Par2Py

MIT Licensed par2 parser / A Python framework for interacting with Par2 files

Par2 is a file format for using Reed-Solomon Coding to perform file recovery operations using "blocks" of recovery data.

#Rationale While working on a QR code based backup solution, I found myself wanting additional redundancy. Which is where Par2 comes in. Par2 is a great system with many advantages:

  • Everything is in "packets", with extremely easy to decode headers.
  • Packet headers are easy to find, with their "magic" values ?guaranteed? to only show up there.
  • Any amount of padding (including random data) is allowed between packets.
  • Provided that enough redundancy exists, a missing file can be completely reconstructed.

To increase the likelihood of file recovery I found myself needing to perform byte alignment on individual packets. There were other reasons as well, but this led to creating a par2 parser, and I decided that it would be worth it as a standalone program.

References:

Note that you can recover everything in the second link easily from any "vol...par2" file.

Other (similar) projects:

About

MIT Licensed par2 parser / A Python framework for interacting with Par2 files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages