-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (138 loc) · 4.85 KB
/
pyproject.toml
File metadata and controls
156 lines (138 loc) · 4.85 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "agent-aegis"
version = "0.9.5"
description = "Auto-instrument AI agent frameworks with runtime security. One line to govern LangChain, CrewAI, OpenAI, Anthropic — injection blocking, PII masking, action policy, audit trail. Zero code changes."
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "Acacian" }]
keywords = [
"ai", "agent", "governance", "policy", "approval", "audit",
"auto-instrumentation", "guardrails", "prompt-injection", "pii-detection",
"langchain", "crewai", "openai", "anthropic", "safety",
"mcp", "cost-management", "supply-chain-security", "a2a", "observability",
"security", "compliance", "eu-ai-act", "policy-as-code", "audit-trail",
"runtime-security", "llm-security", "llm-guardrails", "toxicity-detection",
"prompt-leak-detection", "ai-agent-security", "pii-masking",
"injection-detection", "litellm", "pydantic-ai", "llamaindex",
"instructor", "dspy", "google-adk", "gemini", "selection-governance",
"policy-ci-cd", "ai-safety", "agent-security", "tool-call-policy",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
"Typing :: Typed",
"Framework :: Pytest",
]
dependencies = ["pyyaml>=6.0"]
[project.urls]
Homepage = "https://github.com/Acacian/aegis"
Documentation = "https://acacian.github.io/aegis/"
Playground = "https://acacian.github.io/aegis/playground/"
Repository = "https://github.com/Acacian/aegis"
Issues = "https://github.com/Acacian/aegis/issues"
Discussions = "https://github.com/Acacian/aegis/discussions"
Changelog = "https://github.com/Acacian/aegis/blob/main/CHANGELOG.md"
[project.optional-dependencies]
playwright = ["playwright>=1.40"]
langchain = ["langchain-core>=0.2"]
crewai = ["crewai>=0.50"]
google-adk = ["google-adk>=1.0"]
pydantic-ai = ["pydantic-ai-slim>=0.0.74"]
openai-agents = ["openai-agents>=0.1"]
anthropic = ["anthropic>=0.30"]
httpx = ["httpx>=0.27"]
mcp = ["mcp>=1.0"]
server = ["starlette>=0.37", "uvicorn>=0.29"]
redis = ["redis>=5.0"]
postgres = ["asyncpg>=0.29"]
all = [
"playwright>=1.40",
"langchain-core>=0.2",
"crewai>=0.50",
"pydantic-ai-slim>=0.0.74",
"openai-agents>=0.1",
"anthropic>=0.30",
"httpx>=0.27",
"mcp>=1.0",
"starlette>=0.37",
"uvicorn>=0.29",
"redis>=5.0",
"asyncpg>=0.29",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"ruff>=0.3",
"mypy>=1.10",
"types-PyYAML>=6.0",
"playwright>=1.40",
"httpx>=0.27",
"starlette>=0.37",
"uvicorn>=0.29",
"jsonschema>=4.0",
"pytest-benchmark>=5.0",
]
[project.scripts]
aegis = "aegis.cli.main:main"
aegis-server = "aegis.server.cli:main"
aegis-mcp-server = "aegis.mcp_server:main"
aegis-mcp-proxy = "aegis.mcp_proxy:main"
[project.entry-points.pytest11]
aegis = "aegis.pytest_plugin"
[tool.hatch.build.targets.wheel]
packages = ["src/aegis"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
target-version = "py311"
line-length = 99
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.ruff.lint.per-file-ignores]
"scripts/generate-report.py" = ["E501"]
[tool.coverage.run]
source = ["aegis"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ ==",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["playwright.*", "langchain_core.*", "langchain.*", "langgraph.*", "crewai.*", "agents.*", "httpx.*", "mcp.*", "starlette.*", "uvicorn.*", "redis.*", "asyncpg.*", "anthropic.*", "openai.*", "google.adk.*", "google.genai.*", "google.generativeai.*", "pydantic_ai.*", "llama_index.*", "litellm.*", "instructor.*", "dspy.*", "jsonschema.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["aegis.mcp_server", "aegis.mcp_proxy", "aegis.adapters.openai_agents"]
disallow_untyped_decorators = false
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = ["aegis.runtime.audit_redis", "aegis.core.rate_limiter_redis"]
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = ["aegis.integrations.patch_openai", "aegis.integrations.patch_anthropic"]
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = ["aegis.instrument.*", "aegis.adapters.*", "aegis.contrib.*"]
warn_unused_ignores = false