-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (142 loc) · 4.05 KB
/
Copy pathpyproject.toml
File metadata and controls
161 lines (142 loc) · 4.05 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[project]
name = "blaxel"
version = "0.2.0"
description = "Blaxel - AI development platform SDK"
readme = "README.md"
authors = [{ name = "cploujoux", email = "cploujoux@blaxel.ai" }]
requires-python = ">=3.10,<3.15"
dependencies = [
# Core dependencies that are always needed
"pydantic>=2.0.0",
"pyjwt>=2.0.0",
"python-dateutil>=2.8.0",
"pyyaml>=6.0.0",
"requests>=2.32.3",
"tomli>=2.0.2",
"websockets<17.0.0",
"attrs>=21.3.0",
"httpx>=0.27.0",
# mcp 2.0.0 removed mcp.server.fastmcp, which core/mcp/server.py subclasses.
# Cap until that surface is migrated; an unbounded range let a major bump
# break every fresh install (CI resolves outside uv.lock via `uv pip install`).
"mcp>=1.9.4,<2.0.0",
"dockerfile-parse>=2.0.0",
]
[project.optional-dependencies]
# Core functionality (always include blaxel.core dependencies)
core = []
# Telemetry module
telemetry = [
"opentelemetry-exporter-otlp>=1.28.0",
"opentelemetry-instrumentation-anthropic>=0.41.0",
"opentelemetry-instrumentation-cohere>=0.41.0",
"opentelemetry-instrumentation-fastapi>=0.55b0",
"opentelemetry-instrumentation-google-generativeai>=0.41.0",
"opentelemetry-instrumentation-ollama>=0.41.0",
"opentelemetry-instrumentation-openai>=0.41.0",
]
# CrewAI module
crewai = [
"crewai[litellm]>=1.9.3",
"opentelemetry-instrumentation-crewai>=0.41.0",
]
# OpenAI module
openai = ["openai-agents>=0.18.3"]
# LangGraph module
langgraph = [
"langgraph>=0.2.40",
"langchain-cohere>=0.4.3",
"langchain-community>=0.3.3",
"langchain-core>=0.3.13",
"langchain-openai>=0.3.10",
"langchain-xai>=0.2.2",
"langchain-anthropic>=0.3.10",
"opentelemetry-instrumentation-langchain>=0.35.0",
"pillow>=10.0.0",
]
# LiveKit module
livekit = [
"livekit-agents[openai,groq,anthropic,cartesia,deepgram,elevenlabs,silero,turn-detector]~=1.0",
"livekit-plugins-noise-cancellation~=0.2",
]
# LlamaIndex module
llamaindex = [
"llama-index>=0.14.13",
"llama-index-llms-anthropic>=0.6.14",
"llama-index-llms-cerebras>=0.2.2",
"llama-index-llms-cohere>=0.4.1",
"llama-index-llms-deepseek>=0.1.1",
"llama-index-llms-google-genai>=0.1.13",
"llama-index-llms-groq>=0.3.1",
"llama-index-llms-mistralai>=0.4.0,<0.10.0",
"llama-index-llms-openai>=0.3.42",
"opentelemetry-instrumentation-llamaindex>=0.40.7",
]
# Pydantic module
pydantic = ["pydantic-ai>=1.0.8"]
# Google ADK module
googleadk = ["google-adk>=2.5.0", "litellm>=1.63.11", "orjson>=3.11.6,<4.0"]
# Development dependencies
dev = ["ruff", "pyright", "pytest", "uv"]
[project.urls]
Homepage = "https://blaxel.ai"
Documentation = "https://docs.blaxel.ai"
Repository = "https://github.com/blaxel-ai/sdk-python"
Changelog = "https://docs.blaxel.ai/changelog"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["F", "I", "UP"]
ignore = ["UP006", "UP007", "UP035", "UP028"]
[tool.pyright]
# Add pyright configurations here if needed
# reportMissingImports = true
# pythonVersion = "3.9"
[tool.pytest.ini_options]
# Add pytest configurations here
# minversion = "6.0"
# addopts = "-ra -q"
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.uv]
# crewai, llamaindex, and livekit have conflicting transitive dependencies
# (openai, tokenizers, opentelemetry-sdk) and cannot be installed together.
conflicts = [
[
{ extra = "crewai" },
{ extra = "llamaindex" },
{ extra = "livekit" },
{ extra = "openai" },
{ extra = "pydantic" },
{ extra = "googleadk" },
{ extra = "langgraph" },
],
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/blaxel"]
[dependency-groups]
dev = [
"nest-asyncio>=1.6.0",
"asgi-correlation-id>=4.3.4,<6.0.0",
"fastapi>=0.115.12",
"pdoc3>=0.11.5",
"python-dotenv>=1.1.0",
"ruff>=0.8.2",
"openapi-python-client==0.25.3",
]
test = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.8.0",
"coverage>=7.0.0",
"aiohttp>=3.11.16",
"flask>=3.0.0",
"requests>=2.32.0",
"pydantic-ai>=0.0.48",
]