Skip to content

Printing pbi_core Elements#

  1. We use __repr__ to print basic identifying information about an object. This is typically:
  2. The object's type
  3. single user-friendly identifying field (generally name)
  4. The object's id (if it has one)
  5. We use __str__ to print all meaningful information about an object. It's based on the __repr__ implementation in attrs and includes all fields except those that are:
  6. repr=False. We apply this to metadata fields such as modified_time-type fields and lineage-type fields that are not useful for general PowerBI work.
  7. Fields where the value is set to the default value for that field.