mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Stub of Python package for CLI parsing
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import asyncio
|
||||
from BIRD import BIRD
|
||||
|
||||
async def main():
|
||||
async with BIRD("/run/bird/bird.ctl") as b:
|
||||
await b.version.update()
|
||||
print(b.version)
|
||||
|
||||
await b.status.update()
|
||||
print(b.status)
|
||||
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user