Helpers#
Aseba version#
- pyaseba.uses_mobsya_aseba() bool#
uses_mobsya_aseba() -> bool
Returns whether pyaseba was built against the Mobsya version of Aseba.
- Returns:
True if pyaseba uses Mobsya’s Aseba.
Zeroconf#
- pyaseba.supports_zeroconf() bool#
supports_zeroconf() -> bool
Returns whether pyaseba was built with zeroconf support.
- Returns:
True if pyaseba supports Zeroconf.
Logging#
- pyaseba.supports_logging() bool#
supports_logging() -> bool
Returns whether pyaseba was built with logging support.
- Returns:
True if pyaseba supports logging.
- pyaseba.get_logger() Logger#
Gets the pyaseba logger.
- Returns:
The logger.
- pyaseba.set_logger_level(level: int | str) None#
Sets the log level. If negative, it disables logging.
- Parameters:
level – The level, like
logging.INFO
Pretty Printing#
- pyaseba.print_description(node_id: int, description: Description | Description, prefix: str = '') None#
Pretty-prints a node description.
- Parameters:
node_id – The node id
description – The node description
prefix – Prepended to the title.