Skip to main content

A easy wrapper for mutagen

Project description

This package on the Python Package Index Continuous integration Documentation Status


This package originates from the file beets/ of the beets project.

Handles low-level interfacing for files’ tags. Wraps Mutagen to automatically detect file types and provide a unified interface for a useful subset of music files’ tags.


From Github

git clone
cd phrydy
python install

From PyPI

pip install phrydy
easy_install phrydy


Basic usage:

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

List all available fields of a media file:

from phrydy import MediaFile

media_file = MediaFile('test/files/full.mp3')

for key in MediaFile.readable_fields():
    value = getattr(media_file, key)
    if key != 'art' and value:
        print('{}: {}'.format(key, value))

A field will always return a reasonable value of the correct type, even if no tag is present. If no value is available, the value will be false (e.g., zero or the empty string).

Internally MediaFile uses MediaField descriptors to access the data from the tags. In turn MediaField uses a number of StorageStyle strategies to handle format specific logic.




Publish a new version

git tag 1.1.1
git push --tags
python sdist upload

Package documentation

The package documentation is hosted on readthedocs.

Generate the package documentation:

python build_sphinx

Project details

Download files

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

Files for phrydy, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size phrydy-2.0.0.tar.gz (42.4 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