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.1.tar.gz (95.1 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.1-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyguitarpro-0.10.1.tar.gz
Algorithm Hash digest
SHA256 1b99da453395f09d4924195b568a336eeba3f083d9398626af23c869cfad5f33
MD5 c55d57ba99329668d5218f57aa5afc9a
BLAKE2b-256 b93306ef041e7af290eb113187f7dd92edbe5dd3fe3b48c7d36044d633230ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyguitarpro-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d1c0cb525dee2da8161da4c0d4493f7b6e058ac8ca6d8dc9404f374a0f9799
MD5 d1fcba5395f20014e7c6d4137475bfc4
BLAKE2b-256 727e854329b775d09c3b7ad4fcebb4467522409e2e109c04b66f1cbee998fe71

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