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),
...
]
from music_manager_micro.music_manager import MusicManager as mm
library = 'my_library'
manager = mm(library)
root_dir = '/media/music'
music_list = manager.execute(library, root_dir)
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
from music_manager_micro.music_manager import MusicManager as mm
library = 'my_library'
manager = mm(library)
music_list = mm.get_list()
Features
- Default searches for .mp3 and .flac files
- Supports absolute and relative root directory
Maintenance
- Remove .config/MusicManager directory to safely clear all library data
- Backup .config/MusicManager directory and restore
Notes
- Library name is intended for internal use so should only contain characters acceptable for a folder name A-Z, a-z, _, -.
Build
python -m build
python -m twine upload dist/*
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.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf242b31a077c91ef08ec2f46730ef39655e2adff616e3721ed8868211aa73dd |
|
MD5 | 31d55ed4a99733b60a7ee53234784813 |
|
BLAKE2b-256 | 547e9b0ea42a9abb045397fb492ceaed833812502480accfa50d43c34a43a038 |
Close
Hashes for music_manager_micro-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d019d08717ea7a47f99f27e45d0e284b9edd46c83a8da838290a1d67e5cc338 |
|
MD5 | 1793f1705e8b6687c651488ec7ac990f |
|
BLAKE2b-256 | aa752dbb9cb2c2769727d5a771ee93b07a39497cc240384e094f346214ac468a |