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 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/*
Metadata
Release files for music-manager-micro 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| music_manager_micro-0.3.4.tar.gz | 6.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| music_manager_micro-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / music_manager_micro-0.3.4.tar.gz
| Download URL | music_manager_micro-0.3.4.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eff2130914c74c4713e031f955a15031c7298122b33feccff82018e714591d17
|
|
BLAKE2b-256 checksum How to use checksums |
2781ed4b56c3de1050ecd09acc2d94818a4ec7c02ffcc1a141fef372360b05e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / music_manager_micro-0.3.4-py3-none-any.whl
| Download URL | music_manager_micro-0.3.4-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2241cd195f1863e9c9509c5691a126a99e338c3e0258f717fa3a6c06d7cb21b3
|
|
BLAKE2b-256 checksum How to use checksums |
3a52a38a16e27ca27816a39327354ac7f7f026c398130d0320e0cc25b9ce0cae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for music-manager-micro 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.