After the package has been installed, it’s ready for hacking.
.gp* files is as easy as:
import guitarpro curl = guitarpro.parse('Mastodon - Curl of the Burl.gp5')
.gp* files isn’t that hard as well:
guitarpro.write(curl, 'Mastodon - Curl of the Burl 2.gp5')
All objects representing GP entities are hashable and comparable. This gives the great opportunity to apply diff algorithm to tabs, or even diff3 algorithm to merge tablatures.
The package is also designed to convert tablatures between formats. To do this, simply change extension of the output file according to your desired format:
guitarpro.write(curl, 'Mastodon - Curl of the Burl.gp4')
from urllib.request import urlopen stream = urlopen('https://github.com/Perlence/PyGuitarPro/raw/develop/tests/Mastodon%20-%20Curl%20of%20the%20Burl.gp5') curl = guitarpro.parse(stream)
PyGuitarPro supports only GP3, GP4 and GP5 files. Support for GPX (Guitar Pro 6) files is out of scope of the project.