Skip to main content

Handles low-level interfacing for files' tags. Wraps Mutagen to

Project description

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.

Download files

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

Files for mediafile, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size mediafile-0.6.0-py2.py3-none-any.whl (20.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mediafile-0.6.0.tar.gz (505.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page