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

cd docs
sphinx-build -b html . _build

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.1.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.1-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file qmk_skim-0.4.1.tar.gz.

File metadata

  • Download URL: qmk_skim-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b9561918537962796538819d715cef1ebcdac4eea5a28c1725d3b96d810b50cf
MD5 280cea94f3c5ae609e43546049c22b90
BLAKE2b-256 53b5d8fea362e853b0048c55791219f99624c8cd89c6bafb364b0fb8e98b46e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmk_skim-0.4.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: qmk_skim-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f39af60e469b7b0c217581de578339d0424bcf747b5b158c39ace6068e5a4164
MD5 e5346140e05a91c78e9f6bf38b6c3c5b
BLAKE2b-256 7bfa62e87969ce0888008da5ed915a8bfc86f8050dab26dc974678df742d1333

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmk_skim-0.4.1-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