Skip to main content

Utilities to handle .kbp files created with Karaoke Builder Studio.

Project description

kbputils

This is a module containing utilities to handle .kbp files created with Karaoke Builder Studio. It's still very early development, but if you want to try it out, see some notes below.

Current contents are:

kbputils module to parse a file into a data structure:

k = kbputils.KBPFile(filename)

converters module which currently contains a basic converter to the .ass format:

converter = kbputils.converters.AssConverter(k) # A few options are available, but not many yet
doc = converter.ass_document()  # generate an ass.Document from the ass module
with open("outputfile.ass", "w", encoding='utf_8_sig') as f:
    doc.dump_file(f)

There's also a CLI for it (command and syntax subject to change):

$ KBPUtils --help
usage: KBPUtils [-h] [--border | --no-border] [--float-font | --no-float-font] [--float-pos | --no-float-pos] [--target-x TARGET_X]
                [--target-y TARGET_Y] [--fade-in FADE_IN] [--fade-out FADE_OUT] [--transparency | --no-transparency] [--offset OFFSET]
                source_file [dest_file]

Convert .kbp to .ass file

positional arguments:
  source_file
  dest_file

options:
  -h, --help            show this help message and exit
  --border, --no-border
                        bool (default: True)
  --float-font, --no-float-font
                        bool (default: True)
  --float-pos, --no-float-pos
                        bool (default: False)
  --target-x TARGET_X   int (default: 300)
  --target-y TARGET_Y   int (default: 216)
  --fade-in FADE_IN     int (default: 300)
  --fade-out FADE_OUT   int (default: 200)
  --transparency, --no-transparency
                        bool (default: True)
  --offset OFFSET       int | bool (default: True)

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

kbputils-0.0.4.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

kbputils-0.0.4-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file kbputils-0.0.4.tar.gz.

File metadata

  • Download URL: kbputils-0.0.4.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for kbputils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e4e8a54d8a18be8b0876d0194e972b0483f6f4ad748aae75bb7c234461c7b7b5
MD5 e7cfb05e9a148b73616c317f50289c7f
BLAKE2b-256 009cfa829f8c2e1a76e9cd907cbfc401c9cbbed4b155c18c8d79bc06d2b2d5d7

See more details on using hashes here.

File details

Details for the file kbputils-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: kbputils-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for kbputils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 80bf0e43d77265a5a172c001e19be90ab229df6ab18d2caa0b5d90bc5dd7c5a8
MD5 ad298a5cdfc677915d9a01576926e3f7
BLAKE2b-256 5d00444caad2fd0399fa7198b5f9cbf8e48a7a53794790f26eb8f749c1db1166

See more details on using hashes here.

Supported by

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