-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (102 loc) · 3.93 KB
/
pyproject.toml
File metadata and controls
119 lines (102 loc) · 3.93 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "aig-guardian"
version = "1.5.0"
description = "AI agent security with provable guarantees: capability-based access control (CaMeL-inspired), atomic execution pipelines, and safety specification verification. 165+ patterns, 25 threat categories, OWASP LLM Top 10 + MITRE ATLAS. Zero-dependency core."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
keywords = [
"llm", "security", "prompt-injection", "ai-safety",
"pii", "jailbreak", "guardrails", "owasp",
"ai-agent", "governance", "middleware", "fastapi",
"langchain", "openai", "anthropic", "mcp",
"mcp-security", "red-team", "mitre-atlas",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
]
# Zero required dependencies for the core library
dependencies = []
[project.optional-dependencies]
# YAML-based policy files
yaml = ["pyyaml>=6.0"]
# FastAPI / Starlette middleware
fastapi = ["fastapi>=0.115.0", "starlette>=0.41.0"]
# LangChain callback
langchain = ["langchain-core>=0.1.0"]
# OpenAI proxy wrapper
openai = ["openai>=1.0.0"]
# Anthropic SDK integration
anthropic = ["anthropic>=0.20.0"]
# Full SaaS server (backend + all integrations)
server = [
"aig-guardian[yaml,fastapi,openai]",
"uvicorn[standard]>=0.30.0",
"sqlalchemy>=2.0.0",
"alembic>=1.13.0",
"asyncpg>=0.29.0",
"pydantic>=2.7.0",
"pydantic-settings>=2.3.0",
"python-jose[cryptography]>=3.3.0",
"passlib[bcrypt]>=1.7.4",
"httpx>=0.27.0",
"redis>=5.0.0",
"structlog>=24.1.0",
"stripe>=8.0.0",
"reportlab>=4.0.0",
"openpyxl>=3.1.0",
]
# Everything
all = ["aig-guardian[yaml,fastapi,langchain,openai,anthropic]"]
# Development
dev = [
"aig-guardian[all]",
"pytest>=8.2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"httpx>=0.27.0",
"anyio>=4.4.0",
"ruff>=0.4.0",
"mypy>=1.10.0",
]
[project.scripts]
aig = "ai_guardian.cli:main"
[project.urls]
Homepage = "https://github.com/killertcell428/ai-guardian"
Documentation = "https://github.com/killertcell428/ai-guardian#readme"
Issues = "https://github.com/killertcell428/ai-guardian/issues"
Changelog = "https://github.com/killertcell428/ai-guardian/releases"
[tool.hatch.build.targets.wheel]
packages = ["ai_guardian"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
# Remediation hint strings in pattern files are intentionally long for readability.
# Test files may also have long assertion messages.
per-file-ignores = { "ai_guardian/filters/patterns.py" = ["E501"], "ai_guardian/patterns.py" = ["E501"], "ai_guardian/similarity.py" = ["E501"], "ai_guardian/badge.py" = ["E501"], "ai_guardian/cli.py" = ["E501", "F401"], "ai_guardian/activity.py" = ["E501"], "ai_guardian/compliance.py" = ["E501"], "ai_guardian/scanner.py" = ["E501"], "ai_guardian/multi_agent/message_scanner.py" = ["E501"], "ai_guardian/cross_session/sleeper.py" = ["E501"], "ai_guardian/cross_session/correlator.py" = ["E501"], "tests/*.py" = ["E501"] }
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
# Disable type-arg checks globally — Pattern[str] vs Pattern, dict vs dict[K,V]
# is not consistently used in the codebase and fixing it is a large refactor.
disallow_any_generics = false
# The [[tool.mypy.overrides]] section with ignore_errors = true has been
# removed. All 9 legacy modules now have proper type annotations.