Skip to main content

A simple, cross-format library for reading and writing media file metadata.

Project description

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.

Project details


Download files

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

Source Distribution

mediafile-0.17.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mediafile-0.17.0-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file mediafile-0.17.0.tar.gz.

File metadata

  • Download URL: mediafile-0.17.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mediafile-0.17.0.tar.gz
Algorithm Hash digest
SHA256 80c9003fd25d7096a7237e3b58e6ff018ef67f9c39900feafacabac1742c7d3a
MD5 fbd4ea32528233acd5c0678fda248adf
BLAKE2b-256 e302460b31c20833036d8f171b991ff2f46c7f1dc85c6219e8bf7efca4a9aa5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mediafile-0.17.0.tar.gz:

Publisher: make_release.yaml on beetbox/mediafile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mediafile-0.17.0-py3-none-any.whl.

File metadata

  • Download URL: mediafile-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mediafile-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bba387527d474f4d93a1c4033ecaff4700e9e311cfac334b9232e409a222a59
MD5 ce54848767be185ecc1d8979eaa7f5f5
BLAKE2b-256 0058c4389f744b64fa81c5380cf2b0bed7e67b5789443860e5d51d31206b8e9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mediafile-0.17.0-py3-none-any.whl:

Publisher: make_release.yaml on beetbox/mediafile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page