tinytag is a library for reading music meta data of MP3, OGG, FLAC and Wave files with python
[](https://travis-ci.org/devsnd/tinytag) [](https://coveralls.io/r/devsnd/tinytag)
- Features:
Read tags and length of music files
supported formats * MP3 (ID3 v1, v1.1, v2.2, v2.3+) * Wave * OGG * FLAC
pure python
supports python 2 and 3 (without 2to3)
is tested
Just a few hundred lines of code (just include it in your project!)
tinytag only provides the minimum needed for _reading_ MP3, OGG, FLAC and Wave meta-data. It can determine track number, total tracks, title, artist, album, year, duration and more.
from tinytag import TinyTag tag = TinyTag.get(‘/some/music.mp3’) print(‘This track is by %s.’ % tag.artist) print(‘It is %f seconds long.’ % tag.duration)
List of possible attributes you can get with TinyTag:
tag.album # album as string tag.artist # artist name as string tag.audio_offset # number of bytes before audio data begins tag.bitrate # bitrate in kBits/s tag.duration # duration of the song in seconds tag.filesize # file size in bytes tag.samplerate # samples per second tag.title # title of the song tag.track # track number as string tag.track_total # total number of tracks as string tag.year # year or data as string
supported python versions:
2.6
2.7
3.2
3.3
pypy
and possibly more.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tinytag-0.6.1.tar.gz.
File metadata
- Download URL: tinytag-0.6.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
931912347d9c541d7ff458bfa3651f54e472de82877ed73832bba566c091896e
|
|
| MD5 |
46a7de8a63ce311f178d69dd0b5f40c2
|
|
| BLAKE2b-256 |
565bd5f5ed611ce956119846d66b9b0331108f710b804dcc29b0c04f4288c980
|