liminal-sdk-python 2026.2.0__tar.gz → 2026.3.0b0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/PKG-INFO +11 -12
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/auth/__init__.py +1 -1
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/auth/microsoft/device_code_flow.py +1 -1
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/client.py +6 -7
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/prompt/models.py +0 -4
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/helpers/model.py +1 -1
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/helpers/schema.py +1 -1
- liminal_sdk_python-2026.3.0b0/pyproject.toml +156 -0
- liminal_sdk_python-2026.2.0/pyproject.toml +0 -522
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/LICENSE +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/README.md +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/auth/microsoft/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/auth/microsoft/models.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/const.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/llm/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/llm/models.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/llm/schemas.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/prompt/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/prompt/schemas.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/thread/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/thread/models.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/thread/schemas.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/errors.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/helpers/__init__.py +0 -0
- {liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/helpers/typing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: liminal-sdk-python
|
|
3
|
-
Version: 2026.
|
|
3
|
+
Version: 2026.3.0b0
|
|
4
4
|
Summary: The Liminal SDK for Python
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -22,28 +22,27 @@ Provides-Extra: release
|
|
|
22
22
|
Provides-Extra: test
|
|
23
23
|
Requires-Dist: anyio (>=4.4.0)
|
|
24
24
|
Requires-Dist: blacken-docs (==1.20.0) ; extra == "lint"
|
|
25
|
-
Requires-Dist: codespell (==2.4.
|
|
26
|
-
Requires-Dist: cryptography (==
|
|
25
|
+
Requires-Dist: codespell (==2.4.2) ; extra == "lint"
|
|
26
|
+
Requires-Dist: cryptography (==46.0.5)
|
|
27
27
|
Requires-Dist: darglint (==1.8.1) ; extra == "lint"
|
|
28
28
|
Requires-Dist: httpx (==0.28.1)
|
|
29
29
|
Requires-Dist: liminal-sdk-python[build,lint,release,test] ; extra == "all"
|
|
30
|
-
Requires-Dist: mashumaro (==3.
|
|
31
|
-
Requires-Dist: msal (==1.
|
|
32
|
-
Requires-Dist: mypy (==1.19.
|
|
33
|
-
Requires-Dist: pre-commit (==4.5.
|
|
30
|
+
Requires-Dist: mashumaro (==3.20)
|
|
31
|
+
Requires-Dist: msal (==1.35.1)
|
|
32
|
+
Requires-Dist: mypy (==1.19.1) ; extra == "lint"
|
|
33
|
+
Requires-Dist: pre-commit (==4.5.1) ; extra == "lint"
|
|
34
34
|
Requires-Dist: pre-commit-hooks (==6.0.0) ; extra == "lint"
|
|
35
|
-
Requires-Dist: pylint (==4.0.4) ; extra == "lint"
|
|
36
35
|
Requires-Dist: pytest (==9.0.2) ; extra == "lint"
|
|
37
36
|
Requires-Dist: pytest (==9.0.2) ; extra == "test"
|
|
38
37
|
Requires-Dist: pytest-asyncio (==1.3.0) ; extra == "lint"
|
|
39
38
|
Requires-Dist: pytest-asyncio (==1.3.0) ; extra == "test"
|
|
40
|
-
Requires-Dist: pytest-cov (==7.
|
|
39
|
+
Requires-Dist: pytest-cov (==7.1.0) ; extra == "test"
|
|
41
40
|
Requires-Dist: pytest-httpx (==0.36.0) ; extra == "test"
|
|
42
41
|
Requires-Dist: requests (>=2.32.2)
|
|
43
|
-
Requires-Dist: ruff (==0.
|
|
44
|
-
Requires-Dist: tomli (==2.
|
|
42
|
+
Requires-Dist: ruff (==0.15.7) ; extra == "lint"
|
|
43
|
+
Requires-Dist: tomli (==2.4.0) ; extra == "release"
|
|
45
44
|
Requires-Dist: tomli-w (==1.2.0) ; extra == "release"
|
|
46
|
-
Requires-Dist: uv (==0.
|
|
45
|
+
Requires-Dist: uv (==0.10.12) ; extra == "build"
|
|
47
46
|
Description-Content-Type: text/markdown
|
|
48
47
|
|
|
49
48
|
# Liminal Python SDK
|
|
@@ -18,7 +18,7 @@ from liminal.errors import AuthError
|
|
|
18
18
|
DEFAULT_AUTH_CHALLENGE_TIMEOUT: Final[int] = 60
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class DeviceCodeFlowProvider(AuthProvider):
|
|
21
|
+
class DeviceCodeFlowProvider(AuthProvider):
|
|
22
22
|
"""Define a Microsoft auth provider."""
|
|
23
23
|
|
|
24
24
|
AUTHORITY_URL: Final[str] = "https://login.microsoftonline.com"
|
|
@@ -77,12 +77,12 @@ class Client:
|
|
|
77
77
|
"""
|
|
78
78
|
client = cls(api_server_url, httpx_client=httpx_client)
|
|
79
79
|
provider_access_token = await auth_provider.get_access_token()
|
|
80
|
-
liminal_auth_response = await client._request(
|
|
80
|
+
liminal_auth_response = await client._request(
|
|
81
81
|
"GET",
|
|
82
82
|
"/api/v1/auth/login/oauth/access-token",
|
|
83
83
|
headers={"Authorization": f"Bearer {provider_access_token}"},
|
|
84
84
|
)
|
|
85
|
-
client._save_session_id_from_auth_response(liminal_auth_response)
|
|
85
|
+
client._save_session_id_from_auth_response(liminal_auth_response)
|
|
86
86
|
return client
|
|
87
87
|
|
|
88
88
|
@classmethod
|
|
@@ -108,10 +108,10 @@ class Client:
|
|
|
108
108
|
|
|
109
109
|
"""
|
|
110
110
|
client = cls(api_server_url, httpx_client=httpx_client)
|
|
111
|
-
session_id_response = await client._request(
|
|
111
|
+
session_id_response = await client._request(
|
|
112
112
|
"GET", "/api/v1/users/me", cookies={"session": session_id}
|
|
113
113
|
)
|
|
114
|
-
client._save_session_id_from_auth_response(session_id_response)
|
|
114
|
+
client._save_session_id_from_auth_response(session_id_response)
|
|
115
115
|
return client
|
|
116
116
|
|
|
117
117
|
@classmethod
|
|
@@ -132,12 +132,12 @@ class Client:
|
|
|
132
132
|
|
|
133
133
|
"""
|
|
134
134
|
client = cls(api_server_url, httpx_client=httpx_client)
|
|
135
|
-
liminal_auth_response = await client._request(
|
|
135
|
+
liminal_auth_response = await client._request(
|
|
136
136
|
"POST",
|
|
137
137
|
"/api/v1/auth/test-automation/login",
|
|
138
138
|
headers={"x-test-automation-api-key": token},
|
|
139
139
|
)
|
|
140
|
-
client._save_session_id_from_auth_response(liminal_auth_response)
|
|
140
|
+
client._save_session_id_from_auth_response(liminal_auth_response)
|
|
141
141
|
return client
|
|
142
142
|
|
|
143
143
|
@property
|
|
@@ -332,7 +332,6 @@ class Client:
|
|
|
332
332
|
url = f"{self._api_server_url}{endpoint}"
|
|
333
333
|
cookie_jar = self._create_cookie_jar(cookies)
|
|
334
334
|
|
|
335
|
-
# pylint: disable=contextmanager-generator-missing-cleanup
|
|
336
335
|
async with (
|
|
337
336
|
self._get_httpx_client() as client,
|
|
338
337
|
client.stream(
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/prompt/models.py
RENAMED
|
@@ -6,7 +6,6 @@ from dataclasses import dataclass, field
|
|
|
6
6
|
|
|
7
7
|
from mashumaro import field_options
|
|
8
8
|
|
|
9
|
-
from liminal.endpoints.thread.models import DeidentifiedToken
|
|
10
9
|
from liminal.helpers.model import BaseModel
|
|
11
10
|
|
|
12
11
|
|
|
@@ -103,9 +102,6 @@ class SubmitData(BaseModel):
|
|
|
103
102
|
deidentified_input_text_data: CleanseData = field(
|
|
104
103
|
metadata=field_options(alias="deidentifiedInputTextData")
|
|
105
104
|
)
|
|
106
|
-
deidentified_context_history: list[DeidentifiedToken] = field(
|
|
107
|
-
metadata=field_options(alias="deidentifiedContextHistory")
|
|
108
|
-
)
|
|
109
105
|
llm_model: str = field(metadata=field_options(alias="llmModel"))
|
|
110
106
|
raw_llm_response_text: str = field(
|
|
111
107
|
metadata=field_options(alias="rawLLMResponseText")
|
|
@@ -7,7 +7,7 @@ from mashumaro.config import BaseConfig
|
|
|
7
7
|
class BaseModel(DataClassDictMixin):
|
|
8
8
|
"""Define a base model."""
|
|
9
9
|
|
|
10
|
-
class Config(BaseConfig):
|
|
10
|
+
class Config(BaseConfig):
|
|
11
11
|
"""Define the configuration."""
|
|
12
12
|
|
|
13
13
|
code_generation_options = ["TO_DICT_ADD_BY_ALIAS_FLAG"] # noqa: RUF012
|
|
@@ -7,7 +7,7 @@ from mashumaro.config import BaseConfig
|
|
|
7
7
|
class BaseResponseSchema(DataClassDictMixin):
|
|
8
8
|
"""Define a base response schema."""
|
|
9
9
|
|
|
10
|
-
class Config(BaseConfig):
|
|
10
|
+
class Config(BaseConfig):
|
|
11
11
|
"""Define the configuration."""
|
|
12
12
|
|
|
13
13
|
code_generation_options = ["TO_DICT_ADD_BY_ALIAS_FLAG"] # noqa: RUF012
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"poetry-core==2.3.1",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "poetry.core.masonry.api"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
classifiers = [
|
|
9
|
+
"License :: OSI Approved :: Apache Software License",
|
|
10
|
+
"Programming Language :: Python",
|
|
11
|
+
"Programming Language :: Python :: 3",
|
|
12
|
+
"Programming Language :: Python :: 3.12",
|
|
13
|
+
"Programming Language :: Python :: 3.13",
|
|
14
|
+
"Programming Language :: Python :: 3.14",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
17
|
+
]
|
|
18
|
+
dependencies = [
|
|
19
|
+
"anyio>=4.4.0",
|
|
20
|
+
"cryptography==46.0.5",
|
|
21
|
+
"httpx==0.28.1",
|
|
22
|
+
"mashumaro==3.20",
|
|
23
|
+
"msal==1.35.1",
|
|
24
|
+
"requests>=2.32.2",
|
|
25
|
+
]
|
|
26
|
+
description = "The Liminal SDK for Python"
|
|
27
|
+
license = "Apache-2.0"
|
|
28
|
+
name = "liminal-sdk-python"
|
|
29
|
+
readme = "README.md"
|
|
30
|
+
requires-python = ">=3.12,<3.15"
|
|
31
|
+
version = "2026.03.0b0"
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
all = [
|
|
35
|
+
"liminal-sdk-python[build,lint,release,test]",
|
|
36
|
+
]
|
|
37
|
+
build = [
|
|
38
|
+
"uv==0.10.12",
|
|
39
|
+
]
|
|
40
|
+
lint = [
|
|
41
|
+
"blacken-docs==1.20.0",
|
|
42
|
+
"codespell==2.4.2",
|
|
43
|
+
"darglint==1.8.1",
|
|
44
|
+
"mypy==1.19.1",
|
|
45
|
+
"pre-commit-hooks==6.0.0",
|
|
46
|
+
"pre-commit==4.5.1",
|
|
47
|
+
"pytest-asyncio==1.3.0",
|
|
48
|
+
"pytest==9.0.2",
|
|
49
|
+
"ruff==0.15.7",
|
|
50
|
+
]
|
|
51
|
+
release = [
|
|
52
|
+
"tomli==2.4.0",
|
|
53
|
+
"tomli-w==1.2.0",
|
|
54
|
+
]
|
|
55
|
+
test = [
|
|
56
|
+
"pytest==9.0.2",
|
|
57
|
+
"pytest-asyncio==1.3.0",
|
|
58
|
+
"pytest-cov==7.1.0",
|
|
59
|
+
"pytest-httpx==0.36.0",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.coverage.report]
|
|
63
|
+
exclude_lines = [
|
|
64
|
+
"TYPE_CHECKING",
|
|
65
|
+
"raise NotImplementedError",
|
|
66
|
+
]
|
|
67
|
+
fail_under = 100
|
|
68
|
+
show_missing = true
|
|
69
|
+
|
|
70
|
+
[tool.coverage.run]
|
|
71
|
+
source = [
|
|
72
|
+
"liminal",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
[tool.mypy]
|
|
76
|
+
check_untyped_defs = true
|
|
77
|
+
disallow_incomplete_defs = true
|
|
78
|
+
disallow_subclassing_any = true
|
|
79
|
+
disallow_untyped_calls = true
|
|
80
|
+
disallow_untyped_decorators = true
|
|
81
|
+
disallow_untyped_defs = true
|
|
82
|
+
follow_imports = "silent"
|
|
83
|
+
ignore_missing_imports = true
|
|
84
|
+
no_implicit_optional = true
|
|
85
|
+
platform = "linux"
|
|
86
|
+
python_version = "3.12"
|
|
87
|
+
show_error_codes = true
|
|
88
|
+
strict_equality = true
|
|
89
|
+
warn_incomplete_stub = true
|
|
90
|
+
warn_redundant_casts = true
|
|
91
|
+
warn_unreachable = true
|
|
92
|
+
warn_unused_configs = true
|
|
93
|
+
warn_unused_ignores = true
|
|
94
|
+
|
|
95
|
+
[tool.poetry]
|
|
96
|
+
authors = [
|
|
97
|
+
"Liminal AI <info@liminal.ai>",
|
|
98
|
+
]
|
|
99
|
+
packages = [
|
|
100
|
+
{ include = "liminal" },
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[tool.ruff]
|
|
104
|
+
target-version = "py311"
|
|
105
|
+
|
|
106
|
+
[tool.ruff.lint]
|
|
107
|
+
future-annotations = true
|
|
108
|
+
ignore = [
|
|
109
|
+
"A005",
|
|
110
|
+
"D202",
|
|
111
|
+
"D203",
|
|
112
|
+
"D213",
|
|
113
|
+
"PLR0913",
|
|
114
|
+
"PLW2901",
|
|
115
|
+
"PT012",
|
|
116
|
+
"TCH",
|
|
117
|
+
"COM812",
|
|
118
|
+
"COM819",
|
|
119
|
+
"D206",
|
|
120
|
+
"D300",
|
|
121
|
+
"E111",
|
|
122
|
+
"E114",
|
|
123
|
+
"E117",
|
|
124
|
+
"ISC001",
|
|
125
|
+
"ISC002",
|
|
126
|
+
"Q000",
|
|
127
|
+
"Q001",
|
|
128
|
+
"Q002",
|
|
129
|
+
"Q003",
|
|
130
|
+
"W191",
|
|
131
|
+
]
|
|
132
|
+
select = [
|
|
133
|
+
"ALL",
|
|
134
|
+
]
|
|
135
|
+
|
|
136
|
+
[tool.ruff.lint.isort]
|
|
137
|
+
combine-as-imports = true
|
|
138
|
+
force-sort-within-sections = true
|
|
139
|
+
known-first-party = [
|
|
140
|
+
"liminal",
|
|
141
|
+
"tests",
|
|
142
|
+
]
|
|
143
|
+
split-on-trailing-comma = false
|
|
144
|
+
|
|
145
|
+
[tool.ruff.lint.per-file-ignores]
|
|
146
|
+
"tests/*" = [
|
|
147
|
+
"ARG001",
|
|
148
|
+
"FBT001",
|
|
149
|
+
"PLR2004",
|
|
150
|
+
"S101",
|
|
151
|
+
"SLF001",
|
|
152
|
+
]
|
|
153
|
+
|
|
154
|
+
[tool.vulture]
|
|
155
|
+
min_confidence = 100
|
|
156
|
+
sort_by_size = true
|
|
@@ -1,522 +0,0 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = [
|
|
3
|
-
"poetry-core==2.2.1",
|
|
4
|
-
]
|
|
5
|
-
build-backend = "poetry.core.masonry.api"
|
|
6
|
-
|
|
7
|
-
[project]
|
|
8
|
-
classifiers = [
|
|
9
|
-
"License :: OSI Approved :: Apache Software License",
|
|
10
|
-
"Programming Language :: Python",
|
|
11
|
-
"Programming Language :: Python :: 3",
|
|
12
|
-
"Programming Language :: Python :: 3.12",
|
|
13
|
-
"Programming Language :: Python :: 3.13",
|
|
14
|
-
"Programming Language :: Python :: 3.14",
|
|
15
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
-
"Programming Language :: Python :: Implementation :: PyPy",
|
|
17
|
-
]
|
|
18
|
-
dependencies = [
|
|
19
|
-
"anyio>=4.4.0",
|
|
20
|
-
"cryptography==44.0.3",
|
|
21
|
-
"httpx==0.28.1",
|
|
22
|
-
"mashumaro==3.17",
|
|
23
|
-
"msal==1.34.0",
|
|
24
|
-
"requests>=2.32.2",
|
|
25
|
-
]
|
|
26
|
-
description = "The Liminal SDK for Python"
|
|
27
|
-
license = "Apache-2.0"
|
|
28
|
-
name = "liminal-sdk-python"
|
|
29
|
-
readme = "README.md"
|
|
30
|
-
requires-python = ">=3.12,<3.15"
|
|
31
|
-
version = "2026.02.0"
|
|
32
|
-
|
|
33
|
-
[project.optional-dependencies]
|
|
34
|
-
all = [
|
|
35
|
-
"liminal-sdk-python[build,lint,release,test]",
|
|
36
|
-
]
|
|
37
|
-
build = [
|
|
38
|
-
"uv==0.9.16",
|
|
39
|
-
]
|
|
40
|
-
lint = [
|
|
41
|
-
"blacken-docs==1.20.0",
|
|
42
|
-
"codespell==2.4.1",
|
|
43
|
-
"darglint==1.8.1",
|
|
44
|
-
"mypy==1.19.0",
|
|
45
|
-
"pre-commit-hooks==6.0.0",
|
|
46
|
-
"pre-commit==4.5.0",
|
|
47
|
-
"pylint==4.0.4",
|
|
48
|
-
"pytest-asyncio==1.3.0",
|
|
49
|
-
"pytest==9.0.2",
|
|
50
|
-
"ruff==0.14.8",
|
|
51
|
-
]
|
|
52
|
-
release = [
|
|
53
|
-
"tomli==2.3.0",
|
|
54
|
-
"tomli-w==1.2.0",
|
|
55
|
-
]
|
|
56
|
-
test = [
|
|
57
|
-
"pytest==9.0.2",
|
|
58
|
-
"pytest-asyncio==1.3.0",
|
|
59
|
-
"pytest-cov==7.0.0",
|
|
60
|
-
"pytest-httpx==0.36.0",
|
|
61
|
-
]
|
|
62
|
-
|
|
63
|
-
[tool.coverage.report]
|
|
64
|
-
exclude_lines = [
|
|
65
|
-
"TYPE_CHECKING",
|
|
66
|
-
"raise NotImplementedError",
|
|
67
|
-
]
|
|
68
|
-
fail_under = 100
|
|
69
|
-
show_missing = true
|
|
70
|
-
|
|
71
|
-
[tool.coverage.run]
|
|
72
|
-
source = [
|
|
73
|
-
"liminal",
|
|
74
|
-
]
|
|
75
|
-
|
|
76
|
-
[tool.mypy]
|
|
77
|
-
check_untyped_defs = true
|
|
78
|
-
disallow_incomplete_defs = true
|
|
79
|
-
disallow_subclassing_any = true
|
|
80
|
-
disallow_untyped_calls = true
|
|
81
|
-
disallow_untyped_decorators = true
|
|
82
|
-
disallow_untyped_defs = true
|
|
83
|
-
follow_imports = "silent"
|
|
84
|
-
ignore_missing_imports = true
|
|
85
|
-
no_implicit_optional = true
|
|
86
|
-
platform = "linux"
|
|
87
|
-
python_version = "3.12"
|
|
88
|
-
show_error_codes = true
|
|
89
|
-
strict_equality = true
|
|
90
|
-
warn_incomplete_stub = true
|
|
91
|
-
warn_redundant_casts = true
|
|
92
|
-
warn_unreachable = true
|
|
93
|
-
warn_unused_configs = true
|
|
94
|
-
warn_unused_ignores = true
|
|
95
|
-
|
|
96
|
-
[tool.poetry]
|
|
97
|
-
authors = [
|
|
98
|
-
"Liminal AI <info@liminal.ai>",
|
|
99
|
-
]
|
|
100
|
-
packages = [
|
|
101
|
-
{ include = "liminal" },
|
|
102
|
-
]
|
|
103
|
-
|
|
104
|
-
[tool.pylint.BASIC]
|
|
105
|
-
class-const-naming-style = "any"
|
|
106
|
-
expected-line-ending-format = "LF"
|
|
107
|
-
|
|
108
|
-
[tool.pylint.DESIGN]
|
|
109
|
-
max-attributes = 20
|
|
110
|
-
|
|
111
|
-
[tool.pylint.FORMAT]
|
|
112
|
-
max-line-length = 88
|
|
113
|
-
|
|
114
|
-
[tool.pylint.MAIN]
|
|
115
|
-
fail-on = [
|
|
116
|
-
"I",
|
|
117
|
-
]
|
|
118
|
-
jobs = 2
|
|
119
|
-
ignore = [
|
|
120
|
-
"tests",
|
|
121
|
-
]
|
|
122
|
-
init-hook = "from pathlib import Path; import sys; from pylint.config import find_default_config_files; sys.path.append( str(Path(next(find_default_config_files())).parent.joinpath('pylint/plugins'))\n ) "
|
|
123
|
-
load-plugins = [
|
|
124
|
-
"pylint.extensions.code_style",
|
|
125
|
-
"pylint.extensions.typing",
|
|
126
|
-
]
|
|
127
|
-
persistent = false
|
|
128
|
-
py-version = "3.12"
|
|
129
|
-
|
|
130
|
-
[tool.pylint."MESSAGES CONTROL"]
|
|
131
|
-
disable = [
|
|
132
|
-
# These are subjective and should be left up to the developer:
|
|
133
|
-
"abstract-method",
|
|
134
|
-
"duplicate-code",
|
|
135
|
-
"too-many-arguments",
|
|
136
|
-
"too-many-lines",
|
|
137
|
-
"too-many-locals",
|
|
138
|
-
"too-many-positional-arguments",
|
|
139
|
-
|
|
140
|
-
# Handled by ruff
|
|
141
|
-
# Ref: <https://github.com/astral-sh/ruff/issues/970>
|
|
142
|
-
"anomalous-backslash-in-string",
|
|
143
|
-
"assert-on-string-literal",
|
|
144
|
-
"assert-on-tuple",
|
|
145
|
-
"assigning-non-slot",
|
|
146
|
-
"await-outside-async",
|
|
147
|
-
"bad-classmethod-argument",
|
|
148
|
-
"bad-configuration-section",
|
|
149
|
-
"bad-docstring-quotes",
|
|
150
|
-
"bad-dunder-name",
|
|
151
|
-
"bad-format-character",
|
|
152
|
-
"bad-format-string",
|
|
153
|
-
"bad-indentation",
|
|
154
|
-
"bad-open-mode",
|
|
155
|
-
"bad-plugin-value",
|
|
156
|
-
"bad-staticmethod-argument",
|
|
157
|
-
"bad-str-strip-call",
|
|
158
|
-
"bad-string-format-type",
|
|
159
|
-
"bare-except",
|
|
160
|
-
"bidirectional-unicode",
|
|
161
|
-
"binary-op-exception",
|
|
162
|
-
"boolean-datetime",
|
|
163
|
-
"broad-exception-caught",
|
|
164
|
-
"broad-exception-raised",
|
|
165
|
-
"broken-collections-callable",
|
|
166
|
-
"broken-noreturn",
|
|
167
|
-
"cell-var-from-loop",
|
|
168
|
-
"compare-to-empty-string",
|
|
169
|
-
"comparison-of-constants",
|
|
170
|
-
"comparison-with-itself",
|
|
171
|
-
"consider-alternative-union-syntax",
|
|
172
|
-
"consider-iterating-dictionary",
|
|
173
|
-
"consider-merging-isinstance",
|
|
174
|
-
"consider-ternary-expression",
|
|
175
|
-
"consider-using-alias",
|
|
176
|
-
"consider-using-any-or-all",
|
|
177
|
-
"consider-using-augmented-assign",
|
|
178
|
-
"consider-using-dict-comprehension",
|
|
179
|
-
"consider-using-dict-items",
|
|
180
|
-
"consider-using-from-import",
|
|
181
|
-
"consider-using-generator",
|
|
182
|
-
"consider-using-get",
|
|
183
|
-
"consider-using-in",
|
|
184
|
-
"consider-using-max-builtin",
|
|
185
|
-
"consider-using-min-builtin",
|
|
186
|
-
"consider-using-set-comprehension",
|
|
187
|
-
"consider-using-sys-exit",
|
|
188
|
-
"consider-using-ternary",
|
|
189
|
-
"consider-using-with",
|
|
190
|
-
"continue-in-finally",
|
|
191
|
-
"dangerous-default-value",
|
|
192
|
-
"docstring-first-line-empty",
|
|
193
|
-
"duplicate-argument-name",
|
|
194
|
-
"duplicate-bases",
|
|
195
|
-
"duplicate-except",
|
|
196
|
-
"duplicate-key",
|
|
197
|
-
"duplicate-value",
|
|
198
|
-
"else-if-used",
|
|
199
|
-
"empty-comment",
|
|
200
|
-
"empty-docstring",
|
|
201
|
-
"eq-without-hash",
|
|
202
|
-
"eval-used",
|
|
203
|
-
"exec-used",
|
|
204
|
-
"expression-not-assigned",
|
|
205
|
-
"f-string-without-interpolation",
|
|
206
|
-
"fixme",
|
|
207
|
-
"forgotten-debug-statement",
|
|
208
|
-
"format-combined-specification",
|
|
209
|
-
"format-needs-mapping",
|
|
210
|
-
"format-string-without-interpolation",
|
|
211
|
-
"function-redefined",
|
|
212
|
-
"global-at-module-level",
|
|
213
|
-
"global-statement",
|
|
214
|
-
"global-variable-not-assigned",
|
|
215
|
-
"implicit-str-concat",
|
|
216
|
-
"import-outside-toplevel",
|
|
217
|
-
"import-private-name",
|
|
218
|
-
"import-self",
|
|
219
|
-
"inconsistent-quotes",
|
|
220
|
-
"inconsistent-return-statements",
|
|
221
|
-
"init-is-generator",
|
|
222
|
-
"invalid-all-format",
|
|
223
|
-
"invalid-all-object",
|
|
224
|
-
"invalid-bool-returned",
|
|
225
|
-
"invalid-bytes-returned",
|
|
226
|
-
"invalid-character-backspace",
|
|
227
|
-
"invalid-character-esc",
|
|
228
|
-
"invalid-character-nul",
|
|
229
|
-
"invalid-character-sub",
|
|
230
|
-
"invalid-character-zero-width-space",
|
|
231
|
-
"invalid-envvar-default",
|
|
232
|
-
"invalid-hash-returned",
|
|
233
|
-
"invalid-index-returned",
|
|
234
|
-
"invalid-length-returned",
|
|
235
|
-
"invalid-name",
|
|
236
|
-
"keyword-arg-before-vararg",
|
|
237
|
-
"line-too-long",
|
|
238
|
-
"literal-comparison",
|
|
239
|
-
"logging-format-interpolation",
|
|
240
|
-
"logging-fstring-interpolation",
|
|
241
|
-
"logging-not-lazy",
|
|
242
|
-
"logging-too-few-args",
|
|
243
|
-
"logging-too-many-args",
|
|
244
|
-
"lost-exception",
|
|
245
|
-
"magic-value-comparison",
|
|
246
|
-
"method-cache-max-size-none",
|
|
247
|
-
"misplaced-bare-raise",
|
|
248
|
-
"misplaced-comparison-constant",
|
|
249
|
-
"misplaced-future",
|
|
250
|
-
"missing-class-docstring",
|
|
251
|
-
"missing-final-newline",
|
|
252
|
-
"missing-format-argument-key",
|
|
253
|
-
"missing-format-string-key",
|
|
254
|
-
"missing-function-docstring",
|
|
255
|
-
"missing-module-docstring",
|
|
256
|
-
"mixed-format-string",
|
|
257
|
-
"modified-iterating-set",
|
|
258
|
-
"multiple-imports",
|
|
259
|
-
"multiple-statements",
|
|
260
|
-
"named-expr-without-context",
|
|
261
|
-
"nan-comparison",
|
|
262
|
-
"nested-min-max",
|
|
263
|
-
"no-classmethod-decorator",
|
|
264
|
-
"no-else-break",
|
|
265
|
-
"no-else-continue",
|
|
266
|
-
"no-else-raise",
|
|
267
|
-
"no-else-return",
|
|
268
|
-
"no-self-argument",
|
|
269
|
-
"no-self-use",
|
|
270
|
-
"no-staticmethod-decorator",
|
|
271
|
-
"non-ascii-file-name",
|
|
272
|
-
"non-ascii-module-import",
|
|
273
|
-
"non-ascii-name",
|
|
274
|
-
"nonexistent-operator",
|
|
275
|
-
"nonlocal-and-global",
|
|
276
|
-
"nonlocal-without-binding",
|
|
277
|
-
"not-in-loop",
|
|
278
|
-
"notimplemented-raised",
|
|
279
|
-
"pointless-exception-statement",
|
|
280
|
-
"pointless-statement",
|
|
281
|
-
"potential-index-error",
|
|
282
|
-
"property-with-parameters",
|
|
283
|
-
"protected-access",
|
|
284
|
-
"raise-missing-from",
|
|
285
|
-
"redefined-argument-from-local",
|
|
286
|
-
"redefined-builtin",
|
|
287
|
-
"redefined-loop-name",
|
|
288
|
-
"redundant-u-string-prefix",
|
|
289
|
-
"reimported",
|
|
290
|
-
"relative-beyond-top-level",
|
|
291
|
-
"repeated-keyword",
|
|
292
|
-
"return-arg-in-generator",
|
|
293
|
-
"return-in-init",
|
|
294
|
-
"return-outside-function",
|
|
295
|
-
"self-assigning-variable",
|
|
296
|
-
"simplifiable-if-expression",
|
|
297
|
-
"simplifiable-if-statement",
|
|
298
|
-
"single-string-used-for-slots",
|
|
299
|
-
"singledispatch-method",
|
|
300
|
-
"singledispatchmethod-function",
|
|
301
|
-
"singleton-comparison",
|
|
302
|
-
"star-needs-assignment-target",
|
|
303
|
-
"subprocess-popen-preexec-fn",
|
|
304
|
-
"subprocess-run-check",
|
|
305
|
-
"super-with-arguments",
|
|
306
|
-
"super-without-brackets",
|
|
307
|
-
"syntax-error",
|
|
308
|
-
"too-complex",
|
|
309
|
-
"too-few-format-args",
|
|
310
|
-
"too-many-arguments",
|
|
311
|
-
"too-many-boolean-expressions",
|
|
312
|
-
"too-many-branches",
|
|
313
|
-
"too-many-format-args",
|
|
314
|
-
"too-many-locals",
|
|
315
|
-
"too-many-nested-blocks",
|
|
316
|
-
"too-many-positional-arguments",
|
|
317
|
-
"too-many-public-methods",
|
|
318
|
-
"too-many-return-statements",
|
|
319
|
-
"too-many-star-expressions",
|
|
320
|
-
"too-many-statements",
|
|
321
|
-
"trailing-comma-tuple",
|
|
322
|
-
"trailing-newlines",
|
|
323
|
-
"trailing-whitespace",
|
|
324
|
-
"truncated-format-string",
|
|
325
|
-
"try-except-raise",
|
|
326
|
-
"typevar-double-variance",
|
|
327
|
-
"typevar-name-incorrect-variance",
|
|
328
|
-
"typevar-name-mismatch",
|
|
329
|
-
"undefined-all-variable",
|
|
330
|
-
"undefined-variable",
|
|
331
|
-
"unexpected-special-method-signature",
|
|
332
|
-
"ungrouped-imports",
|
|
333
|
-
"unidiomatic-typecheck",
|
|
334
|
-
"unknown-option-value",
|
|
335
|
-
"unnecessary-comprehension",
|
|
336
|
-
"unnecessary-dict-index-lookup",
|
|
337
|
-
"unnecessary-direct-lambda-call",
|
|
338
|
-
"unnecessary-dunder-call",
|
|
339
|
-
"unnecessary-ellipsis",
|
|
340
|
-
"unnecessary-lambda",
|
|
341
|
-
"unnecessary-lambda-assignment",
|
|
342
|
-
"unnecessary-pass",
|
|
343
|
-
"unnecessary-semicolon",
|
|
344
|
-
"unneeded-not",
|
|
345
|
-
"unspecified-encoding",
|
|
346
|
-
"unused-argument",
|
|
347
|
-
"unused-format-string-argument",
|
|
348
|
-
"unused-format-string-key",
|
|
349
|
-
"unused-import",
|
|
350
|
-
"unused-variable",
|
|
351
|
-
"use-a-generator",
|
|
352
|
-
"use-dict-literal",
|
|
353
|
-
"use-implicit-booleaness-not-len",
|
|
354
|
-
"use-list-literal",
|
|
355
|
-
"use-maxsplit-arg",
|
|
356
|
-
"use-sequence-for-iteration",
|
|
357
|
-
"use-set-for-membership",
|
|
358
|
-
"use-yield-from",
|
|
359
|
-
"used-before-assignment",
|
|
360
|
-
"used-prior-global-declaration",
|
|
361
|
-
"useless-else-on-loop",
|
|
362
|
-
"useless-import-alias",
|
|
363
|
-
"useless-object-inheritance",
|
|
364
|
-
"useless-option-value",
|
|
365
|
-
"useless-return",
|
|
366
|
-
"useless-with-lock",
|
|
367
|
-
"using-f-string-in-unsupported-version",
|
|
368
|
-
"wildcard-import",
|
|
369
|
-
"wrong-import-order",
|
|
370
|
-
"wrong-import-position",
|
|
371
|
-
"yield-inside-async-function",
|
|
372
|
-
"yield-outside-function",
|
|
373
|
-
|
|
374
|
-
# Handled by mypy
|
|
375
|
-
# Ref: <https://github.com/antonagestam/pylint-mypy-overlap>
|
|
376
|
-
"abstract-class-instantiated",
|
|
377
|
-
"arguments-differ",
|
|
378
|
-
"assigning-non-slot",
|
|
379
|
-
"assignment-from-no-return",
|
|
380
|
-
"assignment-from-none",
|
|
381
|
-
"bad-exception-cause",
|
|
382
|
-
"bad-format-character",
|
|
383
|
-
"bad-reversed-sequence",
|
|
384
|
-
"bad-super-call",
|
|
385
|
-
"bad-thread-instantiation",
|
|
386
|
-
"catching-non-exception",
|
|
387
|
-
"comparison-with-callable",
|
|
388
|
-
"deprecated-class",
|
|
389
|
-
"dict-iter-missing-items",
|
|
390
|
-
"format-combined-specification",
|
|
391
|
-
"global-variable-undefined",
|
|
392
|
-
"import-error",
|
|
393
|
-
"inconsistent-mro",
|
|
394
|
-
"inherit-non-class",
|
|
395
|
-
"init-is-generator",
|
|
396
|
-
"invalid-class-object",
|
|
397
|
-
"invalid-enum-extension",
|
|
398
|
-
"invalid-envvar-value",
|
|
399
|
-
"invalid-format-returned",
|
|
400
|
-
"invalid-hash-returned",
|
|
401
|
-
"invalid-metaclass",
|
|
402
|
-
"invalid-overridden-method",
|
|
403
|
-
"invalid-repr-returned",
|
|
404
|
-
"invalid-sequence-index",
|
|
405
|
-
"invalid-slice-index",
|
|
406
|
-
"invalid-slots",
|
|
407
|
-
"invalid-slots-object",
|
|
408
|
-
"invalid-star-assignment-target",
|
|
409
|
-
"invalid-str-returned",
|
|
410
|
-
"invalid-unary-operand-type",
|
|
411
|
-
"invalid-unicode-codec",
|
|
412
|
-
"isinstance-second-argument-not-valid-type",
|
|
413
|
-
"method-hidden",
|
|
414
|
-
"misplaced-format-function",
|
|
415
|
-
"missing-format-argument-key",
|
|
416
|
-
"missing-format-attribute",
|
|
417
|
-
"missing-kwoa",
|
|
418
|
-
"no-member",
|
|
419
|
-
"no-value-for-parameter",
|
|
420
|
-
"non-iterator-returned",
|
|
421
|
-
"non-str-assignment-to-dunder-name",
|
|
422
|
-
"nonlocal-and-global",
|
|
423
|
-
"not-a-mapping",
|
|
424
|
-
"not-an-iterable",
|
|
425
|
-
"not-async-context-manager",
|
|
426
|
-
"not-callable",
|
|
427
|
-
"not-context-manager",
|
|
428
|
-
"overridden-final-method",
|
|
429
|
-
"raising-bad-type",
|
|
430
|
-
"raising-non-exception",
|
|
431
|
-
"redundant-keyword-arg",
|
|
432
|
-
"relative-beyond-top-level",
|
|
433
|
-
"self-cls-assignment",
|
|
434
|
-
"signature-differs",
|
|
435
|
-
"star-needs-assignment-target",
|
|
436
|
-
"subclassed-final-class",
|
|
437
|
-
"super-without-brackets",
|
|
438
|
-
"too-many-function-args",
|
|
439
|
-
"typevar-double-variance",
|
|
440
|
-
"typevar-name-mismatch",
|
|
441
|
-
"unbalanced-dict-unpacking",
|
|
442
|
-
"unbalanced-tuple-unpacking",
|
|
443
|
-
"unexpected-keyword-arg",
|
|
444
|
-
"unhashable-member",
|
|
445
|
-
"unpacking-non-sequence",
|
|
446
|
-
"unsubscriptable-object",
|
|
447
|
-
"unsupported-assignment-operation",
|
|
448
|
-
"unsupported-binary-operation",
|
|
449
|
-
"unsupported-delete-operation",
|
|
450
|
-
"unsupported-membership-test",
|
|
451
|
-
"used-before-assignment",
|
|
452
|
-
"using-final-decorator-in-unsupported-version",
|
|
453
|
-
"wrong-exception-operation",
|
|
454
|
-
]
|
|
455
|
-
enable = [
|
|
456
|
-
"useless-suppression",
|
|
457
|
-
"use-symbolic-message-instead",
|
|
458
|
-
]
|
|
459
|
-
|
|
460
|
-
[tool.pylint.TYPING]
|
|
461
|
-
runtime-typing = false
|
|
462
|
-
|
|
463
|
-
[tool.pylint.CODE_STYLE]
|
|
464
|
-
max-line-length-suggestions = 72
|
|
465
|
-
|
|
466
|
-
[tool.ruff]
|
|
467
|
-
target-version = "py311"
|
|
468
|
-
|
|
469
|
-
[tool.ruff.lint]
|
|
470
|
-
future-annotations = true
|
|
471
|
-
ignore = [
|
|
472
|
-
"A005", # Shadowing a Python standard-library module
|
|
473
|
-
"D202", # No blank lines allowed after function docstring
|
|
474
|
-
"D203", # 1 blank line required before class docstring
|
|
475
|
-
"D213", # Multi-line docstring summary should start at the second line
|
|
476
|
-
"PLR0913", # This is subjective
|
|
477
|
-
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
|
|
478
|
-
"PT012", # `pytest.raises()` block should contain a single simple statement
|
|
479
|
-
"TCH", # flake8-type-checking
|
|
480
|
-
|
|
481
|
-
# May conflict with the formatter:
|
|
482
|
-
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
|
|
483
|
-
"COM812",
|
|
484
|
-
"COM819",
|
|
485
|
-
"D206",
|
|
486
|
-
"D300",
|
|
487
|
-
"E111",
|
|
488
|
-
"E114",
|
|
489
|
-
"E117",
|
|
490
|
-
"ISC001",
|
|
491
|
-
"ISC002",
|
|
492
|
-
"Q000",
|
|
493
|
-
"Q001",
|
|
494
|
-
"Q002",
|
|
495
|
-
"Q003",
|
|
496
|
-
"W191",
|
|
497
|
-
]
|
|
498
|
-
select = [
|
|
499
|
-
"ALL"
|
|
500
|
-
]
|
|
501
|
-
|
|
502
|
-
[tool.ruff.lint.isort]
|
|
503
|
-
combine-as-imports = true
|
|
504
|
-
force-sort-within-sections = true
|
|
505
|
-
known-first-party = [
|
|
506
|
-
"liminal",
|
|
507
|
-
"tests",
|
|
508
|
-
]
|
|
509
|
-
split-on-trailing-comma = false
|
|
510
|
-
|
|
511
|
-
[tool.ruff.lint.per-file-ignores]
|
|
512
|
-
"tests/*" = [
|
|
513
|
-
"ARG001",
|
|
514
|
-
"FBT001",
|
|
515
|
-
"PLR2004",
|
|
516
|
-
"S101",
|
|
517
|
-
"SLF001",
|
|
518
|
-
]
|
|
519
|
-
|
|
520
|
-
[tool.vulture]
|
|
521
|
-
min_confidence = 100
|
|
522
|
-
sort_by_size = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/auth/microsoft/__init__.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/auth/microsoft/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/llm/__init__.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/llm/models.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/llm/schemas.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/prompt/__init__.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/prompt/schemas.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/thread/__init__.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/thread/models.py
RENAMED
|
File without changes
|
{liminal_sdk_python-2026.2.0 → liminal_sdk_python-2026.3.0b0}/liminal/endpoints/thread/schemas.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|