INNER CODE UNIT · Python

neo

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

def neo(graph: BELGraph, connection: str, password: str):
    """Upload to neo4j."""
    import py2neo

    neo_graph = py2neo.Graph(connection, password=password)
    to_neo4j(graph, neo_graph)


@main.command()
@click.pass_obj
@click.argument("agents", nargs=-1)
@click.option("--local", is_flag=True, help="Upload to local database.")
@host_option
def machine(manager: Manager, agents: list[str], local: bool, host: str):
    """Get content from the INDRA machine and upload to BEL Commons."""
    from indra.sources import indra_db_rest

    from pybel import from_indra_statements

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…