1import music_tag
2
3f = music_tag.load_file("music-tag/sample/440Hz.m4a")
4
5# dict access returns a MetadataItem
6title_item = f['title']
7
8# MetadataItems keep track of multi-valued keys
9title_item.values # -> ['440Hz']
10
11# A single value can be extracted
12title_item.first # -> '440Hz'
13title_item.value # -> '440Hz'
14
15# MetadataItems can also be cast to a string
16str(title_item) # -> '440Hz'
17