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

Method pages

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

Yield machine pages (cursor pagination).

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

Source from the content-addressed store, hash-verified

87 yield item
88
89 async def pages(
90 self, *, presence: str = "any", q: str | None = None, limit: int = 100
91 ) -> AsyncIterator[MachineList]:
92 """Yield machine pages (cursor pagination)."""
93
94 async def fetch(cursor: str | None) -> MachineList:
95 return await self.list(presence=presence, q=q, limit=limit, cursor=cursor)
96
97 async for page in self._paginate_cursor(fetch):
98 yield page
99
100 # -- stream ------------------------------------------------------------
101

Callers 1

iterMethod · 0.95

Calls 1

_paginate_cursorMethod · 0.80

Tested by

no test coverage detected