-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend-python): add wrappers for nats client in lib.Service and…
… fix various bugs, add test script for development (will be deleted before merge into main)
- Loading branch information
cb0s
committed
Mar 14, 2024
1 parent
fa72884
commit 944d2d0
Showing
3 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import asyncio | ||
|
||
from telestion.backend.config import build_config, TelestionConfig | ||
from telestion.backend.lib import start_service | ||
|
||
|
||
async def main(): | ||
import sys | ||
# Put dev server address here for testing | ||
sys.argv.extend(['--dev', '--NATS_URL', 'nats://172.21.73.221:4222']) | ||
_config = build_config(TelestionConfig) | ||
print(_config) | ||
service = await start_service() | ||
await service.nc.close() | ||
|
||
|
||
if __name__ == '__main__': | ||
asyncio.run(main()) |