nicfit / eyeD3

eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3v1 (1.0/1.1) and ID3v2 (2.3/2.4).
http://eyed3.nicfit.net/
GNU General Public License v3.0
536 stars 58 forks source link

__str__() and __repr__() methods for frames and elsewhere #523

Open odie5533 opened 3 years ago

odie5533 commented 3 years ago

In using eyeD3, I found it very difficult to figure out what each object contains and how to inspect them. I ended up needing to read a lot of the eyeD3 source code, documentation, and even using the inspect module to figure out what I was looking at. I think using eyeD3 would be a lot easier if when I type print(tag.chapters) or print(t.chapters.get(b'ch1')) I got readable feedback rather than ChaptersAccessor object or ChapterFrame object. If it told me the ChapterFrame has title "Chapter 1" then I'd know I can also call tag.chapters.get(b"ch1").title to get the title.

nicfit commented 2 years ago

Sounds a great feature, but I don't have any immediate plans to work on it. PRs welcome though ;)