Home

Awesome

SPKB

SolidPython-based Keyboard Builder

Action Shot

A SolidPython-based library for building custom keyboards with Python and OpenSCAD.

Some portions ported from Clojure, originally from the Dactyl Keyboard and my fork thereof, the Dactyl Lynx Keyboard.

Prerequisites

Installing dependencies

pipenv install

Usage

For simply generating interesting key testers, see the example scripts in the examples/ directory.


In your own code, you can simply import from the spkb module:

import * from spkb

See spkb/__init__.py for more detail about what's exported.

You can also import directly from the submodules, which is especially useful for objects that aren't re-exported by the top-level module:

from spkb.switch_plate import plate_thickness, mx_plate
from spkb.board_mount import stm32_blackpill
from spkb.keycaps import sa_double_length, sa_cap

Testing

You can run simple tests from some of the submodules:

pipenv run python -m spkb.switch_plate  # Renders a variety of keyswitch plates (sockets)
pipenv run python -m spkb.keycaps       # Renders the built-in keycap approximations
pipenv run python -m spkb.single_tester # Renders a single-key tester

Links

License

This project is released under the BSD 3-Clause License.