boldrouter 0.1.0__py3-none-any.whl

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.
boldrouter/__init__.py ADDED
@@ -0,0 +1,36 @@
1
+ """Official BoldRouter SDK for Python."""
2
+
3
+ from ._client import AsyncBold, AsyncBoldRouter, Bold, BoldChatResult, BoldRouter, CompareResult
4
+ from ._options import (
5
+ API_KEY_ENV,
6
+ BASE_URL_ENV,
7
+ DEFAULT_BASE_URL,
8
+ Anonymize,
9
+ BoldOptions,
10
+ ProviderPreferences,
11
+ Reasoning,
12
+ RoutingStrategy,
13
+ bold_options,
14
+ read_bold_headers,
15
+ )
16
+
17
+ __version__ = "0.1.0"
18
+
19
+ __all__ = [
20
+ "API_KEY_ENV",
21
+ "BASE_URL_ENV",
22
+ "DEFAULT_BASE_URL",
23
+ "Anonymize",
24
+ "AsyncBold",
25
+ "AsyncBoldRouter",
26
+ "Bold",
27
+ "BoldChatResult",
28
+ "BoldOptions",
29
+ "BoldRouter",
30
+ "CompareResult",
31
+ "ProviderPreferences",
32
+ "Reasoning",
33
+ "RoutingStrategy",
34
+ "bold_options",
35
+ "read_bold_headers",
36
+ ]
boldrouter/_client.py ADDED
@@ -0,0 +1,230 @@
1
+ """BoldRouter clients: the OpenAI SDK, preconfigured, plus ``client.bold`` helpers."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import os
7
+ import time
8
+ from dataclasses import dataclass, field
9
+ from typing import Any, Dict, Iterable, List, Optional, Union
10
+
11
+ from openai import AsyncOpenAI, OpenAI
12
+ from openai.types.chat import ChatCompletion
13
+
14
+ from ._options import (
15
+ API_KEY_ENV,
16
+ BASE_URL_ENV,
17
+ DEFAULT_BASE_URL,
18
+ Anonymize,
19
+ ProviderPreferences,
20
+ Reasoning,
21
+ RoutingStrategy,
22
+ bold_options,
23
+ read_bold_headers,
24
+ )
25
+
26
+
27
+ def _resolve(api_key: Optional[str], base_url: Optional[str]) -> tuple[str, str]:
28
+ key = api_key or os.environ.get(API_KEY_ENV)
29
+ if not key:
30
+ raise ValueError(
31
+ "BoldRouter API key is missing. Pass `api_key=` or set the "
32
+ f"{API_KEY_ENV} environment variable. Create a key at "
33
+ "https://boldrouter.com/dashboard/keys"
34
+ )
35
+ return key, (base_url or os.environ.get(BASE_URL_ENV) or DEFAULT_BASE_URL).rstrip("/")
36
+
37
+
38
+ def _text(completion: ChatCompletion) -> str:
39
+ try:
40
+ content = completion.choices[0].message.content
41
+ except (IndexError, AttributeError):
42
+ return ""
43
+ return content if isinstance(content, str) else ""
44
+
45
+
46
+ @dataclass
47
+ class BoldChatResult:
48
+ """A non-streaming completion plus BoldRouter's response metadata."""
49
+
50
+ text: str
51
+ completion: ChatCompletion
52
+ bold: Dict[str, str] = field(default_factory=dict)
53
+ latency_ms: int = 0
54
+
55
+ @property
56
+ def provider(self) -> Optional[str]:
57
+ return self.bold.get("provider")
58
+
59
+
60
+ @dataclass
61
+ class CompareResult:
62
+ model: str
63
+ ok: bool
64
+ text: Optional[str] = None
65
+ bold: Dict[str, str] = field(default_factory=dict)
66
+ usage: Optional[Any] = None
67
+ latency_ms: Optional[int] = None
68
+ error: Optional[str] = None
69
+
70
+
71
+ def _sort_models(models: Iterable[Any], kind: Optional[str], search: Optional[str]) -> List[Any]:
72
+ out = list(models)
73
+ if kind:
74
+ out = [m for m in out if getattr(m, "kind", None) in (None, kind)]
75
+ if search:
76
+ needle = search.lower()
77
+ out = [m for m in out if needle in m.id.lower()]
78
+ return sorted(out, key=lambda m: (0 if m.id.startswith("bold/") else 1, m.id))
79
+
80
+
81
+ class _BoldBase:
82
+ def __init__(self, defaults: Optional[Dict[str, Any]]):
83
+ self._defaults: Dict[str, Any] = dict(defaults or {})
84
+
85
+ def _merge(self, **overrides: Any) -> Dict[str, Any]:
86
+ merged = dict(self._defaults)
87
+ merged.update({k: v for k, v in overrides.items() if v is not None})
88
+ return merged
89
+
90
+
91
+ class Bold(_BoldBase):
92
+ """BoldRouter-specific helpers, available as ``client.bold``."""
93
+
94
+ def __init__(self, client: "BoldRouter", defaults: Optional[Dict[str, Any]] = None):
95
+ super().__init__(defaults)
96
+ self._client = client
97
+
98
+ def chat(
99
+ self,
100
+ *,
101
+ model: str = "bold/auto",
102
+ messages: Any,
103
+ routing: Optional[RoutingStrategy] = None,
104
+ provider: Optional[ProviderPreferences] = None,
105
+ models: Optional[List[str]] = None,
106
+ reasoning: Optional[Reasoning] = None,
107
+ anonymize: Optional[Union[bool, Anonymize]] = None,
108
+ cache: Optional[bool] = None,
109
+ **params: Any,
110
+ ) -> BoldChatResult:
111
+ """One non-streaming chat completion with typed BoldRouter options."""
112
+ opts = self._merge(routing=routing, provider=provider, models=models, reasoning=reasoning, anonymize=anonymize, cache=cache)
113
+ extras = bold_options(model=model, **opts)
114
+ started = time.monotonic()
115
+ raw = self._client.chat.completions.with_raw_response.create(model=model, messages=messages, stream=False, **params, **extras)
116
+ completion = raw.parse()
117
+ return BoldChatResult(
118
+ text=_text(completion),
119
+ completion=completion,
120
+ bold=read_bold_headers(raw.headers),
121
+ latency_ms=int((time.monotonic() - started) * 1000),
122
+ )
123
+
124
+ def models(self, *, kind: Optional[str] = None, search: Optional[str] = None) -> List[Any]:
125
+ """The model catalog, auto-router IDs (``bold/*``) first, then alphabetical."""
126
+ return _sort_models(self._client.models.list().data, kind, search)
127
+
128
+ def compare(self, models: List[str], **params: Any) -> List[CompareResult]:
129
+ """Run the same request against several models. Failures are returned, not raised."""
130
+ results: List[CompareResult] = []
131
+ for model in models:
132
+ try:
133
+ r = self.chat(model=model, **params)
134
+ results.append(CompareResult(model=model, ok=True, text=r.text, bold=r.bold, usage=r.completion.usage, latency_ms=r.latency_ms))
135
+ except Exception as error: # noqa: BLE001 - surfaced to the caller
136
+ results.append(CompareResult(model=model, ok=False, error=str(error)))
137
+ return results
138
+
139
+
140
+ class AsyncBold(_BoldBase):
141
+ """Async variant of :class:`Bold`, available as ``client.bold`` on :class:`AsyncBoldRouter`."""
142
+
143
+ def __init__(self, client: "AsyncBoldRouter", defaults: Optional[Dict[str, Any]] = None):
144
+ super().__init__(defaults)
145
+ self._client = client
146
+
147
+ async def chat(
148
+ self,
149
+ *,
150
+ model: str = "bold/auto",
151
+ messages: Any,
152
+ routing: Optional[RoutingStrategy] = None,
153
+ provider: Optional[ProviderPreferences] = None,
154
+ models: Optional[List[str]] = None,
155
+ reasoning: Optional[Reasoning] = None,
156
+ anonymize: Optional[Union[bool, Anonymize]] = None,
157
+ cache: Optional[bool] = None,
158
+ **params: Any,
159
+ ) -> BoldChatResult:
160
+ opts = self._merge(routing=routing, provider=provider, models=models, reasoning=reasoning, anonymize=anonymize, cache=cache)
161
+ extras = bold_options(model=model, **opts)
162
+ started = time.monotonic()
163
+ raw = await self._client.chat.completions.with_raw_response.create(model=model, messages=messages, stream=False, **params, **extras)
164
+ completion = raw.parse()
165
+ return BoldChatResult(
166
+ text=_text(completion),
167
+ completion=completion,
168
+ bold=read_bold_headers(raw.headers),
169
+ latency_ms=int((time.monotonic() - started) * 1000),
170
+ )
171
+
172
+ async def models(self, *, kind: Optional[str] = None, search: Optional[str] = None) -> List[Any]:
173
+ page = await self._client.models.list()
174
+ return _sort_models(page.data, kind, search)
175
+
176
+ async def compare(self, models: List[str], **params: Any) -> List[CompareResult]:
177
+ async def one(model: str) -> CompareResult:
178
+ try:
179
+ r = await self.chat(model=model, **params)
180
+ return CompareResult(model=model, ok=True, text=r.text, bold=r.bold, usage=r.completion.usage, latency_ms=r.latency_ms)
181
+ except Exception as error: # noqa: BLE001
182
+ return CompareResult(model=model, ok=False, error=str(error))
183
+
184
+ return list(await asyncio.gather(*(one(m) for m in models)))
185
+
186
+
187
+ class BoldRouter(OpenAI):
188
+ """The OpenAI client, preconfigured for BoldRouter.
189
+
190
+ Everything on ``openai.OpenAI`` works unchanged. ``client.bold`` adds
191
+ BoldRouter-specific helpers::
192
+
193
+ from boldrouter import BoldRouter
194
+
195
+ client = BoldRouter() # reads BOLDROUTER_API_KEY
196
+ r = client.bold.chat(model="bold/auto", messages=[{"role": "user", "content": "Hi"}], routing="price")
197
+ print(r.text, r.provider)
198
+ """
199
+
200
+ bold: Bold
201
+
202
+ def __init__(
203
+ self,
204
+ *,
205
+ api_key: Optional[str] = None,
206
+ base_url: Optional[str] = None,
207
+ defaults: Optional[Dict[str, Any]] = None,
208
+ **kwargs: Any,
209
+ ) -> None:
210
+ key, base = _resolve(api_key, base_url)
211
+ super().__init__(api_key=key, base_url=base, **kwargs)
212
+ self.bold = Bold(self, defaults)
213
+
214
+
215
+ class AsyncBoldRouter(AsyncOpenAI):
216
+ """Async variant of :class:`BoldRouter`."""
217
+
218
+ bold: AsyncBold
219
+
220
+ def __init__(
221
+ self,
222
+ *,
223
+ api_key: Optional[str] = None,
224
+ base_url: Optional[str] = None,
225
+ defaults: Optional[Dict[str, Any]] = None,
226
+ **kwargs: Any,
227
+ ) -> None:
228
+ key, base = _resolve(api_key, base_url)
229
+ super().__init__(api_key=key, base_url=base, **kwargs)
230
+ self.bold = AsyncBold(self, defaults)
boldrouter/_options.py ADDED
@@ -0,0 +1,112 @@
1
+ """Typed BoldRouter request options and their mapping to headers and body fields.
2
+
3
+ See https://boldrouter.com/docs/chat-completions and https://boldrouter.com/docs/routing
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ from typing import Any, Dict, List, Literal, Mapping, Optional, Union
9
+
10
+ from typing_extensions import TypedDict
11
+
12
+ DEFAULT_BASE_URL = "https://boldrouter.com/v1"
13
+ API_KEY_ENV = "BOLDROUTER_API_KEY"
14
+ BASE_URL_ENV = "BOLDROUTER_BASE_URL"
15
+
16
+ RoutingStrategy = Literal["balanced", "price", "latency", "uptime"]
17
+
18
+
19
+ class ProviderPreferences(TypedDict, total=False):
20
+ """The ``provider`` body field."""
21
+
22
+ order: List[str]
23
+ only: List[str]
24
+ ignore: List[str]
25
+ allow_fallbacks: bool
26
+ sort: Literal["price", "latency", "throughput", "uptime"]
27
+
28
+
29
+ class Reasoning(TypedDict, total=False):
30
+ """The ``reasoning`` body field."""
31
+
32
+ enabled: bool
33
+ effort: Literal["low", "medium", "high"]
34
+
35
+
36
+ class Anonymize(TypedDict, total=False):
37
+ """The ``anonymize`` body field."""
38
+
39
+ enabled: bool
40
+ reverse: bool
41
+ entities: List[str]
42
+
43
+
44
+ class BoldOptions(TypedDict, total=False):
45
+ routing: RoutingStrategy
46
+ provider: ProviderPreferences
47
+ models: List[str]
48
+ reasoning: Reasoning
49
+ anonymize: Union[bool, Anonymize]
50
+ cache: bool
51
+
52
+
53
+ def bold_options(
54
+ *,
55
+ model: Optional[str] = None,
56
+ routing: Optional[RoutingStrategy] = None,
57
+ provider: Optional[ProviderPreferences] = None,
58
+ models: Optional[List[str]] = None,
59
+ reasoning: Optional[Reasoning] = None,
60
+ anonymize: Optional[Union[bool, Anonymize]] = None,
61
+ cache: Optional[bool] = None,
62
+ extra_headers: Optional[Mapping[str, str]] = None,
63
+ extra_body: Optional[Mapping[str, Any]] = None,
64
+ ) -> Dict[str, Any]:
65
+ """Build ``{"extra_headers": ..., "extra_body": ...}`` for the OpenAI SDK.
66
+
67
+ Splat the result into any ``create`` call::
68
+
69
+ client.chat.completions.create(model="bold/auto", messages=msgs, **bold_options(routing="price"))
70
+
71
+ If ``models`` (the cross-model fallback chain) is given and does not already
72
+ include the primary ``model``, the primary model is prepended.
73
+ """
74
+ headers: Dict[str, str] = dict(extra_headers or {})
75
+ if routing and routing != "balanced":
76
+ headers["x-bold-routing"] = routing
77
+
78
+ body: Dict[str, Any] = dict(extra_body or {})
79
+ if provider is not None:
80
+ body["provider"] = dict(provider)
81
+ if models is not None:
82
+ chain = list(models)
83
+ if model and model not in chain:
84
+ chain = [model, *chain]
85
+ body["models"] = chain
86
+ if reasoning is not None:
87
+ body["reasoning"] = dict(reasoning)
88
+ if anonymize is not None:
89
+ body["anonymize"] = dict(anonymize) if isinstance(anonymize, Mapping) else anonymize
90
+ if cache is not None:
91
+ body["cache"] = cache
92
+
93
+ out: Dict[str, Any] = {}
94
+ if headers:
95
+ out["extra_headers"] = headers
96
+ if body:
97
+ out["extra_body"] = body
98
+ return out
99
+
100
+
101
+ def read_bold_headers(headers: Optional[Mapping[str, str]]) -> Dict[str, str]:
102
+ """Extract ``x-bold-*`` response headers as ``{"provider": ..., "model": ..., "x-bold-provider": ...}``."""
103
+ out: Dict[str, str] = {}
104
+ if not headers:
105
+ return out
106
+ for key, value in headers.items():
107
+ k = key.lower()
108
+ if not k.startswith("x-bold-"):
109
+ continue
110
+ out[k] = value
111
+ out[k[len("x-bold-") :].replace("-", "_")] = value
112
+ return out
@@ -0,0 +1,125 @@
1
+ Metadata-Version: 2.5
2
+ Name: boldrouter
3
+ Version: 0.1.0
4
+ Summary: Official BoldRouter SDK for Python. The OpenAI SDK, preconfigured for BoldRouter, plus typed routing, failover, reasoning, anonymization and caching options and model comparison helpers.
5
+ Project-URL: Homepage, https://boldrouter.com
6
+ Project-URL: Documentation, https://boldrouter.com/docs
7
+ Project-URL: Repository, https://github.com/boldrouter/boldrouter
8
+ Project-URL: Issues, https://github.com/boldrouter/boldrouter/issues
9
+ Author-email: "GentleBulldozer (GentleDozer on X)" <support@boldrouter.com>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: ai,boldrouter,gateway,llm,openai-compatible,router,sdk
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: openai<4,>=1.60
24
+ Requires-Dist: typing-extensions>=4.7
25
+ Provides-Extra: test
26
+ Requires-Dist: httpx>=0.27; extra == 'test'
27
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'test'
28
+ Requires-Dist: pytest>=8; extra == 'test'
29
+ Description-Content-Type: text/markdown
30
+
31
+ # boldrouter
32
+
33
+ Official [BoldRouter](https://boldrouter.com) SDK for Python. It is the OpenAI SDK, preconfigured for BoldRouter, plus typed BoldRouter options and a few helpers. One API key, 170+ models across 30+ providers, automatic routing and failover, prompt caching and PII anonymization.
34
+
35
+ ## Install
36
+
37
+ ```bash
38
+ pip install boldrouter
39
+ ```
40
+
41
+ Python 3.10+.
42
+
43
+ ## Usage
44
+
45
+ ```python
46
+ from boldrouter import BoldRouter
47
+
48
+ client = BoldRouter(api_key="sk-bold-...") # or omit and set BOLDROUTER_API_KEY
49
+
50
+ # Everything from the OpenAI SDK works unchanged:
51
+ res = client.chat.completions.create(
52
+ model="bold/auto",
53
+ messages=[{"role": "user", "content": "What is an API gateway?"}],
54
+ )
55
+ print(res.choices[0].message.content)
56
+ ```
57
+
58
+ Streaming, tools, structured outputs and embeddings are the same calls you already know. Image generation goes through chat completions: pass `modalities=["image", "text"]` with an image-capable model such as `bold/image` and read `choices[0].message.images`. `AsyncBoldRouter` is the async variant.
59
+
60
+ ## BoldRouter options
61
+
62
+ `client.bold.chat` takes the same parameters as `chat.completions.create` plus typed BoldRouter options, and returns the reply together with which provider served it:
63
+
64
+ ```python
65
+ r = client.bold.chat(
66
+ model="anthropic/claude-sonnet-4.6",
67
+ messages=[{"role": "user", "content": "Summarize this..."}],
68
+ routing="price", # x-bold-routing header
69
+ provider={"order": ["anthropic", "openai"], "allow_fallbacks": True},
70
+ models=["openai/gpt-5.5", "google/gemini-2.5-pro"], # cross-model fallback chain
71
+ reasoning={"enabled": True, "effort": "high"},
72
+ anonymize=True,
73
+ cache=False,
74
+ )
75
+ print(r.text, r.provider, r.bold["model"], r.completion.usage)
76
+ ```
77
+
78
+ Defaults for every `client.bold` call: `BoldRouter(defaults={"routing": "latency"})`.
79
+
80
+ To use the options with the plain OpenAI methods, or with streaming:
81
+
82
+ ```python
83
+ from boldrouter import bold_options
84
+
85
+ stream = client.chat.completions.create(
86
+ model="bold/auto", messages=msgs, stream=True,
87
+ **bold_options(model="bold/auto", routing="latency", models=["openai/gpt-5.5"]),
88
+ )
89
+ ```
90
+
91
+ | Option | Sent as | Docs |
92
+ |---|---|---|
93
+ | `routing` | `x-bold-routing` header: `balanced` (default), `price`, `latency`, `uptime` | [Routing](https://boldrouter.com/docs/routing) |
94
+ | `provider` | `provider` body field: `order`, `only`, `ignore`, `allow_fallbacks`, `sort` | [Routing](https://boldrouter.com/docs/routing) |
95
+ | `models` | `models` body field. The primary model is prepended automatically. | [Routing](https://boldrouter.com/docs/routing) |
96
+ | `reasoning` | `reasoning` body field: `enabled`, `effort` | [Chat completions](https://boldrouter.com/docs/chat-completions) |
97
+ | `anonymize` | `anonymize` body field, `True` or `{"enabled", "reverse", "entities"}` | [Anonymization](https://boldrouter.com/docs/anonymization) |
98
+ | `cache` | `cache` body field. On by default; `False` disables. | [Prompt caching](https://boldrouter.com/docs/prompt-caching) |
99
+
100
+ ## Helpers
101
+
102
+ ```python
103
+ client.bold.models(kind="chat") # bold/* first, then alphabetical
104
+ client.bold.compare(["openai/gpt-5.5", "anthropic/claude-sonnet-4.6"], messages=msgs)
105
+ # [CompareResult(model=..., ok=True, text=..., bold={"provider": ...}, usage=..., latency_ms=...), ...]
106
+ ```
107
+
108
+ `read_bold_headers(raw.headers)` extracts the `x-bold-*` headers from any `with_raw_response` result.
109
+
110
+ ## Configuration
111
+
112
+ | Option | Default | Description |
113
+ |---|---|---|
114
+ | `api_key` | `BOLDROUTER_API_KEY` | Keys start with `sk-bold-`. Create one at [boldrouter.com/dashboard/keys](https://boldrouter.com/dashboard/keys). |
115
+ | `base_url` | `https://boldrouter.com/v1` or `BOLDROUTER_BASE_URL` | Override for proxies or testing. |
116
+ | `defaults` | `{}` | BoldRouter options applied to every `client.bold` call. |
117
+ | anything else | | Passed to the OpenAI client: `timeout`, `max_retries`, `http_client`, `default_headers`, ... |
118
+
119
+ ## Errors
120
+
121
+ BoldRouter returns OpenAI-shaped errors, so the OpenAI SDK's exceptions apply: `AuthenticationError` (401), `RateLimitError` (429), `NotFoundError` (404 unknown model), `APIStatusError` with status 402 for insufficient credit and 502 when all providers failed. The SDK retries 429 and 5xx with backoff by default.
122
+
123
+ ## License
124
+
125
+ MIT. Project: [BoldRouter](https://boldrouter.com). Author: GentleBulldozer ([GentleDozer on X](https://x.com/GentleDozer)). Owner: Cybrient Technologies SA.
@@ -0,0 +1,7 @@
1
+ boldrouter/__init__.py,sha256=0gtSBD_u3qOG4lG6iq5fA0Y_SNJrc3gPtb3Wlp6WnaU,719
2
+ boldrouter/_client.py,sha256=dd35-xN2JhOznVBqbUSuMwzDPuVcXXWQItHDvIcU72k,8272
3
+ boldrouter/_options.py,sha256=wykXBcmLwkMfgXPoIhL5_q41aQzxNh3oQbjgZtrE3QU,3418
4
+ boldrouter-0.1.0.dist-info/METADATA,sha256=0T4sLP9oH5EmdXuwiv0-uWTA5yad59fQZrFwKJFZPjs,5818
5
+ boldrouter-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
6
+ boldrouter-0.1.0.dist-info/licenses/LICENSE,sha256=kXrgEB1JD7UKJdCNbziJjVtIq92BvoVK4orDInmlOLc,1081
7
+ boldrouter-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cybrient Technologies SA
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.