How jjjjstiyyyy/apixis works
APIXIS is an asyncio library with two composable runtimes: an event system and a stateful graph orchestrator. The documented graph workflow is to build and compile a graph, invoke it with state, and receive the resulting state; graph nodes can issue commands, run in parallel, stream output, and support interruption and resume. The event runtime provides subscriptions, ordered handlers, backpressure, and a local queue. Relationships use README statements and SOURCE INDEX references; unsampled implementation details are not assumed.
Main entry points: node_graph.py Graph runtime · factory.py Event core factory · event_loop.py Event dispatch loop · manager.py Context access
Components 22
Graph runtime
- Graph manager
source/apixis/core/graph/graph_manager.py - Graph runtime
source/apixis/core/graph/node_graph.py - Graph nodes
source/apixis/core/graph/node.py - Commands and state
source/apixis/core/graph/base.py - Invocation context
source/apixis/core/graph/context/graph_context.py - Context access
source/apixis/core/graph/context/manager.py - Stream writer
source/apixis/core/graph/context/stream_writer.py - Graph namespaces
source/apixis/core/graph/utils/namespace.py - Interrupt and resume
source/apixis/core/graph/interrupter/graph_interrupter.py - Interrupt block
source/apixis/core/graph/interrupter/block.py
Event runtime
- Event core factory
source/apixis/core/event/factory.py - Local event queue
source/apixis/core/event/event_pipe.py - Event dispatch loop
source/apixis/core/event/event_loop.py - Event registry
source/apixis/core/event/event_registry.py - Handler registry
source/apixis/core/event/handler_registry.py - Handlers and subscriptions
source/apixis/core/event/base.py - Subscription API
source/apixis/core/event/subscription.py
Shared support
- Runtime configuration
source/apixis/core/config/core_config.py - Logging
source/apixis/core/utils/logger.py - Runtime exceptions
source/apixis/core/utils/exception.py - ID generation
source/apixis/core/utils/id_generator.py
Other components
- Asyncio application
Connections 31
- Asyncio application → Graph manager: builds graph
README.md - Graph manager → Graph runtime: compiles graph
source/apixis/core/graph/graph_manager.py - Asyncio application → Graph runtime: invokes graph
README.md - Graph runtime → Graph nodes: executes nodes
source/apixis/core/graph/node_graph.py - Graph nodes → Commands and state: returns commands
source/apixis/core/graph/node.py - Graph runtime → Commands and state: applies updates
source/apixis/core/graph/node_graph.py - Graph runtime → Invocation context: binds invocation
source/apixis/core/graph/node_graph.py - Context access → Invocation context: reads context
source/apixis/core/graph/context/manager.py - Context access → Stream writer: gets writer
source/apixis/core/graph/context/manager.py - Context access → Graph namespaces: resolves namespace
source/apixis/core/graph/context/manager.py - Graph runtime → Context access: binds node context
source/apixis/core/graph/node_graph.py - Graph runtime → Graph namespaces: claims namespace
source/apixis/core/graph/utils/namespace.py - Graph runtime → Interrupt and resume: handles interruptions
source/apixis/core/graph/node_graph.py - Interrupt and resume → Interrupt block: creates block
source/apixis/core/graph/interrupter/graph_interrupter.py - Interrupt and resume → Event core factory: gets event pipe
source/apixis/core/graph/interrupter/graph_interrupter.py - Graph runtime → Event core factory: posts dispatch
source/apixis/core/graph/node_graph.py - Event core factory → Local event queue: constructs core
source/apixis/core/event/factory.py - Event core factory → Event dispatch loop: constructs core
source/apixis/core/event/factory.py - Event core factory → Event registry: constructs core
source/apixis/core/event/factory.py - Event core factory → Handler registry: constructs core
source/apixis/core/event/factory.py - Event dispatch loop → Local event queue: consumes events
source/apixis/core/event/event_loop.py - Event dispatch loop → Handler registry: selects handlers
source/apixis/core/event/event_loop.py - Event dispatch loop → Event registry: resolves events
source/apixis/core/event/event_loop.py - Handler registry → Event registry: matches event names
source/apixis/core/event/handler_registry.py - Handlers and subscriptions → Logging: logs execution
source/apixis/core/event/base.py - Subscription API → Event core factory: gets event core
source/apixis/core/event/subscription.py - Local event queue → Runtime configuration: reads settings
- Logging → Runtime configuration: reads settings
source/apixis/core/utils/logger.py - Graph runtime → ID generation: generates IDs
source/apixis/core/graph/node_graph.py - Graph runtime → Runtime exceptions: raises runtime errors
source/apixis/core/graph/node_graph.py - Handler registry → Runtime exceptions: raises registration errors
source/apixis/core/event/handler_registry.py