src/pybel/cli.py
def upload(graph: BELGraph, host: str, user: str, password: str):
    """Upload a graph to BEL Commons."""
    resp = to_bel_commons(graph, host=host, user=user, password=password)
    resp.raise_for_status()
    click.echo(json.dumps(resp.json()))
Upload a graph to BEL Commons.
Upload a graph to BEL Commons.
Upload a graph to BEL Commons .
def upload(graph: BELGraph, host: str, user: str, password: str):
    resp = to_bel_commons(graph, host=host, user=user, password=password)
    resp.raise_for_status()
    click.echo(json.dumps(resp.json()))
def upload ( graph : BELGraph , host : str , user : str , password : str ) : resp = to_bel_commons ( graph , host = host , user = user , password = password ) resp . raise_for_status ( ) click . echo ( json . dumps ( resp . json ( ) ) )
Upload a graph to BEL Commons.
Upload a graph to BEL Commons .
"""Upload a graph to BEL Commons."""
graph
BELGraph
host
str
user
str
password
str