Skip to content

Python Classes

These classes are the building blocks of the scripts provided by Toolkit. They can also be used independently to create your own tools and scripts.

They cover a wide range of functionality useful in cross development for retro computers like image conversion, assembler source creation, file handling, message reporting, and command line interface.

AssemblerOutput

Create assembler source files in Accelerate format.

AtomicOutput

Create output file only if no errors occurred.

BASICOutput

Create BASIC program.

Buffer

Create binary data incrementally.

CharacterImage

Convert image to characters.

CharacterMapping

Map Unicode characters to native encoding.

Charset

Character set.

Command

Run external command.

Dependencies

Create and check gcc style dependencies file.

Disk

Read and write disk images.

FilePositionException

Exception that includes file position information.

FileReader

Read file line by line with error reporting and preprocessor.

MessageHandler

Base class for message handling.

MessageHandlerCollect

Collect messages in list.

MessageHandlerFile

Output messages to file.

Palette

Color palette.

PaletteImage

Image converted to color indices.

RunlengthEncoder

Run length encoder with skip support.

Script

Implements a standard script interface that is easy to integrate into a build system.

YAMLSpec

Decode and access specification data from YAML.