forked from Soju06/codex-lb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (115 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
126 lines (115 loc) · 3.04 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
[project]
name = "codex-lb"
version = "1.13.1"
description = "Codex load balancer and proxy for ChatGPT accounts with usage dashboard"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Soju06", email = "qlskssk@gmail.com" }]
maintainers = [
{ name = "Soju06", email = "qlskssk@gmail.com" },
{ name = "choi138", email = "kidjustinchoi@gmail.com" },
{ name = "aaiyer", email = "aaiyer0@proton.me" },
]
keywords = [
"codex",
"load-balancer",
"proxy",
"fastapi",
"chatgpt",
"rate-limit",
"usage",
"dashboard",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Framework :: FastAPI",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: Proxy Servers",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Networking",
]
requires-python = ">=3.13"
dependencies = [
"aiohttp>=3.13.3",
"aiohttp-retry>=2.9.1",
"alembic>=1.16.5",
"aiosqlite>=0.22.1",
"asyncpg>=0.30.0",
"bcrypt>=4.3.0",
"brotli>=1.2.0",
"cryptography>=46.0.3",
"python-dotenv>=1.2.1",
"fastapi[standard]>=0.128.0",
"greenlet>=3.3.0",
"pydantic>=2.12.5",
"pydantic-settings>=2.12.0",
"pyotp>=2.9.0",
"python-multipart>=0.0.21",
"psycopg[binary]>=3.2.12",
"segno>=1.6.6",
"sqlalchemy>=2.0.45",
"websockets>=16.0",
"zstandard>=0.25.0",
]
[project.optional-dependencies]
metrics = ["prometheus-client>=0.20"]
tracing = [
"opentelemetry-api>=1.25",
"opentelemetry-sdk>=1.25",
"opentelemetry-exporter-otlp>=1.25",
"opentelemetry-instrumentation-fastapi>=0.46",
"opentelemetry-instrumentation-aiohttp-client>=0.46",
"opentelemetry-instrumentation-sqlalchemy>=0.46",
]
[dependency-groups]
dev = [
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-timeout>=2.4.0",
"httpx>=0.28.1",
"ruff>=0.14.13",
"ty>=0.0.12",
"openai>=2.16.0",
"pytest-xdist>=3.8.0",
"pytest-cov>=7.1.0",
]
[tool.pytest.ini_options]
addopts = "-ra"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
markers = [
"e2e: end-to-end flow tests",
"integration: tests that exercise multiple layers together",
"unit: fast isolated tests",
]
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning:sqlalchemy",
"ignore::DeprecationWarning:aiosqlite",
"ignore::ResourceWarning",
]
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ty.src]
exclude = [".agents/hooks/"]
[tool.ty.environment]
python-version = "3.13"
[project.scripts]
codex-lb = "app.cli:main"
codex-lb-db = "app.db.migrate:main"
[build-system]
requires = ["hatchling>=1.27.0"]
build-backend = "hatchling.build"
[tool.hatch.build]
artifacts = ["app/static/**"]
[tool.hatch.build.targets.wheel]
packages = ["app","config"]