Skip to content

A lightweight library for parsing foobar2000 XML statistics into Pydantic models

License

Notifications You must be signed in to change notification settings

Olezhich/FoobarStats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoobarStats

PyPI version License Python
Coverage Status Build Status

A lightweight library for parsing foobar2000 XML statistics into Pydantic models

Features

  • Parsing Foobar2000 XML statistics files
  • Using Pydantic
  • Simple and intuitive API
  • Using generators to reduce memory consumption
  • Supports Python 3.10+

QuickStart

Foobar2000 XML export

First, select the tracks in the playlist for which you want to export statistics > right-click > Playback Statistics > Export Statistics to XML...

Then a window will appear:

export window view

Instalation of the library

Via pip

pip install foobarstats

Via poetry

poetry add commandline

Using of the library

import foobarstats

with open('your_filepath.xml', 'r') as fp:
    for stat in foobarstats.load(fp):
        print(stat) # prints TrackStat object

About

A lightweight library for parsing foobar2000 XML statistics into Pydantic models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages