Spaces:
Running
Running
File size: 389 Bytes
afd56bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import asyncio
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), 'backend'))
from backend.core.parp_client import PARPClient
async def test():
client = PARPClient()
res = await client.get_active_nabory()
print(f"PARP Grants: {len(res)}")
for grant in res:
print(f"- {grant['name']}")
if __name__ == "__main__":
asyncio.run(test())
|