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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| mediafile-0.17.0.tar.gz | 24.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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