luma.core.cmdline¶
-
luma.core.cmdline.create_parser(description)[source]¶ Create and return command-line argument parser.
-
luma.core.cmdline.get_choices(module_name)[source]¶ Retrieve members from
module_name’s__all__list.- Return type
-
luma.core.cmdline.get_display_types()[source]¶ Get ordered dict containing available display types from available luma sub-projects.
- Return type
-
luma.core.cmdline.get_interface_types()[source]¶ Get list of available interface types, e.g.
['spi', 'i2c'].- Return type
-
luma.core.cmdline.get_library_for_display_type(display_type)[source]¶ Get library name for
display_type, e.g.ssd1306should returnoled.New in version 1.2.0.
-
luma.core.cmdline.get_library_version(module_name)[source]¶ Get version number from
module_name’s__version__attribute.New in version 1.2.0.
-
luma.core.cmdline.get_supported_libraries()[source]¶ Get list of supported libraries for the parser.
- Return type
-
luma.core.cmdline.load_config(path)[source]¶ Load device configuration from file path and return list with parsed lines.