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 = '<library_name>'
root_dir = '/media/music'
music_list = mm.execute(library, root_dir)
# music_list = [(<mtime>,'<rel_path>'),...,(<mtime>,'<path>')]
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
- By default searches for .mp3 and .flac files
- Supports absolute and relative root directory
Notes
- Library name is intended for internal use so should only contain characters acceptable for a folder name A-Z, a-z, _, -.
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1881c06b6fb539fe9c1fcdfdd940f30ac6dc478114734713e009f5cdb625e6 |
|
MD5 | 83f69f7268b545c3d1a20065d99dba03 |
|
BLAKE2b-256 | ff86d38d4cd14d59b0c2fb2ccbd9dbf2dd55589a190b18d260c40f4eca566a51 |
Close
Hashes for music_manager_micro-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd1c7ec881688d3581b184506a9a6712fab3f40111ee156e907d22401b80158 |
|
MD5 | 157974bb577a461a752cfe2e41dc91b0 |
|
BLAKE2b-256 | 4af7ac0ce229311b9ecb7ca228c92ccf9dbed21c68a76e7c7f581e99ebc8a944 |