INNER CODE UNIT · Python

edges

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

def edges():
    """Manage edges."""


@edges.command()
@click.option("--offset", type=int)
@click.option("--limit", type=int, default=10)
@click.pass_obj
def ls(manager: Manager, offset: int | None, limit: int | None):
    """List edges."""
    q = manager.session.query(Edge)

    if offset:
        q = q.offset(offset)

    if limit > 0:
        q = q.limit(limit)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…