Skip to main content

Svalboard Keymap Image Maker

Project description

Svalboard Keymap Image Maker (skim)

Coverage Python Version Build Status PyPI version

A Python CLI tool for generating keymap layout images for the Svalboard keyboard.

Features

  • Generate individual layer keymap images
  • Generate overview images showing all layers
  • Support for multiple keymap formats:
    • Keybard (.kbi)
    • Vial (.vil)
    • QMK c2json (.json)
  • Configurable colors and appearance
  • High-quality SVG and PNG output

Installation

pip install skim

Usage

Generate keymap images

# Generate from a keymap file
skim generate --keymap my-keymap.kbi --output-dir ./images

# Generate with custom configuration
skim generate --keymap my-keymap.kbi --config skim-config.yaml --output-dir ./images

# Generate specific layers only
skim generate --keymap my-keymap.kbi --layer 1 --layer 3-5 --layer overview

Configuration helper

# Create a configuration file from QMK color.h
skim configure --qmk-color-header /path/to/qmk/quantum/color.h --output skim-config.yaml

Development

Setup

# Clone the repository
git clone https://github.com/your-repo/skim.git
cd skim

# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
uv sync --dev

Testing

# Run tests with coverage
uv run pytest

# Run specific test file
uv run pytest tests/unit/domain/test_colors.py

Building Documentation

sphinx-build -b html docs out/docs

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

qmk_skim-0.4.4.dev0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

qmk_skim-0.4.4.dev0-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file qmk_skim-0.4.4.dev0.tar.gz.

File metadata

  • Download URL: qmk_skim-0.4.4.dev0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qmk_skim-0.4.4.dev0.tar.gz
Algorithm Hash digest
SHA256 5f6c7e123aaca9143a0af912d265374746783d327e4840e4df3e932436d0d3ca
MD5 87f5520a48e5f10894c707040f19ce1e
BLAKE2b-256 e93eab075cfab5ded7a7aac0a4b72d773820c6329d57130755cdf3b02c7b8bad

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmk_skim-0.4.4.dev0.tar.gz:

Publisher: publish.yml on Townk/skim

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

File details

Details for the file qmk_skim-0.4.4.dev0-py3-none-any.whl.

File metadata

  • Download URL: qmk_skim-0.4.4.dev0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qmk_skim-0.4.4.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 a53f086cc564b3e02bc2fbaad087e161e6aafa007cb6155af14c3a54fcd1a0db
MD5 5473f25c91c1d37dd162cbec438225c8
BLAKE2b-256 87f532db89b5b992728b3a4de62ac5ba8f32357fb17302d555443e8f01335dae

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmk_skim-0.4.4.dev0-py3-none-any.whl:

Publisher: publish.yml on Townk/skim

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