damsenviet.kle.keyboard module

class Keyboard

Bases: object

Keyboard information.

property metadata

Metadata Information.

Return type

Metadata

property keys

List of Keys.

Return type

List[Key]

classmethod from_json(keyboard_json)

Deserializes a KLE JSON into a Keyboard.

Parameters

keyboard_json (List[Union[Dict, List[Union[str, Dict]]]]) – KLE JSON to parse

Return type

Keyboard

Returns

Keyboard instance

to_json()

Serializes the Keyboard into a KLE JSON.

Return type

List[Union[Dict, List[Union[str, Dict]]]]

Returns

the KLE JSON