ID3 data editor
This Python package allows to access ID3 tags in MP3 files. There are the usual operations such as set, get, update, delete.
Supported ID3 versions:
1.x
2.2
2.3
2.4
Usage
from mp3_tagger import MP3File, VERSION_1, VERSION_2, VERSION_BOTH
# Create MP3File instance.
mp3 = MP3File(path_to_mp3)
# Get/set/del tags value.
alb = mp3.album
mp3.album = 'some title..'
del mp3.album
"""
Allowed tags:
- artist;
- album;
- song;
- track;
- comment;
- year;
- genre;
- band (version 2.x);
- composer (version 2.x);
- copyright (version 2.x);
- url (version 2.x);
- publisher (version 2.x).
"""
# Get all tags.
tags = mp3.get_tags()
print(tags)
"""
Output:
{'ID3TagV1': {'song': 'Prowler', 'artist': 'Iron Maiden', 'album': 'Iron Maiden',
'year': '1980', 'comment': None, 'track': 1, 'genre': 'Other'},
'ID3TagV2': {'artist': 'Iron Maiden', 'band': 'Iron Maiden', 'album': 'Iron Maiden',
'song': 'Prowler', 'track': '1/9', 'genre': 'Heavy Metal', 'year': '1980'}}
"""
# By default selected tags in both versions.
mp3.set_version(VERSION_BOTH)
# Change to 2.x version.
mp3.set_version(VERSION_2)
# For 1.x version
mp3.set_version(VERSION_1)
# After the tags are edited, you must call the save method.
mp3.save()
Metadata
Release files for mp3-tagger 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mp3-tagger-1.0.tar.gz | 9.0 kB | Without provenance | Details for mp3-tagger-1.0.tar.gz |
Release files / mp3-tagger-1.0.tar.gz
| Download URL | mp3-tagger-1.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05cbe93f5cb7c71ff920b4923120e95a898f27d0a6b20d55365041b5b81c49c3
|
|
BLAKE2b-256 checksum How to use checksums |
b68dc05b107c32880c1018100bb7dea663cc3e8186fe1a2d289a7d4aabd57d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mp3-tagger 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.