Exemplo n.º 1
0
def component_types_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Type"]),
            wrap_text(row["Description"]),
        ])
    return tabulate(
        tablerows,
        headers=["Type", "Description"],
        tablefmt="github",
    )
Exemplo n.º 2
0
def list_occurrences_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["TierId"]),
            wrap_text(row["ComponentId"]),
            wrap_text(row["Name"]),
            wrap_text(row["Type"]),
        ])
    return tabulate(tablerows,
                    headers=["TierId", "ComponentId", "Name", "Type"],
                    tablefmt="github")
Exemplo n.º 3
0
def layer_list_data_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Name"]),
            wrap_text(row["Id"]),
            wrap_text(row["Type"]),
            wrap_text(row["Active"]),
        ])
    return tabulate(tablerows,
                    headers=["Name", "Id", "Type", "Active"],
                    tablefmt="github")
Exemplo n.º 4
0
def layer_types_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Type"]),
            wrap_text(row["ReferenceLookupType"]),
            wrap_text(row["Description"]),
        ])
    return tabulate(
        tablerows,
        headers=["Type", "ReferenceLookupType", "Description"],
        tablefmt="github",
    )
Exemplo n.º 5
0
def entrances_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Type"]),
            wrap_text(row["Description"]),
        ])
    return tabulate(
        tablerows,
        headers=["Type", "Description"],
        showindex=True,
        tablefmt="fancy_grid",
    )
Exemplo n.º 6
0
def engine_locations_table(data):
    tablerows = []
    for row in data:
        tablerows.append(
            [
                wrap_text(row["name"]),
                wrap_text(row["description"]),
            ]
        )
    return tabulate(
        tablerows,
        headers=["Name", "Description"],
        tablefmt="github",
    )
Exemplo n.º 7
0
def schema_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Schema"]),
        ])
    return tabulate(tablerows, headers=["Schema"], tablefmt="github")
Exemplo n.º 8
0
def list_runbooks_table(data):
    tablerows = []
    for row in data:
        tablerows.append(
            [
                wrap_text(row["Name"]),
                wrap_text(row["Description"]),
                wrap_text(row["Engine"]),
            ]
        )
    return tabulate(
        tablerows,
        headers=[
            "Name",
            "Description",
            "Engine",
        ],
        tablefmt="github",
    )
Exemplo n.º 9
0
def deployments_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["DeploymentGroup"]),
            wrap_text(row["DeploymentUnit"]),
            wrap_text(row["DeploymentProvider"]),
            wrap_text(row["CurrentState"]),
            wrap_text(row["District"]),
        ])
    return tabulate(
        tablerows,
        headers=[
            "Deployment Group",
            "Deployment Unit",
            "Provider",
            "State",
            "District",
        ],
        tablefmt="github",
    )