damsenviet.kle package¶
-
class
Keyboard¶ Bases:
objectKeyboard information.
-
classmethod
from_json(keyboard_json)¶ Deserializes a KLE JSON into a Keyboard.
-
classmethod
-
class
Metadata¶ Bases:
objectMetadata information.
Author’s name.
- Return type
-
property
background¶ Background of the keyboard.
- Return type
-
property
include_switches_pcb_mounted¶ Whether to force include switch pcb mounting in the KLE JSON.
- Return type
-
class
Key¶ Bases:
objectKey information.
-
property
default_text_color¶ Default CSS text color.
Only used to optimize the KLE JSON size.
- Return type
-
property
default_text_size¶ Default text size.
Only used to optimize the KLE JSON size.
-
property
-
json_dump_options= {'allow_nan': True, 'check_circular': True, 'cls': None, 'default': None, 'ensure_ascii': True, 'indent': 2, 'separators': None, 'skipkeys': False, 'sort_keys': False} Kwargs to be spread into
json.dumporjson.dumpsto match KLE JSON format.json.dumps(keyboard.to_json(), **json_dump_options)