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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d78ef7c891316e2138ee864fd042a97bb233ea8b5f8294da7c08745c4d820a5 |
|
MD5 | 62c6c912977d8f49e3abde194ccc0e8e |
|
BLAKE2b-256 | 0b59cfab9abf85847f1c8520cb6db4cf4992113efb2d9766f338707de1b409a6 |
Close
Hashes for music_manager_micro-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb5882741aa7895aed32b92d6ac33f9f935d5f3ab530ad42fbcb32102016982 |
|
MD5 | 00a0eed227a4703ca28274aad885effd |
|
BLAKE2b-256 | 0cdf9203a325a295646b52c714c0e2f325d26bfd3ac63108912c8f1d0422878d |