def _create_md_tables(
        self,
        tableData,
        viewData,
        streamData
    ):
        """generate markdown format tables from the database query results

        **Key Arguments:**
            - ``tableData`` -- the sherlock-catalogues database table metadata.
            - ``viewData`` -- the sherlock-catalogues database view metadata.
            - ``streamData`` -- the sherlock-catalogues database streamed data tables' metadata.

        **Return:**
            - None
        """
        self.log.debug('starting the ``_create_md_tables`` method')

        header = u"""
| <sub>Table Name</sub> | <sub>Description</sub> | <sub>Reference</sub> | <sub>Number Rows</sub> | <sub>Vizier</sub> | <sub>NED</sub> | <sub>Objects</sub> | <sub>Weight (1-10)</sub> |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |"""

        rows = u""
        for ti in tableData:
            table_name = ti["table_name"]
            description = ti["description"]
            url = ti["url"]
            number_of_rows = ti["number_of_rows"]
            reference_url = ti["reference_url"]
            reference_text = ti["reference_text"]
            notes = ti["notes"]
            vizier_link = ti["vizier_link"]
            in_ned = ti["in_ned"]
            object_types = ti["object_types"]
            version_number = ti["version_number"]
            last_updated = ti["last_updated"]
            legacy_table = ti["legacy_table"]
            old_table_name = ti["old_table_name"]
            weight = ti["object_type_accuracy"]

            number_of_rows = str(number_of_rows)
            thisLen = len(number_of_rows)
            newNumber = ""
            count = 0
            while count < thisLen:
                count += 1
                newNumber = number_of_rows[-count] + newNumber
                if count % 3 == 0:
                    newNumber = "," + newNumber
            if newNumber[0] == ",":
                newNumber = newNumber[1:]

            if vizier_link and len(vizier_link) and vizier_link != 0 and vizier_link != "0":
                vizier_link = u"[✓](%(vizier_link)s)" % locals()
            else:
                vizier_link = u""

            if in_ned:
                in_ned = u"✓"
            else:
                in_ned = u""

            rows += u"""
| <sub>%(table_name)s</sub> | <sub>[%(description)s](%(url)s)</sub> | <sub>[%(reference_text)s](%(reference_url)s)</sub> | <sub>%(newNumber)s</sub> | <sub>%(vizier_link)s</sub> | <sub>%(in_ned)s</sub> | <sub>%(object_types)s</sub> | <sub>%(weight)s</sub> |""" % locals()

        self.mdTables = header + rows

        header = u"""
| <sub>View Name</sub> | <sub>Number Rows</sub> | <sub>Object Type</sub> |
| :--- | :--- | :--- |"""

        rows = u""
        for ti in viewData:
            view_name = ti["view_name"]
            number_of_rows = ti["number_of_rows"]
            object_type = ti["object_type"]

            number_of_rows = str(number_of_rows)
            thisLen = len(number_of_rows)
            newNumber = ""
            count = 0
            while count < thisLen:
                count += 1
                newNumber = number_of_rows[-count] + newNumber
                if count % 3 == 0:
                    newNumber = "," + newNumber
            if newNumber[0] == ",":
                newNumber = newNumber[1:]

            rows += u"""
| <sub>%(view_name)s</sub> | <sub>%(newNumber)s</sub> | <sub>%(object_type)s</sub> |""" % locals()

        self.mdViews = header + rows

        header = u"""
| <sub>Table Name</sub> | <sub>Description</sub> | <sub>Reference</sub> | <sub>Number Rows</sub> | <sub>Objects</sub> |  
| :--- | :--- | :--- | :--- | :--- |  """

        rows = u""
        for ti in streamData:
            table_name = ti["table_name"]
            description = ti["description"]
            url = ti["url"]
            number_of_rows = ti["number_of_rows"]
            reference_url = ti["reference_url"]
            reference_text = ti["reference_text"]
            notes = ti["notes"]
            vizier_link = ti["vizier_link"]
            in_ned = ti["in_ned"]
            object_types = ti["object_types"]
            version_number = ti["version_number"]
            last_updated = ti["last_updated"]
            legacy_table = ti["legacy_table"]
            old_table_name = ti["old_table_name"]

            number_of_rows = str(number_of_rows)
            thisLen = len(number_of_rows)
            newNumber = ""
            count = 0
            while count < thisLen:
                count += 1
                newNumber = number_of_rows[-count] + newNumber
                if count % 3 == 0:
                    newNumber = "," + newNumber
            if newNumber[0] == ",":
                newNumber = newNumber[1:]

            if len(vizier_link) and vizier_link != 0 and vizier_link != "0":
                vizier_link = u"[✓](%(vizier_link)s)" % locals()
            else:
                vizier_link = u""

            if in_ned:
                in_ned = u"✓"
            else:
                in_ned = u""

            rows += u"""
| <sub>%(table_name)s</sub> | <sub>[%(description)s](%(url)s)</sub> | <sub>[%(reference_text)s](%(reference_url)s)</sub> | <sub>%(newNumber)s</sub> | <sub>%(object_types)s</sub> |""" % locals()

        self.mdStreams = header + rows

        self.log.debug('completed the ``_create_md_tables`` method')
        return
def _create_md_tables ( self , tableData , viewData , streamData ) : self . log . debug ( 'starting the ``_create_md_tables`` method' ) header = u"""
| <sub>Table Name</sub> | <sub>Description</sub> | <sub>Reference</sub> | <sub>Number Rows</sub> | <sub>Vizier</sub> | <sub>NED</sub> | <sub>Objects</sub> | <sub>Weight (1-10)</sub> |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |""" rows = u"" for ti in tableData : table_name = ti [ "table_name" ] description = ti [ "description" ] url = ti [ "url" ] number_of_rows = ti [ "number_of_rows" ] reference_url = ti [ "reference_url" ] reference_text = ti [ "reference_text" ] notes = ti [ "notes" ] vizier_link = ti [ "vizier_link" ] in_ned = ti [ "in_ned" ] object_types = ti [ "object_types" ] version_number = ti [ "version_number" ] last_updated = ti [ "last_updated" ] legacy_table = ti [ "legacy_table" ] old_table_name = ti [ "old_table_name" ] weight = ti [ "object_type_accuracy" ] number_of_rows = str ( number_of_rows ) thisLen = len ( number_of_rows ) newNumber = "" count = 0 while count < thisLen : count += 1 newNumber = number_of_rows [ - count ] + newNumber if count % 3 == 0 : newNumber = "," + newNumber if newNumber [ 0 ] == "," : newNumber = newNumber [ 1 : ] if vizier_link and len ( vizier_link ) and vizier_link != 0 and vizier_link != "0" : vizier_link = u"[✓](%(vizier_link)s)" % locals ( ) else : vizier_link = u"" if in_ned : in_ned = u"✓" else : in_ned = u"" rows += u"""
| <sub>%(table_name)s</sub> | <sub>[%(description)s](%(url)s)</sub> | <sub>[%(reference_text)s](%(reference_url)s)</sub> | <sub>%(newNumber)s</sub> | <sub>%(vizier_link)s</sub> | <sub>%(in_ned)s</sub> | <sub>%(object_types)s</sub> | <sub>%(weight)s</sub> |""" % locals ( ) self . mdTables = header + rows header = u"""
| <sub>View Name</sub> | <sub>Number Rows</sub> | <sub>Object Type</sub> |
| :--- | :--- | :--- |""" rows = u"" for ti in viewData : view_name = ti [ "view_name" ] number_of_rows = ti [ "number_of_rows" ] object_type = ti [ "object_type" ] number_of_rows = str ( number_of_rows ) thisLen = len ( number_of_rows ) newNumber = "" count = 0 while count < thisLen : count += 1 newNumber = number_of_rows [ - count ] + newNumber if count % 3 == 0 : newNumber = "," + newNumber if newNumber [ 0 ] == "," : newNumber = newNumber [ 1 : ] rows += u"""
| <sub>%(view_name)s</sub> | <sub>%(newNumber)s</sub> | <sub>%(object_type)s</sub> |""" % locals ( ) self . mdViews = header + rows header = u"""
| <sub>Table Name</sub> | <sub>Description</sub> | <sub>Reference</sub> | <sub>Number Rows</sub> | <sub>Objects</sub> |  
| :--- | :--- | :--- | :--- | :--- |  """ rows = u"" for ti in streamData : table_name = ti [ "table_name" ] description = ti [ "description" ] url = ti [ "url" ] number_of_rows = ti [ "number_of_rows" ] reference_url = ti [ "reference_url" ] reference_text = ti [ "reference_text" ] notes = ti [ "notes" ] vizier_link = ti [ "vizier_link" ] in_ned = ti [ "in_ned" ] object_types = ti [ "object_types" ] version_number = ti [ "version_number" ] last_updated = ti [ "last_updated" ] legacy_table = ti [ "legacy_table" ] old_table_name = ti [ "old_table_name" ] number_of_rows = str ( number_of_rows ) thisLen = len ( number_of_rows ) newNumber = "" count = 0 while count < thisLen : count += 1 newNumber = number_of_rows [ - count ] + newNumber if count % 3 == 0 : newNumber = "," + newNumber if newNumber [ 0 ] == "," : newNumber = newNumber [ 1 : ] if len ( vizier_link ) and vizier_link != 0 and vizier_link != "0" : vizier_link = u"[✓](%(vizier_link)s)" % locals ( ) else : vizier_link = u"" if in_ned : in_ned = u"✓" else : in_ned = u"" rows += u"""
| <sub>%(table_name)s</sub> | <sub>[%(description)s](%(url)s)</sub> | <sub>[%(reference_text)s](%(reference_url)s)</sub> | <sub>%(newNumber)s</sub> | <sub>%(object_types)s</sub> |""" % locals ( ) self . mdStreams = header + rows self . log . debug ( 'completed the ``_create_md_tables`` method' ) return
generate markdown format tables from the database query results

        **Key Arguments:**
            - ``tableData`` -- the sherlock-catalogues database table metadata.
            - ``viewData`` -- the sherlock-catalogues database view metadata.
            - ``streamData`` -- the sherlock-catalogues database streamed data tables' metadata.

        **Return:**
            - None