-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (124 loc) · 3.35 KB
/
pyproject.toml
File metadata and controls
134 lines (124 loc) · 3.35 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "last9-genai"
version = "1.2.0"
description = "Last9 observability attributes for OpenTelemetry GenAI spans - track costs, workflows, and conversations in LLM applications"
readme = "README.md"
license = "MIT"
authors = [
{name = "Last9 Inc.", email = "[email protected]"}
]
maintainers = [
{name = "Last9 Inc.", email = "[email protected]"}
]
keywords = [
"opentelemetry",
"genai",
"llm",
"observability",
"last9",
"anthropic",
"openai",
"langchain",
"ai",
"monitoring",
"cost-tracking",
"conversation-tracking"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.10"
dependencies = [
"opentelemetry-api>=1.20.0",
"opentelemetry-sdk>=1.20.0",
]
[project.optional-dependencies]
otlp = [
"opentelemetry-exporter-otlp-proto-grpc>=1.20.0",
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=1.0.0",
"black>=23.0.0",
"mypy>=1.0.0",
"pylint>=2.17.0",
]
# Security: Use secure versions to fix vulnerabilities
# - langchain-core >= 1.2.11: Fix CVE (SSRF via image_url token counting)
# - langsmith >= 0.6.3: Fix CVE (SSRF via tracing header injection)
examples = [
"anthropic>=0.3.0",
"openai>=1.0.0",
"langchain>=1.2.10", # Includes secure langchain-core
"langchain-core>=1.2.11", # Fix SSRF vulnerability
"langsmith>=0.6.3", # Fix SSRF via header injection
"fastapi>=0.100.0",
"uvicorn>=0.23.0",
]
[project.urls]
Homepage = "https://github.com/last9/python-ai-sdk"
Documentation = "https://github.com/last9/python-ai-sdk#readme"
Repository = "https://github.com/last9/python-ai-sdk"
Issues = "https://github.com/last9/python-ai-sdk/issues"
Changelog = "https://github.com/last9/python-ai-sdk/blob/main/CHANGELOG.md"
[tool.setuptools]
packages = ["last9_genai"]
[tool.setuptools.package-data]
last9_genai = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "--cov=last9_genai --cov-report=html --cov-report=term-missing"
[tool.black]
line-length = 100
target-version = ['py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_equality = true
[tool.pylint.messages_control]
max-line-length = 100
disable = [
"missing-docstring",
"too-few-public-methods",
"too-many-arguments",
"too-many-instance-attributes",
"too-many-locals",
]
[dependency-groups]
dev = [
"pytest-asyncio>=1.2.0",
]