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 = 'my_library'
root_dir = '/media/music'
music_list = mm.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
import MusicManager as mm
library = '<library_name>'
mm.setLibrary(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
rm -r dist/
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf9f6310ef9aff597e42e08c077765d462e3dfee310117180c0040a4c3744fe |
|
MD5 | 263c1bbc77df507d3f559e5cab2618f2 |
|
BLAKE2b-256 | 435fdf3a409a443c1c4dc3538249f64577e8e277e2dccb8b3b4c9b72a52696a0 |
Close
Hashes for music_manager_micro-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbdbe9a028974a19932dffae5a7d1457cae815ac790c8492bc8096887f218c12 |
|
MD5 | 8eb94500d45fb4ed47ce81a78af03a13 |
|
BLAKE2b-256 | 2aa799d575e0ca2b9220bc743435ce8d759987a9b8788e179e1945dfda6575ee |