Skip to main content

A media file discovery tool, intended to work alone or fit into a larger toolchain

Project description

MusicManager

Build a list of media files from a root directory

Usage

First time usage should use the execute function. This will return the python list of entries containing tuples in the form (mtime:int,path:str)

import MusicManager as mm

library = '<library_name>'
root_dir = '/media/music'
music_list = mm.execute(library, root_dir)
# music_list = [(<mtime>,'<rel_path>'),...,(<mtime>,'<path>')]

Since the program stores the result in a sqlite DB in

$HOME/.config/MusicManagerMicro/<library_name>

we can retrieve the data quickly without re-scanning the directory. We only need to execute when we want to check for new files.

Get an existing list

import MusicManager as mm
library = '<library_name>'
mm.setLibrary(library)
music_list = mm.get_list()

Features

  • By default searches for .mp3 and .flac files
  • Supports absolute and relative root directory

Notes

  • Library name is intended for internal use so should only contain characters acceptable for a folder name A-Z, a-z, _, -.

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

music_manager_micro-0.1.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

music_manager_micro-0.1.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

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