Read music meta data and length of MP3, OGG, FLAC and Wave files
Project description
tinytag is a library for reading music meta data of MP3, OGG, FLAC and Wave files with python
Installation
To install tinytag, simply:
pip install 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.
Project details
Release history Release notifications | RSS feed
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.7.2.tar.gz.
File metadata
- Download URL: tinytag-0.7.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80ba237a4012677a7e9c7568ae070e49b79c634d27a48f8724d39bf53c121f6d
|
|
| MD5 |
c5c5e534db131184c41f3fb13ff76223
|
|
| BLAKE2b-256 |
9ba126272bb279da7051684b8d10cf06d70a40f6c9d828c59302508927675a39
|