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
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3adc69a5a2fbe7cb60c6100752de570d68cac8efbf9519c5c4041a003221d3f |
|
MD5 | 3b5eb3e64c37c0e5ab8ee28b176ddc31 |
|
BLAKE2b-256 | 571a2439e9c2051b603495622c0a2e05167a75c7d7b95fc86f94ebae56dc6096 |
Close
Hashes for music_manager_micro-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98c7125f2a1076c018fe67bc456c8d3c0db539bbf81d08ab07ae27ad148b19a8 |
|
MD5 | 11eda005d80d124948747228bfe9ee5c |
|
BLAKE2b-256 | d19d37668dfbb7c63d1e32c9ff049ea80775b9c5e28779f2d1189f7f2fca8844 |