Skip to main content

music-metadata-tools

GitHub Workflow Codecov Python Versions Package Version License

A collection of tools for manipulating and interacting with music metadata.

id3autosort - metadata-based music organization utility

id3autosort organizes music libraries based on each track's metadata. Supports AAC, AIFF, FLAC, MP3, OGG and WMA formats.

Usage

$ id3autosort [-u] [-n] [-v] [-s <desired structure>] /path/to/music [/path/to/music ...] /path/music/should/go

General Options

--windows-unsafe, -u	Use all characters in metadata for new directories,
			including ones Windows filesystems normally choke on
--dry-run, -n		Simulate the actions instead of actually doing them
--verbose, -v		Increase logging verbosity

Structure Option

The -s switch allows the user to define the way they wish their music to be structured, which will be obeyed so long as the user's music has the necessary tags.

Supported structure metatags: d (date), g (genre), l (album), r (artist)

For example, if a user specifies the structure "r/l (d)" with a destination directory of /tmp/music, results would be similar to these:

/tmp/music/Nirvana/Nevermind (1991)/Smells Like Teen Spirit.mp3
/tmp/music/The Eagles/Hotel California (1976)/Hotel California.flac
/tmp/music/Tupac/All Eyez On Me (1996)/California Love.ogg

Whereas if a user specifies the structure "g/d/r" with the same destination directory, results would be similar to these:

/tmp/music/House/2001/Daft Punk/Crescendolls.wma
/tmp/music/Pop/2014/Taylor Swift/Shake It Off.aiff
/tmp/music/Dubstep/2006/Skream/Midnight Request Line.m4a

Characters that are not already reserved for expansion are passed through to the generated structure, but no guarantee is made that other letters will not be used to expand other tags in the future.

apic-tool - music file image manipulation utility

apic-tool allows the user to insert and extract image data from music files. Currently supports mp3 files.

Usage

General Options

--dry-run, -d	Simulate the actions instead of actually doing them
--verbose, -v	Change the program's verbosity
--force		Whether or not the tool should allow things to happen that may have complications

Extracting Images From Music Files

Extract image from file to specified location:

$ apic-tool extract /path/to/file.mp3 /path/for/outfile.jpg

Note that if not forced, the actual extension used may change depending on the image type in the file.

Extract image from file with no specified location:

$ apic-tool extract /path/to/file.mp3

Image will be saved to /path/to/file.xyz, with xyz changing depending on the image type in the file.

Inserting Images Into Music Files

Insertion Options

--pic, -p /path/to/image.jpg					Image to insert into music files
								(currently support GIF, JPEG, PNG)
--dir, -d /path/to/music [/path/to/other/music ...],		Directory or directories containing files to insert image into
								NOTE: does not recurse
--file, -f /path/to/file.mp3 [/path/to/other/file.mp3 ...]	Individual files to insert image into
--keep, -k							Don't delete image after inserting it

Put an image into a file:

$ apic-tool insert --file /path/to/file.mp3 --pic /path/to/image.jpg

Put an image into a directory of files:

$ apic-tool insert --d /path/to/dir --p /path/to/image.jpg

Metadata

Release files for music-metadata-tools 2.0.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 music-metadata-tools 2.0.0
File Size Uploaded Provenance Actions
music-metadata-tools-2.0.0.tar.gz 1.0 MB Without provenance Details for music-metadata-tools-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for music-metadata-tools 2.0.0
File Interpreter ABI Platform Actions
music_metadata_tools-2.0.0-py3-none-any.whl Python 3 none any Details for music_metadata_tools-2.0.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / music-metadata-tools-2.0.0.tar.gz

Download URL music-metadata-tools-2.0.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
9618599247e96d147c3c60906d33f4a2c58593fc7336412b78a787db4084bb0a
BLAKE2b-256 checksum
How to use checksums
5c8ab2bb5deed3e6db4cdc20d255a8e803b12bcc7ca08eaa612fb790b5ab9fc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Release files / music_metadata_tools-2.0.0-py3-none-any.whl

Download URL music_metadata_tools-2.0.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ca60ee6d130a4a3c535cda35a8f00a0814c8eebdbe40affe40b66ae6f940b66
BLAKE2b-256 checksum
How to use checksums
eb10a429ff874dab3f48f2884c27fa060e5d177f2d0d4f6ba248b81587d254cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Security for music-metadata-tools 2.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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