Пример #1
0
def list_broadcasts():
    """
    List all registered broadcasts as a list of objects with
    keys "cast" and "onto".

    """
    casts = [{"cast": b[0], "onto": b[1]} for b in orca.list_broadcasts()]
    return jsonify(broadcasts=casts)
Пример #2
0
def list_broadcasts():
    """
    List all registered broadcasts as a list of objects with
    keys "cast" and "onto".

    """
    casts = [{'cast': b[0], 'onto': b[1]} for b in orca.list_broadcasts()]
    return jsonify(broadcasts=casts)
Пример #3
0
def schema():
    """
    All tables, columns, steps, injectables and broadcasts registered with
    Orca. Inc.des local columns on tables.

    """
    tables = orca.list_tables()
    cols = {t: orca.get_table(t).columns for t in tables}
    steps = orca.list_steps()
    injectables = orca.list_injectables()
    broadcasts = orca.list_broadcasts()

    return jsonify(tables=tables, columns=cols, steps=steps, injectables=injectables, broadcasts=broadcasts)
Пример #4
0
def schema():
    """
    All tables, columns, steps, injectables and broadcasts registered with
    Orca. Inc.des local columns on tables.

    """
    tables = orca.list_tables()
    cols = {t: orca.get_table(t).columns for t in tables}
    steps = orca.list_steps()
    injectables = orca.list_injectables()
    broadcasts = orca.list_broadcasts()

    return jsonify(
        tables=tables, columns=cols, steps=steps, injectables=injectables,
        broadcasts=broadcasts)