Skip to content
elegant audio file tagging
Branch: master
Clone or download
Latest commit f62224f Jun 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Version bump: v0.2.0 Jun 20, 2019
test add QNumberField tests Jun 19, 2019
.gitignore Ignore the built docs Nov 27, 2016
.travis.yml Remove mp3gain Apr 24, 2019
LICENSE Initial commit! 🎉 Jun 15, 2016 Include test/ and test/rsrc in sdist Jun 2, 2019
README.rst Installation and requirements in the README Nov 27, 2016
appveyor.yml Update CI config Apr 24, 2019 add QNumberField docstrings Jun 19, 2019
setup.cfg Initial commit! 🎉 Jun 15, 2016 Version bump: v0.2.0 Jun 20, 2019
tox.ini Update CI config Apr 24, 2019


MediaFile: read and write audio files' tags in Python

MediaFile is a simple interface to the metadata tags for many audio file formats. It wraps Mutagen, a high-quality library for low-level tag manipulation, with a high-level, format-independent interface for a common set of tags.


MediaFile is available on PyPI. Install it by typing pip install mediafile. It works on Python 2.7 and Python 3.4 or later. Then:

>>> from mediafile import MediaFile
>>> f = MediaFile('Lucy.mp3')
>>> f.title
u'Lucy in the Sky with Diamonds'
>>> f.artist = 'The Beatles'


See the full documentation.


MediaFile is part of the beets project. It was originally written by Adrian Sampson and is now developed by the beets community. The license is MIT.

You can’t perform that action at this time.