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:float,path:str),
...
]
from music_manager_micro.music_manager import MusicManager as MM
library = 'my_library'
media_dir = '/media/music'
manager = MM(library,media_dir)
music_list = manager.execute()
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 the process running this application is set to check for new files.
Get an existing list
from music_manager_micro.music_manager import MusicManager as MM
library = 'my_library'
media_dir = '/media/music'
manager = MM(library,media_dir)
music_list = manager.get_list()
Features
- Default searches for .mp3 and .flac files
- Override list of extensions
- Supports absolute and relative root directory
- Supports changing place storing results
Maintenance
- Remove .cache/MusicManagerMicro directory to safely clear all library data, or individual libraries
- Safely backup .cache/MusicManagerMicro directory if wanted to preserve cache data
Notes
- Library name is intended for internal filesystem 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.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aeffbc930eb7e07f0c57e6e02af11616c33d45a37e9848225c077dea39ad17b |
|
MD5 | a0cea6f067a950cd1ecae2a052d612e1 |
|
BLAKE2b-256 | 76735e09c63e69dca48c4ac824d8a0cd9b6f48f638aa1bd96970d73ec00d5e0d |
Close
Hashes for music_manager_micro-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d21564a95841fdb44ae6dfb0c2aba8bd282fc0151a5c7a02c22c40a92573ce6 |
|
MD5 | a735b33a1024238e82b455504b5dbc53 |
|
BLAKE2b-256 | 5b4708c35246899c9600c98fa65a1ab44f56e94051737731a2c87245d87a3850 |