voxora-orchestrator 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- voxora_orchestrator-0.1.0/PKG-INFO +18 -0
- voxora_orchestrator-0.1.0/pyproject.toml +54 -0
- voxora_orchestrator-0.1.0/setup.cfg +4 -0
- voxora_orchestrator-0.1.0/src/voxora/__init__.py +3 -0
- voxora_orchestrator-0.1.0/src/voxora/__main__.py +33 -0
- voxora_orchestrator-0.1.0/src/voxora/api.py +1763 -0
- voxora_orchestrator-0.1.0/src/voxora/campaign.py +410 -0
- voxora_orchestrator-0.1.0/src/voxora/config.py +291 -0
- voxora_orchestrator-0.1.0/src/voxora/crm/__init__.py +43 -0
- voxora_orchestrator-0.1.0/src/voxora/crm/base.py +172 -0
- voxora_orchestrator-0.1.0/src/voxora/crm/http.py +70 -0
- voxora_orchestrator-0.1.0/src/voxora/crm/squid.py +363 -0
- voxora_orchestrator-0.1.0/src/voxora/crm/sync.py +110 -0
- voxora_orchestrator-0.1.0/src/voxora/crm/webhooks.py +53 -0
- voxora_orchestrator-0.1.0/src/voxora/db.py +1939 -0
- voxora_orchestrator-0.1.0/src/voxora/eligibility.py +121 -0
- voxora_orchestrator-0.1.0/src/voxora/models.py +316 -0
- voxora_orchestrator-0.1.0/src/voxora/observability.py +48 -0
- voxora_orchestrator-0.1.0/src/voxora/pg.py +111 -0
- voxora_orchestrator-0.1.0/src/voxora/py.typed +0 -0
- voxora_orchestrator-0.1.0/src/voxora/security.py +132 -0
- voxora_orchestrator-0.1.0/src/voxora/seed.py +43 -0
- voxora_orchestrator-0.1.0/src/voxora/state.py +85 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/__init__.py +15 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/base.py +67 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/mock.py +143 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/registry.py +76 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/scripted.py +30 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/twilio.py +298 -0
- voxora_orchestrator-0.1.0/src/voxora/telephony/voice_runtime.py +182 -0
- voxora_orchestrator-0.1.0/src/voxora/voice_providers.py +395 -0
- voxora_orchestrator-0.1.0/src/voxora/voice_session_budgets.py +228 -0
- voxora_orchestrator-0.1.0/src/voxora/voice_session_checkpoints.py +317 -0
- voxora_orchestrator-0.1.0/src/voxora/voice_sessions.py +358 -0
- voxora_orchestrator-0.1.0/src/voxora/voice_turn_detection.py +228 -0
- voxora_orchestrator-0.1.0/src/voxora/voice_turn_loop.py +417 -0
- voxora_orchestrator-0.1.0/src/voxora/worker.py +35 -0
- voxora_orchestrator-0.1.0/src/voxora_orchestrator.egg-info/PKG-INFO +18 -0
- voxora_orchestrator-0.1.0/src/voxora_orchestrator.egg-info/SOURCES.txt +60 -0
- voxora_orchestrator-0.1.0/src/voxora_orchestrator.egg-info/dependency_links.txt +1 -0
- voxora_orchestrator-0.1.0/src/voxora_orchestrator.egg-info/entry_points.txt +2 -0
- voxora_orchestrator-0.1.0/src/voxora_orchestrator.egg-info/requires.txt +15 -0
- voxora_orchestrator-0.1.0/src/voxora_orchestrator.egg-info/top_level.txt +1 -0
- voxora_orchestrator-0.1.0/tests/test_api.py +413 -0
- voxora_orchestrator-0.1.0/tests/test_audience_import.py +156 -0
- voxora_orchestrator-0.1.0/tests/test_campaign_engine.py +201 -0
- voxora_orchestrator-0.1.0/tests/test_crm_contract.py +282 -0
- voxora_orchestrator-0.1.0/tests/test_eligibility.py +109 -0
- voxora_orchestrator-0.1.0/tests/test_observability.py +48 -0
- voxora_orchestrator-0.1.0/tests/test_secret_box.py +21 -0
- voxora_orchestrator-0.1.0/tests/test_session_budgets.py +213 -0
- voxora_orchestrator-0.1.0/tests/test_squid_adapter.py +198 -0
- voxora_orchestrator-0.1.0/tests/test_state_machine.py +20 -0
- voxora_orchestrator-0.1.0/tests/test_storage_compat.py +210 -0
- voxora_orchestrator-0.1.0/tests/test_twilio_adapter.py +316 -0
- voxora_orchestrator-0.1.0/tests/test_twilio_webhooks.py +275 -0
- voxora_orchestrator-0.1.0/tests/test_voice_runtime_seam.py +165 -0
- voxora_orchestrator-0.1.0/tests/test_voice_session_checkpoints.py +336 -0
- voxora_orchestrator-0.1.0/tests/test_voice_sessions.py +458 -0
- voxora_orchestrator-0.1.0/tests/test_voice_turn_detection.py +293 -0
- voxora_orchestrator-0.1.0/tests/test_webhook_replay.py +157 -0
- voxora_orchestrator-0.1.0/tests/test_worker_scheduling.py +81 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: voxora-orchestrator
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Voxora Studio authoritative campaign, call, and CRM orchestration service
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Requires-Dist: fastapi<1,>=0.115
|
|
7
|
+
Requires-Dist: uvicorn[standard]<1,>=0.30
|
|
8
|
+
Requires-Dist: pydantic<3,>=2.7
|
|
9
|
+
Requires-Dist: cryptography<47,>=42
|
|
10
|
+
Requires-Dist: psycopg[binary]<4,>=3.2
|
|
11
|
+
Provides-Extra: voice
|
|
12
|
+
Requires-Dist: voxora_voice_runtime; extra == "voice"
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: httpx<1,>=0.27; extra == "dev"
|
|
15
|
+
Requires-Dist: pytest<9,>=8; extra == "dev"
|
|
16
|
+
Requires-Dist: pytest-cov<7,>=5; extra == "dev"
|
|
17
|
+
Requires-Dist: ruff<1,>=0.6; extra == "dev"
|
|
18
|
+
Requires-Dist: mypy<2,>=1.11; extra == "dev"
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "voxora-orchestrator"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Voxora Studio authoritative campaign, call, and CRM orchestration service"
|
|
9
|
+
requires-python = ">=3.9"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"fastapi>=0.115,<1",
|
|
12
|
+
"uvicorn[standard]>=0.30,<1",
|
|
13
|
+
"pydantic>=2.7,<3",
|
|
14
|
+
"cryptography>=42,<47",
|
|
15
|
+
"psycopg[binary]>=3.2,<4",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.optional-dependencies]
|
|
19
|
+
voice = [
|
|
20
|
+
"voxora_voice_runtime",
|
|
21
|
+
]
|
|
22
|
+
dev = [
|
|
23
|
+
"httpx>=0.27,<1",
|
|
24
|
+
"pytest>=8,<9",
|
|
25
|
+
"pytest-cov>=5,<7",
|
|
26
|
+
"ruff>=0.6,<1",
|
|
27
|
+
"mypy>=1.11,<2",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
voxora = "voxora.__main__:main"
|
|
32
|
+
|
|
33
|
+
[tool.setuptools.packages.find]
|
|
34
|
+
where = ["src"]
|
|
35
|
+
|
|
36
|
+
[tool.pytest.ini_options]
|
|
37
|
+
pythonpath = ["src"]
|
|
38
|
+
testpaths = ["tests"]
|
|
39
|
+
addopts = "-ra"
|
|
40
|
+
|
|
41
|
+
[tool.ruff]
|
|
42
|
+
line-length = 100
|
|
43
|
+
target-version = "py39"
|
|
44
|
+
|
|
45
|
+
[tool.ruff.lint]
|
|
46
|
+
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
47
|
+
ignore = ["UP006", "UP007", "UP035", "UP045", "UP037", "UP012", "B008", "E501"]
|
|
48
|
+
|
|
49
|
+
[tool.mypy]
|
|
50
|
+
python_version = "3.9"
|
|
51
|
+
ignore_missing_imports = true
|
|
52
|
+
check_untyped_defs = true
|
|
53
|
+
no_implicit_optional = true
|
|
54
|
+
warn_redundant_casts = true
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Console entry point: uvicorn launcher with honest warnings."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
import os
|
|
7
|
+
|
|
8
|
+
from .api import create_app
|
|
9
|
+
from .config import Settings
|
|
10
|
+
from .observability import configure_logging
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def main() -> None:
|
|
14
|
+
settings = Settings.from_env()
|
|
15
|
+
configure_logging(settings.log_level)
|
|
16
|
+
logger = logging.getLogger(__name__)
|
|
17
|
+
logger.info(
|
|
18
|
+
"starting Voxora Studio",
|
|
19
|
+
extra={"telephony": "simulated", "live_calls_allowed": settings.allow_live_calls},
|
|
20
|
+
)
|
|
21
|
+
import uvicorn
|
|
22
|
+
|
|
23
|
+
app = create_app(settings)
|
|
24
|
+
uvicorn.run(
|
|
25
|
+
app,
|
|
26
|
+
host=os.getenv("VOXORA_HOST", "127.0.0.1"),
|
|
27
|
+
port=int(os.getenv("VOXORA_PORT", "8000")),
|
|
28
|
+
log_level=settings.log_level.lower(),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
if __name__ == "__main__":
|
|
33
|
+
main()
|