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 = mm.get_list()
Features
- Default searches for .mp3 and .flac files
- Supports absolute and relative root directory
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aaabef570692c8f48ec2aa80e32a14fc5a5ab21ae4b0a61e5a1f9813d6fcdb4 |
|
MD5 | abe6d45070930f52421e92f55f134906 |
|
BLAKE2b-256 | d381975fa36cdfea1e4434c8216faf753e9018a59fa1b9395eb9e7097d912960 |
Close
Hashes for music_manager_micro-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e496ad9726385cf4c9248ee2860f3d3723f2648c0627086b1afdc8b50c7670ec |
|
MD5 | 5b3aaadfab4f03acc668aad32ca0102d |
|
BLAKE2b-256 | 74838d4406b75964f2b0598195d4ad41d60c076f465e8ba33a6e4e82d9210fca |