{{ badge.pypi }} {{ badge.github_workflow() }} {{ badge.readthedocs }}
This is an extended version of the mediafile library of the beets project. It is used by the Python audio renaming command line tool audiorename.
The name phrydy
is pronounced like the German word Friedi
.
In the previous versions the phrydy
library offers a standalone version of the mediafile.py
included in the beets
project. Now beets
has its own separate library called mediafile
. It might be better to use the upstream library directly.
phrydy
offeres two media file classes: MediaFile
is the looped through and unmodified version that comes directly from the beets project. MediaFileExtended
is the slightly modified and extended version:
albumartist_sort
composer_sort
mb_workid
work
work_hierarchy
releasegroup_types
- A little command line debug utility named
phrydy-debug
. - A dictionary containing documentation about the various meta data fields.
- Some code to generate documentation from the field documentation dictionary.
git clone git@github.com:Josef-Friedrich/phrydy.git
cd phrydy
python setup.py install
pip install phrydy
easy_install phrydy
Basic usage:
>>> from phrydy import MediaFileExtended
>>> f = MediaFileExtended('Lucy.mp3')
>>> f.title
'Lucy in the Sky with Diamonds'
>>> f.artist = 'The Beatles'
>>> f.save()
List all available fields of a media file:
from phrydy import MediaFileExtended
media_file = MediaFileExtended('tests/files/full.mp3')
for key in MediaFileExtended.readable_fields():
value = getattr(media_file, key)
if key != 'art' and value:
print('{}: {}'.format(key, value))
{{ func('phrydy.doc_generator.format_fields_as_rst_table') }}
{{ cli('phrydy-debug --help') | literal }}
pyenv install 3.9.12 3.10.4
pyenv local 3.9.12 3.10.4
pip3 install tox tox-pyenv
tox
git tag 1.1.1
git push --tags
python setup.py sdist upload
The package documentation is hosted on readthedocs.
Generate the package documentation:
python setup.py build_sphinx