forked from Tracer-Cloud/opensre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (156 loc) · 4.55 KB
/
pyproject.toml
File metadata and controls
164 lines (156 loc) · 4.55 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
162
163
164
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "opensre"
version = "2026.4.5"
description = "Open-source SRE agent for automated incident investigation and root cause analysis. Automatically analyzes alerts from Slack, Grafana, Datadog, and other tooling."
readme = "README.md"
requires-python = ">=3.12"
license = { text = "Apache-2.0" }
authors = [
{ name = "OpenSRE", email = "support@opensre.com" },
]
keywords = ["sre", "devops", "incident", "rca", "llm", "ai", "agent", "observability"]
dependencies = [
# Core AI/Agent
"anthropic>=0.77.1",
"mcp>=1.27.0",
"openai>=2.0.0",
"langsmith>=0.7.30",
"langgraph>=1.1.6",
"langgraph-sdk",
"langchain-core>=0.3.0",
"langchain-anthropic>=0.3.0",
"langchain-openai>=0.3.0",
# Data validation
"pydantic>=2.12.5,<3",
"pydantic-settings>=2.12.0,<3",
"kubernetes>=28.1.0",
# HTTP and async
"httpx>=0.27.0",
"aiohttp>=3.9.0",
"fastapi>=0.135.3",
# Authentication
"PyJWT>=2.8.0",
"cryptography>=42.0.0",
"keyring",
# AWS
"boto3>=1.42.88",
# Utilities
"python-dotenv>=1.2.2",
"click>=8.1.0",
"rich>=15.0.0",
"questionary>=2.1.1",
"prompt_toolkit>=3.0.0",
"PyYAML>=6.0",
"tzdata>=2026.1",
# OpenTelemetry
"opentelemetry-api>=1.41.0",
"opentelemetry-sdk>=1.20.0",
"opentelemetry-exporter-otlp-proto-http>=1.41.0",
"opentelemetry-instrumentation>=0.40b0",
"opentelemetry-instrumentation-botocore>=0.40b0",
"opentelemetry-instrumentation-requests>=0.40b0",
# Tracer
"tracer_decorator",
# Google APIs
"google-api-python-client>=2.194.0,<3.0.0",
"google-auth>=2.0.0,<3.0.0",
# MongoDB
"pymongo>=4.6.0,<6.0.0",
# Signature verfication for discord
"PyNaCl>=1.5.0",
# MariaDB
"pymysql>=1.1.0,<2.0.0",
"sentry-sdk>=2.59.0",
# File locking for atomic store operations
"filelock>=3.29.0",
"psutil>=5.9",
]
[project.urls]
Homepage = "https://github.com/Tracer-Cloud/opensre"
Repository = "https://github.com/Tracer-Cloud/opensre"
Issues = "https://github.com/Tracer-Cloud/opensre/issues"
Changelog = "https://github.com/Tracer-Cloud/opensre/releases"
[project.scripts]
opensre = "app.cli.__main__:main"
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.0",
"pytest>=8.0.0",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"pytest-xdist>=3.5.0",
"ruff>=0.4.0",
"mypy>=1.10.0",
"types-requests",
"types-psycopg2",
"types-PyMySQL",
"types-PyYAML",
"types-psutil",
"boto3-stubs[essential]",
"huggingface_hub>=0.26.0",
"datasets>=3.0.0",
]
opensre-hub = [
"huggingface_hub>=0.26.0",
"datasets>=3.0.0",
]
kafka = [
"confluent-kafka>=2.14.0",
]
clickhouse = [
"clickhouse-connect>=0.15.1",
]
postgresql = [
"psycopg2-binary>=2.9.0,<3.0.0",
]
azure_sql = [
"pyodbc>=5.1.0,<6.0.0",
]
[tool.setuptools.packages.find]
include = ["app*", "tests*"]
# With pytest-xdist (-n auto), each worker writes a fragment; put them under
# .pytest_cache/ (already gitignored) instead of .coverage.<hostname>.* at repo root.
[tool.coverage.run]
data_file = ".pytest_cache/.coverage"
[tool.vulture]
paths = ["app"]
exclude = [
"app/tools/simple_tools.py", # explicitly skipped by the registry
"app/dockerfile_test.py",
"app/**/*_test.py", # inline pytest modules
]
ignore_decorators = [
"@*.command", # Click / Typer subcommands
"@*.group",
"@*.callback",
"@app.*", # FastAPI routes
"@*router.*", # FastAPI sub-routers (discord_router etc.)
"@auth.on.*", # LangGraph auth callbacks
"@field_validator", # Pydantic validators
"@model_validator",
"@validator",
"@cache",
"@lru_cache",
"@tool", # @app.tools.tool_decorator.tool registrations
"@mcp.tool",
"@register*",
]
ignore_names = [
"shell_complete", "format_help", "show", # Click overrides
"_normalize_*", # Pydantic field validators
"_require_*", # Pydantic model validators
"on_thread_*", "on_assistant_*", "on_cron_*", # LangGraph auth handlers
"discord_interactions", "health_check",
"version_check", "deep_health_check",
"investigate_stream",
]
# uv installs this PEP 735 group by default (`uv sync`; omit with `--no-dev`).
# `pre-commit` is also under `[project.optional-dependencies] dev` for `pip install .[dev]`.
[dependency-groups]
dev = [
"pre-commit>=4.0.0",
"types-psutil>=7.2.2.20260408",
]