Skip to main content

MP3 tag information reader and writer.

Project description

mp3tag

本 repo 提供一个支持读取、修改 mp3 标签信息的工具,关于 mp3 标签信息的内容,使用Python读取Mp3的标签信息 做了初步的介绍。

Tools for read and modify mp3 tag information, you can search wiki to know more about "Identity of MP3".

特性

  • 支持读取某个文件夹下 mp3 文件的 idv3 信息
  • 输出统一为 utf-8 编码

Feature

  • Read mp3 idv3 information under specific folder
  • output attribute information in utf-8

Requirement

  • chardet

Usage

from mp3tag import musictag

music_path = '/Users/shiqiang/Downloads/old_mbp_files/OldMBP-Music/'

# mpt = mp3tag()
# mpt.get_version()
musictag.analyze_folder(music_path)

Result

$ python3 examples/tag_example.py
{'title': None, 'artist': 'Pure Music', 'album': 'นลตไร๛ว๚', 'year': b'', 'comment': b'', 'genre': 0}
{'title': 'And One', 'artist': 'Linkin Park', 'album': 'Underground 1.0', 'year': b'', 'comment': b'', 'genre': 0}

Release Notes

  • 0.0.4 : little fix, reimport chardet
  • 0.0.3 : Rename module name, modify example and readme

Reference

Project details


Download files

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

Source Distribution

mp3tag-0.0.4.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

mp3tag-0.0.4-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file mp3tag-0.0.4.tar.gz.

File metadata

  • Download URL: mp3tag-0.0.4.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for mp3tag-0.0.4.tar.gz
Algorithm Hash digest
SHA256 05a9040f2ab445f8aa32933b767840ccc35c98fded32335dcf209a2f47afcadf
MD5 5caeb7d9c681695937f102ccae312525
BLAKE2b-256 40f4314f8d9337e53ac36ec22246ab7dd9c6743b0cfabd7be12d0649c3f41bb9

See more details on using hashes here.

File details

Details for the file mp3tag-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: mp3tag-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for mp3tag-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb8504abb5debaa8254b5dc9476060479c97cc64cf5ec9fc47859945009e087
MD5 65ce036f66aa02334613c5ec765ab041
BLAKE2b-256 11bbf4e5ed77a183ff8d10c977410aaa666e0a2938c9658a95defdfdda292e0a

See more details on using hashes here.

Supported by

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