INNER CODE UNIT · Python
ls
pybel/pybel · src/pybel/cli.py:535
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)
for e in q:
click.echo(e.bel)
@manage.group()
def nodes():
"""Manage nodes."""