FoobarStats
A lightweight library for parsing foobar2000 XML statistics into Pydantic models
Features
- Parsing
Foobar2000XML 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:
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
foobarstats-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foobarstats-0.1.0.tar.gz.
File metadata
- Download URL: foobarstats-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.2.1 CPython/3.10.19 Linux/6.14.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f42c2aaff6b4ee4c802e65f4143063083d612d6fe955e3d55c6535385495d8d
|
|
| MD5 |
1e039a7d95927058075c7cb65f43aaa0
|
|
| BLAKE2b-256 |
ef6eeba8ac3c28392c3ff87e36dfc5b03253adfc0c9bad93b1b34ff0674d4cef
|
File details
Details for the file foobarstats-0.1.0-py3-none-any.whl.
File metadata
- Download URL: foobarstats-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.2.1 CPython/3.10.19 Linux/6.14.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1026d201c8e2f0c923fc89f008ffc9cc4a8f19cac1278105a507bca12f7974eb
|
|
| MD5 |
3e4ae8f01d001fdf12979ac7e4962d4c
|
|
| BLAKE2b-256 |
058838d5a2f0bb6831e92e0f50fc22317edb13d539f71cf686ce6ad58b936552
|