Skip to main content

Read, write, and manipulate GP3, GP4 and GP5 files.

Project description

PyPI Package latest release

Introduction

PyGuitarPro is a package to read, write and manipulate GP3, GP4 and GP5 files. Initially PyGuitarPro is a Python port of AlphaTab which originally was a Haxe port of TuxGuitar.

This package helps you achieve several goals you might find yourself yearning to do in a day-to-day tabber life:

  • Transpose a track without messing the fingering

  • Add the first string to the track without messing the fingering

  • Map percussion notes to different values

Reading .gp* files is as easy as:

import guitarpro
curl = guitarpro.parse('Mastodon - Curl of the Burl.gp5')

Writing .gp* files isn’t that hard either:

guitarpro.write(curl, 'Mastodon - Curl of the Burl 2.gp5')

All objects representing GP entities are hashable and comparable. This gives a great opportunity to apply the diff algorithm to tabs, or even the diff3 algorithm to merge tablatures.

For those looking to create the best guitar tablature editor in Python, this package is a good place to start.

Examples

Several usage examples are included in the /examples folder. Feel free to add your own examples or improve existing ones. Then, submit them via pull request.

To run one of the examples in your local environment, simply:

cd PyGuitarPro
uv run examples/transpose.py --help

Installation

Install PyGuitarPro from PyPI:

pip install PyGuitarPro

Documentation

Package documentation is located at Read the Docs.

Development

Install the development version of PyGuitarPro with uv:

git clone https://github.com/Perlence/PyGuitarPro.git
cd PyGuitarPro
uv sync

Run the tests:

uv run pytest

Install the pre-commit hook:

uv run pre-commit install

Licensing

Please see the file called LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyguitarpro-0.10.tar.gz (94.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyguitarpro-0.10-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

Details for the file pyguitarpro-0.10.tar.gz.

File metadata

  • Download URL: pyguitarpro-0.10.tar.gz
  • Upload date:
  • Size: 94.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for pyguitarpro-0.10.tar.gz
Algorithm Hash digest
SHA256 b64a54cfc36736c4e5e1e819bb9fc0d9a2f580983cec2ac5c39f75d58561aeb0
MD5 5d2a7a18345ebfe0e4b68e6bf9d9e69d
BLAKE2b-256 a4e6965d1fc88ba6c288912c6099f53f6060d1c17efdbd24cd3fe7279aec1610

See more details on using hashes here.

File details

Details for the file pyguitarpro-0.10-py3-none-any.whl.

File metadata

  • Download URL: pyguitarpro-0.10-py3-none-any.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for pyguitarpro-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 3528c26a770839f0ff13cb7ddc960ab3a7090aff8a105d3035695de57b35159f
MD5 f3469f3bfb3a1b60ee48426ddd2eb609
BLAKE2b-256 3addc14c257e7f198aea960ed51db6c5e9560e4c2c79c150ec448d643a690acf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page