-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
23 lines (18 loc) · 696 Bytes
/
example.py
File metadata and controls
23 lines (18 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
"""
Example script showing how to use the node checker programmatically
"""
import asyncio
from check_nodes import check_chain
async def main():
# Example 1: Check Osmosis nodes (fetches from GitHub)
print("Checking Osmosis nodes...")
await check_chain("osmosis", "osmosis_report.md")
# Example 2: Check Cosmos Hub nodes (fetches from GitHub)
print("\nChecking Cosmos Hub nodes...")
await check_chain("cosmoshub", "cosmoshub_report.md")
# Example 3: Use local file
# print("\nUsing local file...")
# await check_chain("../chain-registry/juno/chain.json", "juno_report.md")
if __name__ == "__main__":
asyncio.run(main())