INNER CODE UNIT · Python

insert

pybel/pybel · src/pybel/cli.py:302

def insert(manager, graph: BELGraph):
    """Insert a graph to the database."""
    to_database(graph, manager=manager, use_tqdm=True)


@main.command()
@graph_argument
@host_option
@user_option
@password_option
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()))


@main.command()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…