launch_frontend_py.entity module
Module for launch_frontend_py Entity class.
- class launch_frontend_py.entity.Entity(*args: Any, **kwargs: Any)
Bases:
EntitySingle item in the intermediate front_end representation.
- assert_entity_completely_parsed()
- property children: List[launch.frontend.entity.Entity]
Get the Entity’s children.
- get_attr(name: str, *, data_type: launch.utilities.type_utils.AllowedTypesType = <class 'str'>, optional: bool = False, can_be_str: bool = True) launch.utilities.type_utils.AllowedValueType | List[Entity] | None
Access an attribute of the entity.
See
launch.frontend.Entity.get_attr(). Does not apply type coercion, only checks if the read value is of the correct type.
- property type_name: str
Get Entity type.
- launch_frontend_py.entity.is_reserved_identifier(name: str) bool
Check if a name is a reserved identifier in Python.
Used to avoid naming issues in the launch DSL that overlap with Python reserved words.
- launch_frontend_py.entity.make_valid_name(name: str) str
Make a valid Python identifier for an action or attribute name.
If the name is a reserved identifier in Python, append an underscore to it.