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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for music_manager_micro-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b1618a6055912fb9770a7436df872d14f465acb00c791e4f9c29e4418c2b7a |
|
MD5 | a53bea29249bb5efa0d4ece5eb4f108a |
|
BLAKE2b-256 | f6d1e2a8a3a5563638ef97e3fdae13d2f8eefd39f272e3502eff1835e0cd1254 |
Close
Hashes for music_manager_micro-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cc7943f41fb6c5dabd16ac3018a56e139c00a946af80e606d0c3f9d840acf9e |
|
MD5 | d6ec6edcc1ef6478b6e5e1bd747c2db3 |
|
BLAKE2b-256 | fc2910e4220f4a32e553e3df6cdb2e8b5d5b495a5190288de9d63de9532e118d |