mirror of
https://github.com/zap-proto/spec.git
synced 2026-10-30 15:04:03 +00:00
- Add native .zap schema files (zap.zap, addressbook.zap) - Refactor Python bindings to zap_schema module - Add zapc schema compiler binary - Update Rust client/server/crypto/identity modules - Add release workflow and build scripts - Update TypeScript package configuration - Add LLM documentation for AI assistants
21 lines
515 B
Python
21 lines
515 B
Python
"""ZAP server implementation."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .config import Config
|
|
|
|
|
|
class Server:
|
|
"""ZAP server."""
|
|
|
|
def __init__(self, config: Config | None = None) -> None:
|
|
self.config = config or Config()
|
|
|
|
async def run(self) -> None:
|
|
"""Run the server."""
|
|
addr = f"{self.config.listen}:{self.config.port}"
|
|
print(f"ZAP server listening on {addr}")
|
|
# TODO: Start Cap'n Proto RPC server
|
|
import asyncio
|
|
await asyncio.Event().wait()
|