Core services for Socratic system: event bus, orchestrator, base services, and shared models
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Socratic Core
Core services for the Socratic system: event bus, orchestrator, base services, and shared models.
Features
- EventBus: Event-driven architecture for system-wide communication
- BaseService: Foundation class for all services
- Orchestrator: Core orchestration logic
- SharedModels: Common data structures used across the system
Installation
pip install socratic-core
Quick Start
Event Bus
import asyncio
from socratic_core import EventBus
async def main():
# Create event bus
bus = EventBus()
# Subscribe to events
async def on_event(event):
print(f"Event: {event.event_type}, Data: {event.data}")
bus.subscribe("my_event", on_event)
# Publish event
await bus.publish("my_event", "my_service", {"key": "value"})
asyncio.run(main())
Base Service
from socratic_core import BaseService
class MyService(BaseService):
"""Custom service implementation."""
async def initialize(self):
"""Initialize service."""
print(f"Initializing {self.service_name}")
async def shutdown(self):
"""Shutdown service."""
print(f"Shutting down {self.service_name}")
async def health_check(self):
"""Check service health."""
return {"status": "healthy", "service": self.service_name}
# Create and use service
service = MyService("my_service", {"key": "value"})
Dependencies
- socratic-maturity: Foundation maturity tracking
- socratic-agents: Multi-agent orchestration
- pydantic: Data validation
- loguru: Structured logging
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file socratic_core-0.1.2.tar.gz.
File metadata
- Download URL: socratic_core-0.1.2.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bab54277420c665e7711acf9b48a7f6c833d84a20ef33b4e913b8375fc07562
|
|
| MD5 |
db336967b3b8cdd5482d396374579ccc
|
|
| BLAKE2b-256 |
8f507b721d47879872585285e8a7cf614fa3d59b39bc74277fa0eecb8587dd69
|
File details
Details for the file socratic_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: socratic_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c9f5b4799ac5b7d2331f37004c1f098dd4893132bac06ea35eeb12519529148
|
|
| MD5 |
e2711b1c6197fa370eec8df3de9ac106
|
|
| BLAKE2b-256 |
5149dcd8edabc7c4cc404e43fc683376e66ab5695aa22bc20db029cd88a24f25
|