Files
soleprint/artery/__init__.py
2025-12-31 09:07:27 -03:00

48 lines
1.9 KiB
Python

"""
Artery - Todo lo vital
Connectors to external services.
Hierarchy (simple → complex):
Vein ──────► Pulse ──────► Plexus
│ │ │
│ │ └── Full app: backend + frontend + DB
│ │ (e.g., WhatsApp with chat UI)
│ │
│ └── Composed: Vein + Room + Depot
│ (e.g., Jira vein configured for specific project)
└── Stateless API connector
(e.g., Jira client, Slack client)
Shunt ─── Fake connector for testing
(e.g., mercadopago shunt with configurable responses)
Components:
- veins/ Stateless connectors (core/ + api/)
- pulses/ Composed: Vein + Room + Depot
- plexuses/ Full applications with frontend
- shunts/ Fake connectors for testing (configurable responses)
- rooms/ Environment configs
- depots/ Data storage
Differences:
| Aspect | Vein | Pulse | Plexus |
|------------|-------------------|-------------------|---------------------------|
| State | None (or OAuth) | Vein + config | Full application state |
| Frontend | Optional test UI | None (uses vein) | Required full frontend |
| Webhooks | No | No | Yes |
| Deploy | With soleprint | With soleprint | Self-contained (docker) |
| Aspect | Shunt |
|------------|---------------------------------------------------------------|
| Purpose | Fake/mock external service for testing |
| Frontend | Config UI to set responses |
| Deploy | With soleprint (replaces real vein during testing) |
"""
from . import veins