-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (93 loc) · 2.78 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (93 loc) · 2.78 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
[build-system]
requires = ["setuptools>=82.0.1", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "llm-bridge"
version = "0.1.0"
description = "A tiny, vendor-neutral wrapper for any LLM backend — one interface, pluggable providers (OpenAI, AWS Bedrock, Google Gemini, or bring your own)."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "Apache-2.0" }
authors = [{ name = "Santander AI Lab" }]
keywords = [
"llm",
"openai",
"bedrock",
"gemini",
"wrapper",
"adapter",
"vendor-neutral",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
# Zero required dependencies — the core (mock, callable) is pure stdlib.
dependencies = []
[project.optional-dependencies]
openai = ["openai>=2.44.0"]
deepseek = ["openai>=2.44.0"]
qwen = ["openai>=2.44.0"]
aws = ["boto3>=1.43.38"]
google = ["google-genai>=2.10.0"]
all = ["openai>=2.44.0", "boto3>=1.43.38", "google-genai>=2.10.0"]
dev = [
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"ruff>=0.15.20",
"black>=26.5.1",
"mypy>=2.1.0",
]
[project.urls]
Homepage = "https://github.com/SantanderAI/llm_bridge"
Repository = "https://github.com/SantanderAI/llm_bridge"
Issues = "https://github.com/SantanderAI/llm_bridge/issues"
Changelog = "https://github.com/SantanderAI/llm_bridge/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 100
target-version = "py39"
src = ["src", "tests", "examples"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "SIM"]
ignore = ["E501", "UP006", "UP007", "UP035", "UP045"]
[tool.ruff.lint.isort]
known-first-party = ["llm_bridge"]
[tool.black]
line-length = 100
target-version = ["py39"]
[tool.mypy]
# Analysis target (mypy requires >=3.10); the package itself supports 3.9+.
python_version = "3.10"
files = ["src/llm_bridge"]
warn_unused_configs = true
warn_redundant_casts = true
disallow_untyped_defs = false
no_implicit_optional = true
check_untyped_defs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
addopts = "--cov=llm_bridge --cov-report=term-missing --cov-fail-under=80"
[tool.coverage.run]
branch = true
source = ["llm_bridge"]
[tool.coverage.report]
show_missing = true
fail_under = 80
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"\\.\\.\\.",
]