Major refactor of the message pump architecture: - Replace bus.py with stream_pump.py using aiostream for composable stream processing with natural fan-out via flatmap - Add to_id field to MessageState for explicit routing - Fix routing to use to_id.class format (e.g., "greeter.greeting") - Generate XSD schemas from xmlified payload classes - Fix xmlable imports (absolute -> relative) and parse_element ctx New features: - handlers/hello.py: Sample Greeting/GreetingResponse handler - config/organism.yaml: Sample organism configuration - 41 tests (31 unit + 10 integration) all passing Schema changes: - envelope.xsd: Allow any namespace payloads (##other -> ##any) Dependencies added to pyproject.toml: - aiostream>=0.5 (core dependency) - pyhumps, termcolor (for xmlable) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
No EOL
500 B
Python
28 lines
No EOL
500 B
Python
# xml_pipeline/__init__.py
|
|
"""
|
|
xml-pipeline
|
|
============
|
|
Secure, XML-centric multi-listener organism server.
|
|
|
|
Stream-based message pump with aiostream for fan-out handling.
|
|
"""
|
|
|
|
from agentserver.message_bus import (
|
|
StreamPump,
|
|
ConfigLoader,
|
|
Listener,
|
|
MessageState,
|
|
HandlerMetadata,
|
|
bootstrap,
|
|
)
|
|
|
|
__all__ = [
|
|
"StreamPump",
|
|
"ConfigLoader",
|
|
"Listener",
|
|
"MessageState",
|
|
"HandlerMetadata",
|
|
"bootstrap",
|
|
]
|
|
|
|
__version__ = "0.2.0" # Bumped for aiostream pump |