Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

songleaf

Latest version: v0.0.37

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: thorwhalen1
0 Stars
0 Forks
32 Versions
781 Downloads
Python Repo language

Scan summary

songleaf was last scanned on 24 Nov 2026 at version 0.0.37. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 32 versions; the latest 5 were published within 4 days (21–24 Nov 2026).
  • Findings: No rules fired in version 0.0.37.
  • Downloads: 781 downloads.

Versions

32 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.37 LATEST 24 Nov 2026 No rules fired
0.0.36 23 Nov 2026 No rules fired
0.0.35 23 Nov 2026 No rules fired
0.0.34 22 Nov 2026 Not shown
0.0.33 21 Nov 2026 Not shown

No rules fired in 0.0.37

Findings

Findings for v0.0.37. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.37; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

songleaf

Dense, readable one-page song sheets: lyrics and chords on one A4 page, with the lyrics as large as will fit.

pip install songleaf
python -m songleaf sheet "wonderwall oasis"    # -> a one-page PDF in ~/.local/share/songleaf/sheets/

The default source is the Kaggle chords-and-lyrics corpus (about 135,000 songs), read from a local copy of its zip (see Sources).

What the sheet looks like

  • One page, largest type that fits. The lyric font size is found by search for each song. On 2,000 randomly sampled corpus songs, the default layout's median is about 21.5 pt in the default font (DejaVu Sans; 22.7 pt in Helvetica), and 1,999 of the 2,000 fit on one page (misc/eval/corpus_eval.py reruns the measurement). A song that cannot fit at the minimum size spills onto a second page.
  • Any script the font covers. Text is set in DejaVu Sans, bundled with the package and embedded in each PDF (Bitstream Vera licence, beside the font files), so Turkish, Greek, Cyrillic and other non-Latin-1 text draws correctly. It is wider than Helvetica, so fitted sizes are somewhat smaller than the numbers above, which were measured in Helvetica; DenseStyle(lyric_font="Helvetica", ...) restores the old look.
  • Chords take no line of their own. They are smaller and blue, start over the syllable they land on, and overlap the tops of the letters of their lyric line.
  • Lines share rows. Consecutive lines of a paragraph are packed onto one row, separated by a light /. A blank line or a new section starts a new row.
  • Small labels. Sections are grey prefixes (V1, Ch, Br); title, artist, capo and key are one small line at the top.

Layouts

That is the dense layout. Other layouts trade looks for larger lyrics. Name one by joining options with +:

option what it changes
overlap chords sit lower, on the words themselves, outlined in white and drawn over them: no extra height for chords
inline chords go in the lyric line, right before the syllable they land on; ‹G marks a chord that sounds before its syllable
packed rows break where the lyrics break (between couplets, not inside a rhyming pair or a repeated line) instead of as late as fits
two-column two columns under a full-width heading
chords-only no lyrics: per section its label (Verse 1, Chorus; any other marker becomes Part n) and its chord symbols, under the title, key and capo. Songbooks take it too: make_renderer("chords-only")
shaded light bands for choruses and bridges, dark grey for lines already sung, chords coloured by function in the song's key (tonic darker, outside the key in orange)
python -m songleaf sheet "wonderwall oasis" --layout inline
python -m songleaf sheet "wonderwall oasis" --layout overlap+packed+two-column+shaded

The comparison of the largest font size each layout fits, over the same 2,000 songs, is on songleaf#4.

Command line

python -m songleaf search "wonderwall oasis"              # one query: list names, then titles, artists, lyrics
python -m songleaf search --artist oasis --lyrics "roads winding"   # narrower: every field given must match
python -m songleaf sheet "wonderwall oasis" --output wonderwall.pdf
python -m songleaf sheet "wonderwall oasis" --pick 2      # the second-best match
python -m songleaf songs                                  # songs already stored
python -m songleaf export kaggle_chords:1234 --output song.cho   # ChordPro (or --format text); --transpose 2
python -m songleaf viewed                                 # the songs opened, the latest first
python -m songleaf sheet kaggle_chords:1234               # a song by its key: no search
python -m songleaf sheet kaggle_chords:1234 --refresh     # fetch it again from its source
python -m songleaf sheet "wonderwall oasis" --transpose 2 # chords up a whole tone, spelled for the new key
python -m songleaf sheet "wonderwall oasis" --scale 0.8   # 80% of the size that fills the page
python -m songleaf songbook Campfire                       # a whole list as one PDF: contents, page numbers, bookmarks, in list order
python -m songleaf import chart.txt --title "Paper Boats"   # paste from any site: Ultimate Guitar markup, ChordPro, OpenSong, plain; "-" reads stdin
python -m songleaf sheet paste:ea2a9d845214                 # the key `import` printed
python -m songleaf song kaggle_chords:1234                # the song as data: text, chords, every key's chord table
python -m songleaf build-index                            # once: search from an index, not the whole corpus in memory
python -m songleaf search "some new song" --web always    # also look online (default: only when nothing here holds the query)

The songleaf console script is the same command.

Python

import songleaf

hits = songleaf.search("wonderwall oasis")
song = songleaf.get_song(hits[0].key)  # a Song: lyrics text + annotations
songleaf.render_dense_a4(song, "wonderwall.pdf")  # {'font_size': ..., 'pages': 1, ...}
songleaf.render_sheet(song, "wonderwall-inline.pdf", layout="inline+two-column")

songleaf.sheet("wonderwall oasis")  # search, store and render in one call
songleaf.tools.search(
    "wonderwall oasis"
)  # [{..., "match": "title", "highlight": {...}}, ...]
songleaf.sheet("wonderwall oasis", layout="overlap+shaded")

A layout is a SheetLayout(chords=..., packing=..., columns=..., shading=..., style=DenseStyle(...)). chords and packing also take your own strategy objects (a ChordPlacement, or a packer function with the signature of songleaf.packing.pack_greedy):

from functools import partial
from songleaf import SheetLayout, render_sheet
from songleaf.packing import pack_structured

layout = SheetLayout(
    chords="inline", packing=partial(pack_structured, row_cost=5), columns=2
)
render_sheet(song, "sheet.pdf", layout=layout)

The song model

A Song is lyrics text plus standoff annotations anchored on character offsets, so annotation layers never touch the text:

  • section: spans its lines, {"label": "Chorus"};
  • chord: a point on the first character of the syllable the chord lands on, {"symbol": "G/B", "timing": "at"} ("before" marks a chord that sounds ahead of that syllable);
  • score: a link from a stretch of lyrics to a score snippet, {"source", "id", "url", "format"}.

Metadata (title, artist, capo, key) and provenance (source, id, url, licence) travel with the song, and Song.to_dict() is its JSON form.

from songleaf import Song, chord, section, parse_chords_over_lyrics

song = Song(
    "Paper boats drift", [section(0, 17, "Verse 1"), chord(0, "G"), chord(6, "D")]
)
song = parse_chords_over_lyrics(
    "G     D\nPaper boats drift"
)  # the same chords, from a chart

Storage

Songs are kept in a MutableMapping (songleaf.song_store()): one JSON file per song under ~/.local/share/songleaf/songs/. Rendered sheets go to ~/.local/share/songleaf/sheets/. Set SONGLEAF_DATA_DIR to move both.

Sources

KaggleChordsSource reads the chords-and-lyrics dataset through sung. It needs a local copy of the zip: put it at ~/.local/share/songleaf/datasets/chords-and-lyrics/chords-and-lyrics-dataset.zip (under the data root, so SONGLEAF_DATA_DIR moves it too), point SUNG_CHORDS_AND_LYRICS_ZIP at it, or keep it where haggle downloads it ($HAGGLE_ROOTDIR/zips/eitanbentora/chords-and-lyrics-dataset.zip). Without a local copy, sung downloads it from Kaggle, which needs Kaggle credentials. The corpus was scraped from a chords site, so keep it to personal use.

Loading the corpus takes about five seconds on the first search in a process, and it stays in memory: about 1.1 GB, 1.6 GB once a lyrics search has run. Run songleaf build-index once to avoid that. It writes one SQLite file beside the zip (about 190 MB: titles, artists, compressed charts and a full-text index of the words), and from then on the default source reads it. A process then holds about 80 MB for search, a lyrics search takes milliseconds instead of seconds, and the songs and their keys are the same. Run it again after replacing the zip.

Other sources surveyed, plus the Ultimate Guitar / MuseScore decisions, are in misc/docs/sources.md.

LocalFolderSource indexes a folder of files you exported yourself from a paid chords/tab or score site (Ultimate Guitar, MuseScore, ...) — text charts are parsed like the Kaggle corpus, score/tab files (Guitar Pro, MusicXML, MSCZ, MIDI, PDF) are attached as a score link. Default folder: ~/.local/share/songleaf/imports/ (moved by SONGLEAF_DATA_DIR).

Searching the web

When nothing found locally holds the whole query (another band's song of the same name, or the artist's other songs, do not count), search looks online, on a list of sites, extract the best result into songleaf's own format, and keep it in the song store as web:<site>:<id>, with the page URL, the site and a personal licence in its provenance. The next search finds it locally, with no request. It needs the online extra:

pip install "songleaf[online]"
python -m songleaf search "birds of a feather billie eilish"     # finds it online the first time, locally after
python -m songleaf search "wonderwall oasis" --web always        # look online even when it is here
python -m songleaf search "paper boats" --web off                # never
SONGLEAF_WEB_SITES=lrclib,chordie,azchords python -m songleaf search ...  # which sites to ask

sheet takes the best local match, chords and all, so it goes online only when nothing here matches at all, or with --web always; to choose between a local near miss and the song online, search first and make the sheet from the key it shows. --web (or SONGLEAF_WEB_SEARCH) is fallback (the default), always or off; --web-sites (or SONGLEAF_WEB_SITES) names the sites, comma-separated. The default list is LRCLIB, an open lyrics API made for automated clients (lyrics with their timings, no chords), and Chordie, which gives chord charts: pages it re-hosts from guitartabs.cc and guitaretab.com, whose terms forbid kept copies, are link only (never stored). AZChords is off by default; it has no search, so it lists an artist's songs (the query must name the artist). Why each site is in or out is in misc/docs/sources.md. Every request obeys the site's robots.txt, waits at least a second between two requests to one host, and says it is songleaf (no browser disguise). The web app does not go online as you type unless built with mk_app(web_search="fallback"): its page searches on every keystroke. Built with mk_app(web_on_request=True) (and the online extra), the page instead shows a Search the web for “…” button after the results: one press asks the configured sites once (/search?web=always), and a song found there is kept and shown with where it came from (songleaf#62). GET /web says whether it is available.

Lyrics and chord charts are copyrighted. What songleaf fetches stays in your data directory, for your own use.

A page you name

import-url reads one song page you give it and keeps it the same way, so the next search finds it locally:

python -m songleaf import-url "https://www.chordie.com/chord.pere/..."           # web:chordie:<id>
SONGLEAF_UG_URL=1 python -m songleaf import-url "https://tabs.ultimate-guitar.com/tab/<artist>/<song>-chords-<id>"   # ug:<id>

Pages on Chordie, AZChords and Ultimate Guitar are read. The site is picked from the URL (songleaf.online.site_for_url); a URL no known site reads is refused with the list of those that do, and pasting the chart (import) works for any site. Ultimate Guitar community charts are read only on your own machine with SONGLEAF_UG_URL=1, never from the web app, and official or Pro tabs are refused (songleaf#28). A page already kept is not fetched again unless --refresh. Songs you pasted (paste:), imported (ug:, web:) or found online are all searched locally, first.

A site is an entry in songleaf.online.WEB_SITES: a ChartPageSite (a search URL and a pattern for its result links) covers most chord sites, and any object with name, license, chords, find(query, *, limit, fetch) and extract(candidate, *, fetch) works. A site that can also read a page by URL has candidate_for(url) (a ChartPageSite has it when given page_path=, a regex over its song pages' paths). fetch= (url -> text) is the seam for the network.

Web app

songleaf.web.mk_app() is a FastAPI app over the same functions: search, POST /import (paste a song; the page has a "Paste a song" box), the stored songs, the layout options, and the sheet as JSON, PDF and a PNG per page (for phone browsers that show no PDF inline). It also serves its own page, built phone first: the song starts right under the title and one row of controls. That row holds the text size, the key (−1 / +1, and a key picker that lists every chord of the song beside what it becomes), Aa and ⋯. Aa holds the reader's settings: paper (auto, light, sepia, dark, black), where the chords go (above the words, in the line, or off), one or two columns, shaded choruses, and under Fine tuning the colour and opacity of lyrics and chords, chord size, line spacing and font. ⋯ leads to Print, which shows the one-page PDF sheet. Its layout starts from the reader's settings and can be changed there in the same words (chords above, on the words or in the line; rows filled or broken at rhymes; one or two columns; shading). Opacity prints as the matching shade on white paper. The page is a two-line HTML shell that loads its script and style from the app, so it changes with the package.

pip install "songleaf[web]"
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
from songleaf.web import mk_app, page_shell

site = FastAPI()
site.mount("/api/songleaf", mk_app())
site.get("/songleaf/", response_class=HTMLResponse)(
    lambda: page_shell(api="/api/songleaf", base="/songleaf")
)

One search field looks in four places at once and shows what it found in sections, in this order: In your lists (lists whose name matches, each opening the library on that list, with its first songs), Titles, Artists and Lyrics. A song appears once, in the first section it fits: a song whose title and lyrics both match is a title match. The matched words are marked, a lyrics match shows the line that matched, and when no title matches a quiet line says so. Titles and artists match word by word: a query can be part of a title (wonder), or hold a whole title and artist (wonderwall oasis), and a word of four letters or more forgives a typo. In each section the songs whose title and artist hold the most words of the query come first, then the closest, then the most popular. The research and design behind it are on songleaf#34.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases songleaf

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229