lair.dev.public_attrs#
- lair.dev.public_attrs(obj)[source]#
Return a list of public attributes of an object.
- Parameters:
obj (object) – Object to get the public attributes of.
- Returns:
list[str] – List of public attributes.
- Return type:
See also
dirLists every name, private ones included.
Examples
>>> from lair.dev import public_attrs >>> class Site: ... name = "SLC" ... _cache = {} >>> public_attrs(Site()) ['name']