Skip to content

Parse a twiddler.cfg twiddler configuration file in Python

Notifications You must be signed in to change notification settings

mawbid/twiddler-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twiddler Configuration File Parser

Usage:

    from twiddler_config import Config

    cfg = Config.from_path('/path/to/my/twiddler.cfg')

    print(cfg.version)
    print(cfg.chords)
    # etc

Command-line Utility

The included command-line utility provides a variety of tools organized by subcommand described below.

chords: Display all chords in a configuration

You can print a brief description of your Twiddler configuration, including all of its included chords by running:

    twiddler-config chords /path/to/my/twiddler.cfg

table: Display chord tables

You can print a chord tables in the style of Backspice2 by running:

    twiddler-config table /path/to/my/twiddler.cfg

Optional arguments:

  • --right-to-left: Instead of printing chords in three columns from left to right, print the columns in right-to-left order.

About

Parse a twiddler.cfg twiddler configuration file in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%