Skip to main content

A lightweight library for parsing foobar2000 XML statistics into Pydantic models

Project description

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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foobarstats-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for foobarstats-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f42c2aaff6b4ee4c802e65f4143063083d612d6fe955e3d55c6535385495d8d
MD5 1e039a7d95927058075c7cb65f43aaa0
BLAKE2b-256 ef6eeba8ac3c28392c3ff87e36dfc5b03253adfc0c9bad93b1b34ff0674d4cef

See more details on using hashes here.

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

Hashes for foobarstats-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1026d201c8e2f0c923fc89f008ffc9cc4a8f19cac1278105a507bca12f7974eb
MD5 3e4ae8f01d001fdf12979ac7e4962d4c
BLAKE2b-256 058838d5a2f0bb6831e92e0f50fc22317edb13d539f71cf686ce6ad58b936552

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page