Skip to main content

beets-hitlisttag

A beets plugin that stores chart ("hitlist") history for songs — positions per year or per year/week in charts such as the Dutch Top 2000, Top 40, or Top 100 — in a custom CHARTS file tag holding JSON, and makes that data usable inside beets.

It provides:

  • a typed charts media field read from and written to file tags;
  • a chartsupdate command that parses the CHARTS tag into queryable per-chart flexible fields (top2000, top2000_score, top2000_highest, top2000_when, …);
  • a charts command showing a song's chart history (summary or full positions);
  • a hitlist command that reconstructs a full chart for a given year (or year/week) from the library, including a report of missing positions.

Usage

chartsupdate

Reads the CHARTS tag from matching items and materializes per-chart flexible fields (top2000, top2000_score, top2000_highest, top2000_when, …) so they can be queried and sorted in beets.

beet chartsupdate [QUERY]

Run it after importing new music or when chart data changes. Without a query it processes every item in the library.

charts

Displays the chart history stored in a song's CHARTS tag.

beet charts [-F] [QUERY]

By default it prints a one-line summary per chart. The -F / --full flag shows every position in a table.

hitlist

Reconstructs a full chart for a given hitlist and year (or year/week) from the library, listing songs in position order.

beet hitlist [-M] [-p] [-f FORMAT] HITLIST YEAR [WEEK]

The available hitlists are defined in configuration (see Configuration); the shipped defaults are top2000, top100, top40, zwaarstelijst, and kerst. All take a year; top40 also takes a week. The -M / --missing flag reports any positions that are absent from the library. The -p / --path flag prints file paths instead of the formatted string. The -f / --format option overrides the display format (default: $artist - $album - $title).

beet hitlist top2000 2023
beet hitlist -M top40 2024 5

Configuration

Which hitlists exist and what axes each one uses are defined by the hitlists key under the hitlisttag section of config.yaml. It maps a hitlist name to a list of axis names — the arguments hitlist expects for that chart:

hitlisttag:
  hitlists:
    top2000: [year]
    top100: [year]
    top40: [year, week]
    zwaarstelijst: [year]
    kerst: [year]

Omitting the key falls back to the defaults above. A hitlist takes one argument per axis, in order; a single-axis hitlist like top2000 takes a year, while the two-axis top40 takes a year and a week.

A chart present in a file's CHARTS tag but absent from the configured hitlists is still stored in the charts blob, but its per-chart flexible fields are not materialized — only configured hitlists get queryable name, name_score, name_highest, and name_when fields.

Status

Working prototype being turned into a clean, tested, installable package. See docs/roadmap.md and the repository's milestones and issues for direction and progress. Not yet installable from PyPI.

License

MIT — see LICENSE.

Metadata

Release files for beets-hitlisttag 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beets-hitlisttag 0.1.0
File Size Uploaded Provenance
beets_hitlisttag-0.1.0.tar.gz 24.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for beets-hitlisttag 0.1.0
File Interpreter ABI Platform
beets_hitlisttag-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / beets_hitlisttag-0.1.0.tar.gz

Download URL beets_hitlisttag-0.1.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2d5e53370081f7721791ecd379ffb51ff5b1e054bc06d845240d37f9ee5885f9
BLAKE2b-256 checksum
How to use checksums
db429b31d35a25458780a3971b2429d4d20b08ad38d5c439c1042597aaf397db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Release files / beets_hitlisttag-0.1.0-py3-none-any.whl

Download URL beets_hitlisttag-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07a8840001054e1bf42139e63dae0abdb879965aafa7b6341897f72a70a0f457
BLAKE2b-256 checksum
How to use checksums
1276bd986f9bdaea2f03acc826dd5914dff3e6dc80806fb2a2a629d8b3359f0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Security for beets-hitlisttag 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for beets_hitlisttag-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page