src/pybel/io/triples/api.py
def to_triples_file(
    graph: BELGraph,
    path: Union[str, TextIO],
    *,
    use_tqdm: bool = False,
    sep='\t',
    raise_on_none: bool = False
) -> None:
    """Write the graph as a TSV.

    :param graph: A BEL graph
    :param path: A path or file-like
    :param use_tqdm: Should a progress bar be shown?
    :param sep: The separator to use
    :param raise_on_none: Should an exception be raised if no triples are returned?
    :raises: NoTriplesValueError
    """
    for h, r, t in to_triples(graph, use_tqdm=use_tqdm, raise_on_none=raise_on_none):
        print(h, r, t, sep=sep, file=path)
Write the graph as a TSV.

    :param graph: A BEL graph
    :param path: A path or file-like
    :param use_tqdm: Should a progress bar be shown?
    :param sep: The separator to use
    :param raise_on_none: Should an exception be raised if no triples are returned?
    :raises: NoTriplesValueError
    
Write the graph as a TSV.
Write the graph as a TSV .
def to_triples_file(
    graph: BELGraph,
    path: Union[str, TextIO],
    *,
    use_tqdm: bool = False,
    sep='\t',
    raise_on_none: bool = False
) -> None:
    for h, r, t in to_triples(graph, use_tqdm=use_tqdm, raise_on_none=raise_on_none):
        print(h, r, t, sep=sep, file=path)
def to_triples_file ( graph : BELGraph , path : Union [ str , TextIO ] , * , use_tqdm : bool = False , sep = '\t' , raise_on_none : bool = False ) -> None : for h , r , t in to_triples ( graph , use_tqdm = use_tqdm , raise_on_none = raise_on_none ) : print ( h , r , t , sep = sep , file = path )
Write the graph as a TSV.
Write the graph as a TSV .
"""Write the graph as a TSV.

    :param graph: A BEL graph
    :param path: A path or file-like
    :param use_tqdm: Should a progress bar be shown?
    :param sep: The separator to use
    :param raise_on_none: Should an exception be raised if no triples are returned?
    :raises: NoTriplesValueError
    """
None
graph
BELGraph
A BEL graph
A BEL graph
path
Union[str, TextIO]
A path or file-like
A path or file - like
use_tqdm
bool
None
sep
The separator to use
The separator to use
raise_on_none
bool
None