Join Us and become a Member for a Verified Badge on Discord to access private areas with the latest PS4 FPKGs.
PS Vita CFW and Hacks       Thread starter PSXHAX       Start date Sep 28, 2017 at 2:41 AM       4,911       0      
Last week we reported on the .PSV ROM Format followed by some PS Vita Decrypters, and recently PlayStation Vita developer @kageurufu made available PSVTools which is a Python .psv format manipulator and verification toolset to trim, restore and validate PSV files. ;)

Download: psvtools-0.1.0.tar.gz / GIT

To quote from kageurufu via Reddit: I'm officially releasing 0.1.0 of my psvtools suite.

Its open source, python 2.7 and 3.4+ compatible, unit tested, and I've been using for a few days now for my own backups:

There's not a lot there, but that's a good thing in my opinion.

To install, get python for your operating system. I believe OSX comes with 2.7 as of this writing. Most linux distributions include some form of python.
pip install psvtools
You'll get 4 command line utilities from this:
usage: psvtools [-h] [-t | -e | -v] [-o OUTPUT] file

positional arguments:
  file                  psv file to operate on

optional arguments:
  -h, --help            show this help message and exit
  -t, --trim            Trim a psv file. This is the default behavior
  -e, --expand          Expand a trimmed psv file
  -v, --verify          Validate the checksum of a psv file
  -o OUTPUT, --output OUTPUT
                        output file to write to

usage: psvexpand [-h] [-o OUTPUT] file
usage: psvtrim [-h] [-o OUTPUT] file
usage: psverify [-h] file
I've rigorously tested these, and trimming and expanding should yield byte-identical output files.
PSVTools PSV File Trimmer and Validation Toolset by Kageurufu.jpg