Skip to main content

Generate HTML catalogs from music notation files with git-based version tracking

Project description

GenList Butler

Tests PyPI version Python versions

A command-line tool for generating HTML music archives from ChordPro files, PDFs, and other music notation files. Originally created for the Tuesday Ukulele Group, this tool scans a directory tree of music files and generates a searchable, filterable HTML catalog.

Features

  • 📁 Smart File Discovery: Automatically finds ChordPro (.chopro, .cho), PDF, MuseScore, and other music files
  • 🔍 Version Control Integration: Uses git timestamps to identify the newest version of duplicate files
  • 🎯 Filtering Options: Hide older versions, mark easy songs, exclude specific files
  • 📄 PDF Generation: Optional automatic PDF generation from ChordPro files
  • 🌐 Interactive HTML: Generates searchable, filterable HTML catalogs with modern UI
  • 🎨 Beautiful Styling: Includes Tuesday Ukes' professional HTML template - no configuration needed!
  • Fast: Optimized git operations for quick catalog generation

Requirements

  • Python 3.12 or later
  • Git (for version tracking features)

Installation

Install using pipx (recommended):

pipx install genlist-butler

Or using pip:

pip install genlist-butler

Usage

Basic usage:

genlist-butler <music_folder> <output_file>

Examples

Generate a catalog with default settings (newest versions only):

genlist-butler ./music index.html

Show all file versions:

genlist-butler ./music index.html --filter none

Hide only files marked with .hide extension:

genlist-butler ./music index.html --filter hidden

Generate PDFs from ChordPro files before cataloging:

genlist-butler ./music index.html --genPDF

Options

  • musicFolder - Path to the directory containing music files
  • outputFile - Path where the HTML catalog will be written
  • --filter [none|hidden|timestamp] - Filtering method (default: timestamp)
    • none: Show all files
    • hidden: Hide files with .hide extension
    • timestamp: Show only newest versions based on git history
  • --intro / --no-intro - Include/exclude introduction section (default: include)
  • --genPDF / --no-genPDF - Generate PDFs from ChordPro files (default: no)
  • --forcePDF / --no-forcePDF - Regenerate all PDFs even if they exist (default: no)

File Markers

GenList Butler uses special marker files:

  • .hide files: Create a file with .hide extension (e.g., song.hide) to hide all files with the same base name from the catalog
  • .easy files: Create a file with .easy extension (e.g., song.easy) to mark all files with the same base name as "easy songs" for filtering

Custom HTML Styling

GenList-Butler includes a beautiful, professional HTML template out of the box (Tuesday Ukes' styling). However, you can customize it:

  1. Create your own HTMLheader.txt file in your working directory
  2. Run genlist-butler from that directory
  3. Your custom header will be used instead of the default

The generated HTML will use your custom styling while maintaining all the interactive search/filter functionality.

Requirements

  • Python 3.8+
  • Git (for timestamp-based filtering)
  • ChordPro (optional, for PDF generation)

How It Works

  1. Scans the music folder recursively for supported file types
  2. Groups files by song title (normalized, ignoring articles)
  3. Filters based on the selected method:
    • Uses git history to find the newest version of each file
    • Respects .hide marker files
    • Processes .easy marker files for special highlighting
  4. Generates an interactive HTML page with:
    • Searchable song list
    • Download links for all file formats
    • Optional filtering for easy songs
    • Toggle for showing all versions

Development

To contribute or modify:

# Clone the repository
git clone https://github.com/TuesdayUkes/genlist-butler.git
cd genlist-butler

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

License

MIT License - see LICENSE file for details

Credits

Created for the Tuesday Ukulele Group (https://tuesdayukes.org/)

Maintained by the TUG community.

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

genlist_butler-1.0.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

genlist_butler-1.0.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file genlist_butler-1.0.0.tar.gz.

File metadata

  • Download URL: genlist_butler-1.0.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for genlist_butler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 25cfd723466a583537098b386f4a9daecd9145e6bb9d2790d925068939dab5fd
MD5 0cf7b0443ce152b995e385a00bb4e7e3
BLAKE2b-256 7b9e3940108f01cbb6aa7f4b4b7768a5db9880be047090ca34f2b654ef170d6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for genlist_butler-1.0.0.tar.gz:

Publisher: publish.yml on TuesdayUkes/genlist-butler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genlist_butler-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: genlist_butler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for genlist_butler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9130de49d5c52fbcc80690c29fde1522919f9a62c86c1f0c4b8fd63c472e519a
MD5 e23fff3e19b0285aec4b64a51688e8f2
BLAKE2b-256 14b1fbb76dedb06620d7cb30e712f94309f8ee97b2f43f6a442eb6de61986d6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for genlist_butler-1.0.0-py3-none-any.whl:

Publisher: publish.yml on TuesdayUkes/genlist-butler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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