

def open_dxgtable(dxid, project=None, mode=None):
    '\n    :param dxid: table ID\n    :type dxid: string\n    :param mode: One of "r", "w", or "a" for read, write, and append modes, respectively\n    :type mode: string\n    :rtype: :class:`~dxpy.bindings.dxgtable.DXGTable`\n\n    Given the object ID of an existing table, returns a\n    :class:`~dxpy.bindings.dxgtable.DXGTable` object for reading (with\n    :meth:`~dxpy.bindings.dxgtable.DXGTable.get_rows`) or writing (with\n    :meth:`~dxpy.bindings.dxgtable.DXGTable.add_row` or\n    :meth:`~dxpy.bindings.dxgtable.DXGTable.add_rows`).\n\n    Example::\n\n      with open_dxgtable("gtable-xxxx") as dxgtable:\n          for row in dxgtable.get_rows():\n              print row[1] # Prints the value in the first column (after the row ID) for this row\n\n    Note that this function is shorthand for the following::\n\n        DXGTable(dxid)\n\n    '
    return DXGTable(dxid, project=project, mode=mode)

dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/bindings/dxgtable_functions.py open_dxgtable/original