Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

TagPy

PyPI Coverage Status

TagPy is a a set of Python bindings for Scott Wheeler's TagLib. It builds upon Boost.Python, a wrapper generation library which is part of the Boost set of C++ libraries.

Just like TagLib, TagPy can:

  • read and write ID3 tags of version 1 and 2, with many supported frame types for version 2 (in MPEG Layer 2 and MPEG Layer 3, FLAC and MPC),
  • access Xiph Comments in Ogg Vorbis Files and Ogg Flac Files,
  • access APE tags in Musepack and MP3 files.
  • access ID3 version 2 tags in WAV files

All these have their own specific interfaces, but TagLib's generic tag reading and writing mechanism is also supported.

You can find examples in the test/ directory.

Installing TagPy

If you're lucky (Python 3.9-3.13 on x86 Linux currently), you can probably just run pip install tagpy which will use the precompiled wheels. If this fails due to compilation issues, you'll need to install some things first.

  • Debian: apt-get install libboost-python-dev libtag1-dev
  • Fedora: dnf install boost-python3-devel taglib-devel
  • Alpine 3.17: apk add taglib-dev boost1.80-python3 (or another boost*-python3 for other alpine versions) Other setups are not currently supported, but patches with CI checking for others are welcomed.

TagPy works with

  • TagLib >=1.9 (all versions up to 2.0.2 currently tested)
  • Boost.Python 1.74
  • gcc 10.2.1

Slightly older versions of gcc and Boost.Python should be fine, but the 1.9 requirement for TagLib is firm. Anything newer is probably ok, and please file bugs for anything that fails.

Using TagPy

Using TagPy is as simple as this:

>>> import tagpy
>>> f = tagpy.FileRef("la.mp3")
>>> f.tag().artist
u'Andreas'

The test/ directory contains a few more examples.

In general, TagPy duplicates the TagLib API, with a few notable exceptions:

  • Namespaces (i.e. Python modules) are spelled in lower case. For example, TagLib::Ogg::Vorbis is now taglib.ogg.vorbis.

  • Enumerations form their own scope and are not part of any enclosing class scope, if any.

    For example, the value TagLib::String::UTF16BE from the enum TagLib::String::Type is now tagpy.StringType.UTF16BE.

  • TagLib::String objects are mapped to and expected as Python unicode objects.

  • TagLib::ByteVector objects are mapped to regular Python string objects.

Release files for tagpy 2025.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for tagpy 2025.1
File Size Uploaded
tagpy-2025.1.tar.gz 143.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for tagpy 2025.1
File
tagpy-2025.1-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details
tagpy-2025.1-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
tagpy-2025.1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
tagpy-2025.1-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details
tagpy-2025.1-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details
tagpy-2025.1-cp39-cp39-manylinux_2_34_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.34+ x86-64 Details

Total release size: 33.2 MB

Release files / tagpy-2025.1.tar.gz

Download URL tagpy-2025.1.tar.gz
Size 143.9 kB
Tags Source
SHA-256 checksum
How to use checksums
def366568dd0a96845dd27e2e3ae1c1c506c68ded863b2c4bf224f0f91a0704d
BLAKE2b-256 checksum
How to use checksums
470c862803814efed6c829520778533a58a9f6ed8683f1420c5e7773a95a8a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / tagpy-2025.1-cp314-cp314-manylinux_2_34_x86_64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL tagpy-2025.1-cp314-cp314-manylinux_2_34_x86_64.whl
Size 5.8 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
df552f7a683633eb96a2e2c292a406df6f1bc43eb194d66dfd60de78ba205897
BLAKE2b-256 checksum
How to use checksums
30d4daf3e77911de9075326213f093946e6a0605cc91450d3bd79221b2344c80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / tagpy-2025.1-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL tagpy-2025.1-cp313-cp313-manylinux_2_34_x86_64.whl
Size 5.4 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
a29d3a2a05ce20470662428eec1f107b6e78dd4eeb50af419e4c37ed0f67da21
BLAKE2b-256 checksum
How to use checksums
b57f5460b01cc3d3d2232f1df0939e7c8e502023d82e5c1ea86a8fec40b2dd36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / tagpy-2025.1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL tagpy-2025.1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 5.4 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
66434b5578812037ea7cdb8cdf62b9f7cd22e63a180141b9262adf70e38087e3
BLAKE2b-256 checksum
How to use checksums
100d3a5e17de31410c26201d2370bb04a0150ae5cc9321dc8d2249b7fbb42243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / tagpy-2025.1-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL tagpy-2025.1-cp311-cp311-manylinux_2_34_x86_64.whl
Size 5.5 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
a41e524c2a6fe71814bf26a89d5f37d5c95d1864d33f4e92ce6aae0cbfcc1384
BLAKE2b-256 checksum
How to use checksums
6f752761e507aba4872de5a3415b18b36ab7e435c27039c2a7cafbe3868df873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / tagpy-2025.1-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL tagpy-2025.1-cp310-cp310-manylinux_2_34_x86_64.whl
Size 5.5 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
07a1fc5e4a361523b2ed9e7fbd9613b7fdd793bc46b3b1053a370a72de1075a0
BLAKE2b-256 checksum
How to use checksums
9d1d816a0742d576d404432223b6edb16aac5ea9ec8bf5cd96338c17e36d1f70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release files / tagpy-2025.1-cp39-cp39-manylinux_2_34_x86_64.whl

Download URL tagpy-2025.1-cp39-cp39-manylinux_2_34_x86_64.whl
Size 5.5 MB
Tags CPython 3.9 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
d37941a068fb8c14ff91da1e0210d607c7e00023b63870255fc8de5ebed5cfc7
BLAKE2b-256 checksum
How to use checksums
a33914afee09cfa67b01d6d42f533e83c02cbdda22d758e5e4a740ebd1f62a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

2025.1 This release

7 release files

2018.1

1 release file

2013.1

1 release file

0.94.8

1 release file

0.94.7

1 release file

0.94.6

1 release file

0.94.5

1 release file

0.94.4

1 release file

0.94.3

1 release file

0.94.2

1 release file

0.94.1

1 release file

0.94

1 release file

0.93

0.91

0.90.1

0.90

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page