MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / iter

Method iter

python/src/cmdop/resources/machines.py:81–87  ·  view source on GitHub ↗

Yield every machine, transparently following ``next_cursor``.

(
        self, *, presence: str = "any", q: str | None = None, limit: int = 100
    )

Source from the content-addressed store, hash-verified

79 # -- pagination --------------------------------------------------------
80
81 async def iter(
82 self, *, presence: str = "any", q: str | None = None, limit: int = 100
83 ) -> AsyncIterator[Any]:
84 """Yield every machine, transparently following ``next_cursor``."""
85 async for page in self.pages(presence=presence, q=q, limit=limit):
86 for item in page.items:
87 yield item
88
89 async def pages(
90 self, *, presence: str = "any", q: str | None = None, limit: int = 100

Callers

nothing calls this directly

Calls 1

pagesMethod · 0.95

Tested by

no test coverage detected