Coverage for src / beaverbunch / main.py: 100.0%

11 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-09 19:37 +0000

1from __future__ import annotations 

2 

3import uvicorn 

4 

5from beaverbunch import __version__ 

6from beaverbunch.network.config import load_runtime_config 

7 

8 

9def main() -> int: 

10 """Start the Beaverbunch lobby HTTP server.""" 

11 config = load_runtime_config() 

12 print(f"Beaverbunch {__version__} — starting lobby server on http://{config.host}:{config.port}") 

13 uvicorn.run( 

14 "beaverbunch.network.app:app", 

15 host=config.host, 

16 port=config.port, 

17 reload=False, 

18 log_level=config.log_level, 

19 proxy_headers=True, 

20 forwarded_allow_ips="*", 

21 ) 

22 return 0 

23 

24 

25if __name__ == "__main__": 

26 raise SystemExit(main())