Skip to main content
https://github.com/beetbox/mediafile/actions/workflows/main.yml/badge.svg?branch=master https://img.shields.io/pypi/v/mediafile.svg

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.

Synopsis

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

from mediafile import MediaFile

f = MediaFile("Lucy.mp3")
f.title
"Lucy in the Sky with Diamonds"
f.artist = "The Beatles"
f.save()

MediaFile also exposes plural fields for repeated metadata values, such as artists, albumartists, lyricists, composers, arrangers, and remixers.

Documentation

See the full documentation.

Authors

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.

Metadata

Release files for mediafile 0.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mediafile 0.17.0
File Size Uploaded
mediafile-0.17.0.tar.gz 24.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mediafile 0.17.0
File Interpreter ABI Platform
mediafile-0.17.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.5 kB

Release files / mediafile-0.17.0.tar.gz

Download URL mediafile-0.17.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
80c9003fd25d7096a7237e3b58e6ff018ef67f9c39900feafacabac1742c7d3a
BLAKE2b-256 checksum
How to use checksums
e302460b31c20833036d8f171b991ff2f46c7f1dc85c6219e8bf7efca4a9aa5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Release files / mediafile-0.17.0-py3-none-any.whl

Download URL mediafile-0.17.0-py3-none-any.whl
Size 29.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bba387527d474f4d93a1c4033ecaff4700e9e311cfac334b9232e409a222a59
BLAKE2b-256 checksum
How to use checksums
0058c4389f744b64fa81c5380cf2b0bed7e67b5789443860e5d51d31206b8e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 release files

0.16.2

2 release files

0.16.1

2 release files

0.14.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page