Spaces:
Running
Running
| 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()) | |