Lineage

class based approach to interacting with lineage in Domo
token_auth = dmda.DomoTokenAuth(
    domo_instance=os.environ['DOMO_INSTANCE'],
    domo_access_token=os.environ["DOMO_ACCESS_TOKEN"],
)

source

DomoLineage

 DomoLineage (auth:domolibrary.client.DomoAuth.DomoAuth, parent_type:str,
              parent_id:Any=None, parent:Any=None,
              upstream_lineage_ls:List[Any]=None)

source

DomoLineage_Instantiation_Error

 DomoLineage_Instantiation_Error (cls_instance, message:str=None)

base exception


source

DomoLineage_Type

 DomoLineage_Type (value, names=None, module=None, qualname=None,
                   type=None, start=1)

An enumeration.

# import domolibrary.classes.DomoDataflow as dmdf

# domo_lineage = DomoLineage._for_dataflow(auth=token_auth, parent_id = 112)

# await domo_lineage.get_entity_lineage_upstream(debug_api=False, return_raw=False)
# await domo_lineage.get()
PAGE_ID  =1845973736

page_lineage = DomoLineage_Page(auth=token_auth, parent_id = PAGE_ID)
await page_lineage.get()
[DomoCard(id=42181136, title='Legal Disclaimer Notice', description='', type='Text', urn='42181136', chart_type=None, dataset_id=None, datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='68216396', display_name='Elliott Leonard', email_address='egleonard88@gmail.com', role_id=1, department='Owner', title=None, avatar_key='/api/content/v1/avatar/USER/68216396', phone_number='9702198956', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=None, reports_to='1741757362', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2021, 8, 3, 20, 12, 56), last_activity_dt=datetime.datetime(2025, 1, 31, 16, 49, 6, 622000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1884068761, title='Top Page Creators', description='TOP PAGE CREATORS\nShows the 25 users who have created the most cards.', type='kpi', urn='1884068761', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1585445967, title='Top Apps Deployed', description='TOP APPS DEPLOYED\nDisplays the apps that have been deployed, the users that have deployed the apps, and the number of times each app has been deployed.', type='kpi', urn='1585445967', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=808120245, title='Datasource Edits', description='DATASOURCE EDITS\nDisplays the amount of datasource edits in the specified time frame, grouped by edit type.', type='kpi', urn='808120245', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=142211851, title='Time Since Last Update', description='TIME SINCE LAST UPDATE\nTracks the number of datasources bucketed by the number of days since their last update.', type='kpi', urn='142211851', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1318862440, title='Card Detail Views by User', description='USER CARD DETAIL VIEWS\nShows the number of card detail views and the distinct number of users who have viewed each card.', type='kpi', urn='1318862440', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1665099781, title='DataFlow Edits', description='DATAFLOW EDITS\nDisplays the amount of DataFlow edits in the specified time frame, grouped by edit type.', type='kpi', urn='1665099781', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=2132155287, title='User Inactivity', description='USER INACTIVITY\nSorts users based on the length of time since their last login.', type='kpi', urn='2132155287', chart_type=None, dataset_id='241025d7-3cca-4369-b7c0-b3264277c0e1', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1220216181, title='Most Active Users', description="MOST ACTIVE USERS\nDisplays users based on the amount of actions they've taken.", type='kpi', urn='1220216181', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=23034969, title='Zero Logins', description='ZERO LOGINS\nDisplays the users that have been invited to Domo, but have yet to login.', type='kpi', urn='23034969', chart_type=None, dataset_id='241025d7-3cca-4369-b7c0-b3264277c0e1', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=416592750, title='Datasource Creation Log', description='DATASOURCE CREATION LOG\nDisplays datasource and DataFlow creation events over time.', type='kpi', urn='416592750', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1234148788, title='App Deployment Trend', description='APP DEPLOYMENT TREND\nShows the trend of app deployments over time.', type='kpi', urn='1234148788', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=2028417819, title='Top DataFlow Creators', description='TOP DATAFLOW CREATORS\nShows the users that have created the most DataFlows in the specified time frame.', type='kpi', urn='2028417819', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1615411439, title='Top 10 Favorited Cards', description='TOP 10 FAVORITED CARDS\nDisplays the titles of the top 10 most favorited cards.', type='kpi', urn='1615411439', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='REQUESTED', lastUpdated=1690401611946, userId='1893952720', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=2124542619, title='Top Datasource Creators', description='TOP DATASOURCE CREATORS\nDisplays the top 15 users that have created the most datasources in the specified time frame.', type='kpi', urn='2124542619', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1779753445, title='Failed Logins', description='FAILED LOGINS\nDisplays the number of failed logins over time.', type='kpi', urn='1779753445', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1019712438, title='DataFlow Creation', description='DATAFLOW CREATION\nTracks the number of DataFlows created over time, organized by creator.', type='kpi', urn='1019712438', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1988542710, title='Daily User Logins', description='DAILY USER LOGINS\nDisplays the total number of logins per day.', type='kpi', urn='1988542710', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1935570718, title='Login Trend', description='LOGIN TREND\nTracks total logins over time.', type='kpi', urn='1935570718', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=504071025, title='Card Detail Views Trend', description='CARD DETAIL VIEWS TREND\nShows the trend of card detail views over time.', type='kpi', urn='504071025', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=729248035, title='Top 10 Most Viewed Pages', description='TOP 10 MOST VIEWED PAGES\nDisplays the top 10 most viewed pages, and the total view count for each.', type='kpi', urn='729248035', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1991922726, title='Top 25 Card Creators', description='TOP 25 CARD CREATORS\nShows the 25 users that have created the highest number of cards.', type='kpi', urn='1991922726', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1663051795, title='Datasource Creation', description='DATASOURCE CREATION\nTracks the number of datasources created over time, organized by creator.', type='kpi', urn='1663051795', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1453682188, title='Top 10 Most Viewed Cards', description='TOP 10 MOST VIEWED CARDS\nDisplays the top 10 cards with the most detail views and counts the total number of detail views for each.', type='kpi', urn='1453682188', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1062244090, title='Page Views Trend', description='PAGE VIEWS TREND\nShows the trend of page views over time.', type='kpi', urn='1062244090', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=916386766, title='Login Rate - Last 14 Days', description='LOGIN RATE - LAST 14 DAYS\nShows the percentage of users that logged into Domo during the given time period. The default date range is set to the last 14 days but can be adjusted in Beast Mode.', type='kpi', urn='916386766', chart_type=None, dataset_id='241025d7-3cca-4369-b7c0-b3264277c0e1', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=249915592, title='Top 10 Card Viewers', description='TOP 10 CARD VIEWERS\nShows the top 10 viewers based on their total number of card detail views.', type='kpi', urn='249915592', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=93905300, title='Page Views by User', description='PAGE VIEWS BY USER\nShows the number of times each page has been viewed, and the number of distinct users who have viewed the page.', type='kpi', urn='93905300', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=919721869, title='User Action Log', description='USER ACTION LOG\nTracks every user action in your Domo instance.', type='kpi', urn='919721869', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1536835520, title='Password Resets', description="PASSWORD RESETS\nDisplays users based on the amount of times they've reset their password.", type='kpi', urn='1536835520', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1610879450, title='Top 10 Page Viewers', description='TOP 10 PAGE VIEWERS\nShows the top 10 viewers based on total page views.', type='kpi', urn='1610879450', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)]),
 DomoCard(id=1111843222, title='Top Beast Mode Creators', description='TOP BEAST MODE CREATORS\nShows the users that have created the most calculated fields in the specified time frame.', type='kpi', urn='1111843222', chart_type=None, dataset_id='61c4e63d-0627-41f7-b138-74968ebd7634', datastore_id=None, domo_collections=None, domo_source_code=None, certification=DictDot(state='NOT_CERTIFIED', adminCertified=False), owners=[DomoUser(id='587894148', display_name='Bryan Van Kampen', email_address='bryan@bvankampen.net', role_id=1, department='BT Partners', title='Executive Analytics', avatar_key='/api/content/v1/avatar/USER/587894148', phone_number='6304647034', web_landing_page=None, web_mobile_landing_page=None, employee_id=None, employee_number=None, hire_date=1588827600000, reports_to='1893952720', publisher_domain=None, subscriber_domain=None, virtual_user_id=None, created_dt=datetime.datetime(2020, 5, 7, 17, 57, 47), last_activity_dt=datetime.datetime(2025, 1, 31, 17, 6, 32, 290000), custom_attributes={}, role=DomoRole(id=1, name='Admin', description='Full access to everything', is_system_role=True, is_default_role=None, grants=[], membership_ls=[]), domo_api_clients=None, domo_access_tokens=None)])]

source

DomoLineage_Card

 DomoLineage_Card (auth:domolibrary.client.DomoAuth.DomoAuth,
                   parent_type:str='CARD', parent_id:Any=None,
                   parent:Any=None, upstream_lineage_ls:List[Any]=None,
                   datasources:List[Any]=None)
# #| export 

# @dataclass
# class DomoLineage_Dataset(DomoLineage):
#     parent_type: str = "DATA_SOURCE"
#     datasources: List[Any] = field(repr=False, default=None)

#     async def get(self):
#         if not self.parent:
#             import domolibrary.classes.DomoCard as dmcd

#             self.parent = await dmcd.DomoCard.get_by_id(
#                 card_id=self.parent_id, auth=self.auth
#             )

#         self.datasources = await self.parent.get_datasources()

#         return self.datasources
# CARD_ID  =1766265020

# card_lineage = DomoLineage_Card(auth=token_auth, parent_id = CARD_ID)
# await card_lineage.get()

source

DomoLineage_Publication

 DomoLineage_Publication (auth:domolibrary.client.DomoAuth.DomoAuth,
                          parent_type:str='PUBLICATION',
                          parent_id:Any=None, parent:Any=None,
                          upstream_lineage_ls:List[Any]=None,
                          datasources:List[Any]=None)
pub_id = "052567d8-d1ff-46dc-b37c-fcdcb3b3ba15"

domo_lineage = DomoLineage_Publication._for_publication(auth = token_auth, parent_id = pub_id)

await domo_lineage.get()


# content = await domo_lineage.get()
# content[0]
[[DomoDataset(id='e747ac95-669f-40d6-aeb4-f3b9e769c975', display_type='webform', data_provider_type='webform', name='Accounts Receivable App', description=None, row_count=34, column_count=5, stream_id=1391, owner={'id': '68216396', 'name': 'Elliott Leonard', 'type': 'USER', 'group': False}, formula={}, Schema=DomoDataset_Schema(dataset_id='e747ac95-669f-40d6-aeb4-f3b9e769c975', columns=[]), Stream=DomoStream(id=1391, dataset_id='e747ac95-669f-40d6-aeb4-f3b9e769c975', transport_description=None, transport_version=None, update_method=None, data_provider_name=None, data_provider_key=None, account_id=None, account_display_name=None, account_userid=None, has_mapping=False, configuration=[], configuration_tables=[], configuration_query=None), Tags=DomoTags(tag_ls=[]), PDP=<domolibrary.classes.DomoPDP.Dataset_PDP_Policies object at 0x7d3762f69e80>, Certification=None)],
 [DomoDataset(id='248e93d7-1a06-422b-afe0-28159f1f07ec', display_type='api', data_provider_type='api', name='Collection Case:cbfbd7ed-ad7f-4f5f-8cd3-a1f03f25cf7c', description='Autogenerated by instance cbfbd7ed-ad7f-4f5f-8cd3-a1f03f25cf7c of form 8e975575-25e9-4fe3-8845-237398aa3f8d', row_count=5, column_count=6, stream_id=1393, owner={'id': '68216396', 'name': 'Elliott Leonard', 'type': 'USER', 'group': False}, formula={}, Schema=DomoDataset_Schema(dataset_id='248e93d7-1a06-422b-afe0-28159f1f07ec', columns=[]), Stream=DomoStream(id=1393, dataset_id='248e93d7-1a06-422b-afe0-28159f1f07ec', transport_description=None, transport_version=None, update_method=None, data_provider_name=None, data_provider_key=None, account_id=None, account_display_name=None, account_userid=None, has_mapping=False, configuration=[], configuration_tables=[], configuration_query=None), Tags=DomoTags(tag_ls=[]), PDP=<domolibrary.classes.DomoPDP.Dataset_PDP_Policies object at 0x7d3762f6bcb0>, Certification=None)],
 False]
# async def _get_entity_ls_lineage(self,
#                                  domo_entity: dmdc.DomoEntity,
#                                  full_auth=None,
#                                  session: dmda.DomoAuth = None,
#                                  debug: bool = False, debug_prn: bool = False):
#     full_auth = full_auth or self.full_auth

#     entity_attribute = f"{domo_entity.name.lower()}_id_ls"

#     return await asyncio.gather(*[self.get_entity_lineage_upstream(full_auth=full_auth,
#                                                                    entity_id=entity_id,
#                                                                    entity_type=domo_entity.value,
#                                                                    session=session,
#                                                                    debug=debug, debug_prn=debug_prn)
#                                   for entity_id in getattr(self, entity_attribute)])
# publication_id = "701eb547-4244-43f6-bcda-003ed2c483c7"


# domo_lineage = DomoLineage._for_publication(auth=token_auth, parent_id=publication_id)


# domo_lineage
# await domo_lineage.get(debug_api = True)

# domo_lineage
# # | exporti
# @patch_to(DomoLineage)
# def _flatten_lineage(self):
#     attribute_ls = _get_content_list_ls(self, [".*_id_ls$"])

#     output_ls = []

#     for attribute in attribute_ls:
#         ls_name = attribute.get("list_name")
#         entity_name = attribute.get("entity_name")
#         entity_type = dmdc.DomoEntity[entity_name.upper()].value

#         row_ls = [
#             {"entity_type": entity_type, "entity_id": row}
#             for row in getattr(self, ls_name)
#         ]
#         output_ls += row_ls

#     return output_ls