-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (126 loc) · 3.3 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (126 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[project]
name = "openrtc"
description = "Run multiple LiveKit voice agents in a single shared worker process."
readme = "README.md"
requires-python = ">=3.11,<3.14"
license = "MIT"
authors = [{ name = "Mahimai Raja J", email = "hello@mahimai.dev" }]
keywords = ["agents", "ai", "audio", "livekit", "openrtc", "realtime", "webrtc"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"watchfiles>=0.21,<2",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/mahimailabs/openrtc-runtime"
Documentation = "https://openrtc.mintlify.app"
Issues = "https://github.com/mahimailabs/openrtc-runtime/issues"
Repository = "https://github.com/mahimailabs/openrtc-runtime"
Changelog = "https://openrtc.mintlify.app/changelog"
[project.scripts]
openrtc = "openrtc.cli:main"
[project.optional-dependencies]
# The livekit backend (the default). Install `openrtc[livekit]` to run it.
livekit = [
"livekit-agents[openai,silero,turn-detector]>=1.5,<1.7",
]
# The pipecat backend. Install `openrtc[pipecat]` to run it.
pipecat = [
"pipecat-ai>=1.5,<2",
]
# The pipecat serving front (run()): pipecat's FastAPI dev runner (adds FastAPI +
# uvicorn). Install `openrtc[pipecat-serve]` to accept live calls over a transport.
pipecat-serve = [
"pipecat-ai[runner]>=1.5,<2",
]
cli = [
"rich>=13",
"typer>=0.12",
]
# `openrtc top`'s worker-stats header (CPU / MEM / LOAD / SWAP / NET via psutil).
# Optional: without it the live inspector still runs, the header shows `n/a`.
top = [
"psutil>=7",
]
[dependency-groups]
dev = [
# The dev/test suite exercises both backends, so pull their extras in.
# pipecat-serve is a superset of pipecat (adds the FastAPI runner for run()).
"openrtc[livekit]",
"openrtc[pipecat-serve]",
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"psutil>=7",
"pytest>=9.0.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"python-dotenv>=1.2.2",
"rich>=13",
"ruff>=0.15.6",
"typer>=0.12",
]
[build-system]
requires = ["hatch-vcs", "hatchling"]
build-backend = "hatchling.build"
[tool.coverage.run]
branch = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
root = "."
fallback_version = "0.1.0.dev0"
[tool.hatch.build.targets.wheel]
packages = ["src/openrtc"]
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
[tool.pyright]
typeCheckingMode = "off"
[tool.pytest.ini_options]
markers = [
"integration: slower tests; some require a LiveKit dev server (see docker-compose.test.yml)",
]
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"B",
"C4",
"UP",
"SIM",
"PT",
"RET",
"PERF",
"PIE",
"ICN",
"TID",
"BLE",
"A",
]
ignore = [
"E501",
"B008",
"C901",
"W191",
# SIM117 (single `with` for nested contexts) hurts readability for tests
# that arrange complex monkey-patches plus run_test() pilots; skip it.
"SIM117",
]
[tool.ruff.lint.per-file-ignores]
"tests/conftest.py" = ["E402"]