Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
188 lines (163 loc) · 4.71 KB
/
Copy pathpyproject.toml
File metadata and controls
188 lines (163 loc) · 4.71 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[project]
name = "bugtraceai-cli"
dynamic = ["version"]
description = "AI-Driven Professional Penetration Testing Framework - Autonomous offensive security scanner with LLM-powered analysis"
authors = [
{ name = "BugTraceAI Team", email = "info@bugtraceai.com" }
]
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = ">=3.10"
keywords = ["security", "penetration-testing", "vulnerability-scanning", "bug-bounty", "ai-driven"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Topic :: System :: Networking",
]
# Core runtime dependencies
dependencies = [
# CLI Framework
"typer>=0.9.0,<1.0",
"rich>=14.2.0,<15.0",
# HTTP & Async
"httpx>=0.25.0,<1.0",
"aiohttp>=3.9.0,<4.0",
"aiofiles>=23.0.0,<25.0",
# Configuration
"pydantic>=2.0.0,<3.0",
"pydantic-settings>=2.0.0,<3.0",
"python-dotenv>=1.0.0,<2.0",
# Logging
"loguru>=0.7.0,<1.0",
# Database
"sqlmodel>=0.0.16,<1.0",
"sqlalchemy>=2.0.0,<3.0",
"sqlparse>=0.4.4,<1.0",
# LLM Providers
"openai>=1.0.0,<3.0",
"google-generativeai>=0.8.0,<1.0",
"boto3>=1.40.0,<2.0",
# Security
"PyJWT>=2.8.0,<3.0",
"cryptography>=48.0.1,<49.0",
# Browser Automation (XSS validation)
"playwright>=1.40.0,<2.0",
# Vector DB (Embeddings / Cross-scan learning)
"lancedb>=0.4.0,<1.0",
# Templates & Markdown
"jinja2>=3.1.0,<4.0",
"markdown>=3.5.0,<4.0",
# Parsing & Utilities
"beautifulsoup4>=4.12.0,<5.0",
"PyYAML>=6.0.0,<7.0",
"tenacity>=8.0.0,<10.0",
"filelock>=3.12.0,<4.0",
"networkx>=3.0,<4.0",
"psutil>=5.9.0,<7.0",
# Observability
"opentelemetry-api>=1.20.0,<2.0",
"opentelemetry-sdk>=1.20.0,<2.0",
# ML / Embeddings (CPU-only PyTorch to keep size small)
# Note: PyTorch must be installed before sentence-transformers
"torch>=2.0.0",
"sentence-transformers>=2.0.0,<6.0",
]
# Optional dependencies for development
[project.optional-dependencies]
tui = [
"textual>=8.2.8,<9.0",
]
api = [
"fastapi>=0.100.0,<1.0",
"uvicorn>=0.20.0,<1.0",
"websockets>=12.0,<17.0",
"mcp>=1.20.0,<2.0",
]
dev = [
"textual>=8.2.8,<9.0",
"fastapi>=0.100.0,<1.0",
"uvicorn>=0.20.0,<1.0",
"websockets>=12.0,<17.0",
"mcp>=1.20.0,<2.0",
"pytest>=7.0.0,<10.0",
"pytest-asyncio>=0.21.0,<2.0",
"pytest-cov>=4.0.0,<5.0",
"black>=23.0.0",
"isort>=5.12.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
]
[project.urls]
Homepage = "https://github.com/BugTraceAI/BugTraceAI-CLI"
Documentation = "https://deepwiki.com/BugTraceAI/BugTraceAI-CLI"
Repository = "https://github.com/BugTraceAI/BugTraceAI-CLI.git"
Issues = "https://github.com/BugTraceAI/BugTraceAI-CLI/issues"
[project.scripts]
bugtrace = "bugtrace.__main__:app"
[tool.setuptools.packages.find]
where = ["."]
include = ["bugtrace*"]
[tool.setuptools.package-data]
"bugtrace.core.ui.tui" = ["*.tcss"]
bugtrace = [
"data/*.json",
"data/*.txt",
"data/providers/*.json",
"data/xss_batches/*.txt",
]
[tool.setuptools.dynamic]
version = { attr = "bugtrace.__version__" }
# Tooling configuration for development
[tool.black]
line-length = 120
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 120
py_version = 310
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Too strict for initial setup
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
# Live tests are never the default refactor loop. They are skipped unless
# BUGTRACE_LIVE_TESTS=1 (enforced in tests/conftest.py). Run explicitly with:
# BUGTRACE_LIVE_TESTS=1 pytest -m live
markers = [
"unit: unit tests (fast, hermetic, no external network)",
"integration: integration tests (local mocks/services; no live targets)",
"live: live network/target tests (opt-in only via BUGTRACE_LIVE_TESTS=1)",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"