fasthtml-tailwindcss 4.3.3__py3-none-win_amd64.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.
@@ -0,0 +1,33 @@
1
+ from collections.abc import Sequence
2
+ from pathlib import Path
3
+ from weakref import finalize
4
+
5
+ from fasthtml.common import Style
6
+
7
+ from ._client import Session, configuration
8
+
9
+ __all__ = ["TailwindHead"]
10
+
11
+
12
+ class TailwindHead:
13
+ def __init__(
14
+ self,
15
+ *,
16
+ watch: bool = False,
17
+ sources: Sequence[str | Path] | None = None,
18
+ input: str | Path | None = None,
19
+ css: str | None = None,
20
+ ) -> None:
21
+ config = configuration(watch=watch, sources=sources, input=input, css=css)
22
+ self._session = Session(config)
23
+ self._session.start()
24
+ finalize(self, self._session.close)
25
+
26
+ def __deepcopy__(self, memo):
27
+ return self
28
+
29
+ def __ft__(self):
30
+ if self._session.error:
31
+ raise RuntimeError(self._session.error)
32
+ css = self._session.output.read_text(encoding="utf-8")
33
+ return Style(css.replace("</", "<\\/"))
@@ -0,0 +1,156 @@
1
+ import hashlib
2
+ import json
3
+ import os
4
+ import subprocess
5
+ import sys
6
+ import time
7
+ from importlib.metadata import version
8
+ from pathlib import Path
9
+ from threading import Event, Thread
10
+
11
+ from filelock import FileLock, Timeout
12
+ from platformdirs import user_cache_path
13
+
14
+ IDLE_TIMEOUT = 15
15
+
16
+
17
+ def configuration(*, watch, sources, input, css):
18
+ if isinstance(sources, (str, Path)):
19
+ raise TypeError("sources must be a sequence of paths, for example ['app']")
20
+ cwd = Path.cwd().resolve()
21
+ root = next(
22
+ (p for p in (cwd, *cwd.parents) if (p / "pyproject.toml").is_file()), cwd
23
+ )
24
+ input_path = (root / input).resolve() if input is not None else None
25
+ if input_path is not None and not input_path.is_file():
26
+ raise FileNotFoundError(input_path)
27
+ if sources is None:
28
+ sources = [root] if input is None else []
29
+ return {
30
+ "root": str(root),
31
+ "watch": watch,
32
+ "sources": [str((root / path).resolve()) for path in sources],
33
+ "input": str(input_path) if input_path is not None else None,
34
+ "css": css or "",
35
+ "version": version("fasthtml-tailwindcss"),
36
+ }
37
+
38
+
39
+ def cache_directory(config):
40
+ settings = json.dumps(config, sort_keys=True).encode()
41
+ key = hashlib.sha256(settings).hexdigest()[:24]
42
+ return user_cache_path("fasthtml-tailwindcss", appauthor=False) / key
43
+
44
+
45
+ def running(directory):
46
+ try:
47
+ with FileLock(str(directory / "worker.lock"), timeout=0):
48
+ return False
49
+ except Timeout:
50
+ return True
51
+
52
+
53
+ def stop_process(process):
54
+ if process.poll() is not None:
55
+ return
56
+ process.terminate()
57
+ try:
58
+ process.wait(timeout=5)
59
+ except subprocess.TimeoutExpired:
60
+ process.kill()
61
+ process.wait()
62
+
63
+
64
+ class Session:
65
+ def __init__(self, config):
66
+ self.config = config
67
+ self.directory = cache_directory(config)
68
+ self.output = self.directory / "style.css"
69
+ self.error = ""
70
+ self._closed = Event()
71
+ self._thread = Thread(target=self.heartbeat, daemon=True)
72
+
73
+ def connect(self):
74
+ self.directory.mkdir(parents=True, exist_ok=True, mode=0o700)
75
+ with FileLock(str(self.directory / "startup.lock"), timeout=30):
76
+ self.wait_for_previous_worker()
77
+ if not running(self.directory):
78
+ self.start_worker()
79
+ (self.directory / "heartbeat").touch()
80
+
81
+ def wait_for_previous_worker(self):
82
+ deadline = time.monotonic() + 10
83
+ while running(self.directory) and not (self.directory / "pid").exists():
84
+ if time.monotonic() > deadline:
85
+ raise RuntimeError("Tailwind helper is not responding")
86
+ time.sleep(0.05)
87
+
88
+ def start_worker(self):
89
+ for name in ("style.css", "error", "pid"):
90
+ (self.directory / name).unlink(missing_ok=True)
91
+ (self.directory / "config.json").write_text(
92
+ json.dumps(self.config), encoding="utf-8"
93
+ )
94
+ (self.directory / "heartbeat").touch()
95
+ flags = 0
96
+ if os.name == "nt":
97
+ flags = subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP
98
+ with (self.directory / "helper.log").open("w") as log:
99
+ process = subprocess.Popen(
100
+ [
101
+ sys.executable,
102
+ "-m",
103
+ "fasthtml_tailwindcss._worker",
104
+ str(self.directory),
105
+ ],
106
+ stdin=subprocess.DEVNULL,
107
+ stdout=log,
108
+ stderr=log,
109
+ start_new_session=os.name != "nt",
110
+ creationflags=flags,
111
+ )
112
+ deadline = time.monotonic() + 10
113
+ while not (self.directory / "pid").exists():
114
+ if process.poll() is not None or time.monotonic() > deadline:
115
+ stop_process(process)
116
+ raise RuntimeError(
117
+ (self.directory / "helper.log").read_text()
118
+ or "Cannot start Tailwind helper"
119
+ )
120
+ time.sleep(0.05)
121
+
122
+ def wait_for_css(self):
123
+ deadline = time.monotonic() + 120
124
+ while not self.output.exists():
125
+ if self.error:
126
+ raise RuntimeError(self.error)
127
+ if time.monotonic() > deadline:
128
+ raise RuntimeError(
129
+ "Tailwind initial build timed out; see compiler.log in the cache"
130
+ )
131
+ time.sleep(0.05)
132
+
133
+ def heartbeat(self):
134
+ while not self._closed.is_set():
135
+ error = self.directory / "error"
136
+ if error.exists():
137
+ self.error = error.read_text(encoding="utf-8")
138
+ elif not running(self.directory):
139
+ self.error = "Tailwind helper stopped; restart the application"
140
+ if self.error:
141
+ return
142
+ (self.directory / "heartbeat").touch()
143
+ self._closed.wait(2)
144
+
145
+ def start(self):
146
+ self.connect()
147
+ self._thread.start()
148
+ try:
149
+ self.wait_for_css()
150
+ except BaseException:
151
+ self.close()
152
+ raise
153
+
154
+ def close(self):
155
+ self._closed.set()
156
+ self._thread.join()
@@ -0,0 +1,133 @@
1
+ import json
2
+ import os
3
+ import re
4
+ import signal
5
+ import subprocess
6
+ import sys
7
+ import time
8
+ from pathlib import Path
9
+
10
+ from filelock import FileLock
11
+
12
+ from ._client import IDLE_TIMEOUT, stop_process
13
+
14
+
15
+ def input_css(config):
16
+ def quote(path):
17
+ return json.dumps(Path(path).as_posix(), ensure_ascii=False)
18
+
19
+ base = (
20
+ f"@import {quote(config['input'])};"
21
+ if config["input"]
22
+ else '@import "tailwindcss" source(none);'
23
+ )
24
+ sources = "\n".join(f"@source {quote(path)};" for path in config["sources"])
25
+ return f"{base}\n{sources}\n{config['css']}\n"
26
+
27
+
28
+ class Worker:
29
+ def __init__(self, directory):
30
+ self.directory = directory
31
+ self.config = json.loads((directory / "config.json").read_text())
32
+ self.output = directory / "style.css"
33
+ self.stopping = False
34
+
35
+ def stop(self, *_):
36
+ self.stopping = True
37
+
38
+ def start_compiler(self):
39
+ source = self.directory / "input.css"
40
+ source.write_text(input_css(self.config), encoding="utf-8")
41
+ executable = "tailwindcss.exe" if os.name == "nt" else "tailwindcss"
42
+ binary = Path(__file__).parent / "bin" / executable
43
+ mode = "--watch=always" if self.config["watch"] else "--minify"
44
+ command = [
45
+ str(binary),
46
+ "-i",
47
+ str(source),
48
+ "-o",
49
+ str(self.directory / "building.css"),
50
+ mode,
51
+ ]
52
+ with (self.directory / "compiler.log").open("w") as log:
53
+ return subprocess.Popen(
54
+ command,
55
+ cwd=self.config["root"],
56
+ stdin=subprocess.DEVNULL,
57
+ stdout=log,
58
+ stderr=log,
59
+ env={**os.environ, "NO_COLOR": "1"},
60
+ )
61
+
62
+ def publish_css(self):
63
+ css = (self.directory / "building.css").read_bytes()
64
+ if self.output.exists() and self.output.read_bytes() == css:
65
+ return
66
+ temporary = self.directory / "published.tmp"
67
+ temporary.write_bytes(css)
68
+ temporary.replace(self.output)
69
+
70
+ def idle(self):
71
+ heartbeat = (self.directory / "heartbeat").stat().st_mtime
72
+ return time.time() - heartbeat > IDLE_TIMEOUT
73
+
74
+ def expired(self):
75
+ if not self.idle():
76
+ return False
77
+ with FileLock(str(self.directory / "startup.lock"), timeout=30):
78
+ if not self.idle():
79
+ return False
80
+ (self.directory / "pid").unlink(missing_ok=True)
81
+ return True
82
+
83
+ def check_exit(self, code):
84
+ if code is None:
85
+ return
86
+ if code == 0 and not self.config["watch"] and self.output.exists():
87
+ return
88
+ details = (self.directory / "compiler.log").read_text(
89
+ encoding="utf-8", errors="replace"
90
+ )
91
+ raise RuntimeError(f"Tailwind stopped (exit {code}):\n{details}")
92
+
93
+ def monitor(self, process):
94
+ with (self.directory / "compiler.log").open(
95
+ encoding="utf-8", errors="replace"
96
+ ) as log:
97
+ pending = ""
98
+ while not self.stopping:
99
+ code = process.poll()
100
+ pending += log.read()
101
+ message, _, pending = pending.rpartition("\n")
102
+ if re.search(r"\bDone in\b", message):
103
+ self.publish_css()
104
+ self.check_exit(code)
105
+ if self.expired():
106
+ return
107
+ time.sleep(0.1)
108
+
109
+ def run(self):
110
+ process = None
111
+ (self.directory / "pid").write_text(str(os.getpid()))
112
+ try:
113
+ process = self.start_compiler()
114
+ self.monitor(process)
115
+ except (OSError, RuntimeError) as error:
116
+ (self.directory / "error").write_text(str(error), encoding="utf-8")
117
+ finally:
118
+ if process is not None:
119
+ stop_process(process)
120
+ (self.directory / "pid").unlink(missing_ok=True)
121
+
122
+
123
+ def main(directory):
124
+ worker = Worker(directory)
125
+ for name in ("SIGTERM", "SIGINT", "SIGBREAK"):
126
+ if signum := getattr(signal, name, None):
127
+ signal.signal(signum, worker.stop)
128
+ with FileLock(str(directory / "worker.lock"), timeout=0):
129
+ worker.run()
130
+
131
+
132
+ if __name__ == "__main__":
133
+ main(Path(sys.argv[1]))
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: fasthtml_tailwindcss/bin/tailwindcss.exe
3
+ size: 112503296 bytes
4
+ sha256: e0e260ce048014e9268f6237ff18f8ccf02cef521cbd0ae04e82c2cdf7aa3955
File without changes
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.5
2
+ Name: fasthtml-tailwindcss
3
+ Version: 4.3.3
4
+ Summary: Tailwind CSS for FastHTML with a persistent compiler across server reloads and watch mode for automatic CSS rebuilds.
5
+ Project-URL: Documentation, https://github.com/SpaceShaman/fasthtml-tailwindcss#readme
6
+ Project-URL: Homepage, https://github.com/SpaceShaman/fasthtml-tailwindcss
7
+ Project-URL: Issues, https://github.com/SpaceShaman/fasthtml-tailwindcss/issues
8
+ Project-URL: Repository, https://github.com/SpaceShaman/fasthtml-tailwindcss
9
+ Author-email: SpaceShaman <spaceshaman@tuta.io>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ License-File: TAILWIND-LICENSE
13
+ Keywords: components,css,fasthtml,tailwindcss,web
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: 3.15
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.11
24
+ Requires-Dist: filelock>=3.16
25
+ Requires-Dist: platformdirs>=4
26
+ Requires-Dist: python-fasthtml>=0.14.13
27
+ Description-Content-Type: text/markdown
28
+
29
+ # fasthtml-tailwindcss
30
+
31
+ [![License](https://img.shields.io/github/license/SpaceShaman/fasthtml-tailwindcss)](LICENSE)
32
+ [![Release](https://img.shields.io/github/actions/workflow/status/SpaceShaman/fasthtml-tailwindcss/release.yml?label=release)](https://github.com/SpaceShaman/fasthtml-tailwindcss/actions/workflows/release.yml)
33
+ [![Python versions](https://img.shields.io/pypi/pyversions/fasthtml-tailwindcss)](https://pypi.org/project/fasthtml-tailwindcss/)
34
+ [![PyPI version](https://img.shields.io/pypi/v/fasthtml-tailwindcss)](https://pypi.org/project/fasthtml-tailwindcss/)
35
+ [![FastHTML](https://img.shields.io/badge/framework-FastHTML-7854F7)](https://github.com/AnswerDotAI/fasthtml)
36
+ [![Tailwind CSS](https://img.shields.io/badge/CSS-Tailwind_CSS-06B6D4?logo=tailwindcss&logoColor=white)](https://tailwindcss.com/)
37
+ [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
38
+ [![Pytest](https://img.shields.io/badge/testing-pytest-0A9EDC?logo=pytest)](https://docs.pytest.org/)
39
+ [![Ruff](https://img.shields.io/badge/linting-Ruff-D7FF64?logo=ruff)](https://github.com/astral-sh/ruff)
40
+
41
+ Tailwind CSS for [FastHTML](https://github.com/AnswerDotAI/fasthtml) with a persistent compiler across server reloads and watch mode for automatic CSS rebuilds.
42
+
43
+ ## Installation
44
+
45
+ Install with uv:
46
+
47
+ ```sh
48
+ uv add fasthtml-tailwindcss
49
+ ```
50
+
51
+ Or with pip:
52
+
53
+ ```sh
54
+ pip install fasthtml-tailwindcss
55
+ ```
56
+
57
+ On Alpine Linux, the standalone compiler also requires the system C++ runtime:
58
+
59
+ ```sh
60
+ apk add --no-cache libstdc++ libgcc
61
+ ```
62
+
63
+ ## Usage
64
+
65
+ ```python
66
+ from fasthtml.common import Div, FastHTML
67
+ from fasthtml_tailwindcss import TailwindHead
68
+
69
+ app = FastHTML(hdrs=[TailwindHead(watch=True)])
70
+
71
+
72
+ @app.route("/")
73
+ def get():
74
+ return Div("Hello", cls="rounded-lg bg-blue-500 p-4 text-white")
75
+ ```
76
+
77
+ Run your application normally, for example with `uv run uvicorn main:app --reload`. The package bundles the official standalone Tailwind compiler: no Node.js, npm, CDN, CSS endpoint or additional command is needed.
78
+
79
+ `TailwindHead` builds CSS when the component is constructed, usually while importing your application module, and waits for the first successful compilation. It embeds the result in a `<style>` element. Each full page receives the latest completed CSS. Refresh the browser to see updates; automatic browser refresh and updating styles during HTMX fragment swaps are not included.
80
+
81
+ - `watch=True`: compile once, then watch source files. The compiler survives application reloads.
82
+ - `watch=False` (default): compile once with minification, then reuse the result across reloads. Source changes do not rebuild CSS during that session.
83
+
84
+ A local helper keeps the session alive while applications renew a shared heartbeat file, and shuts down 15 seconds after the last heartbeat. A quick manual restart is treated like a reload. A later start creates a fresh session and builds again. The session stays active while the component exists in a running Python process; it does not depend on ASGI lifespan.
85
+
86
+ ## Options
87
+
88
+ All configuration is passed to `TailwindHead`:
89
+
90
+ ```python
91
+ TailwindHead(
92
+ watch=True,
93
+ sources=["app"],
94
+ css="@theme { --color-brand: #7854f7; }",
95
+ )
96
+ ```
97
+
98
+ For a custom input stylesheet:
99
+
100
+ ```python
101
+ TailwindHead(watch=True, input="assets/app.css")
102
+ ```
103
+
104
+ - `sources`: source files or directories. Defaults to the project directory with the built-in input; with a custom input, its own source detection is used unless extra sources are supplied.
105
+ - `input`: optional stylesheet replacing the built-in `@import "tailwindcss"`. Relative CSS imports resolve from that file.
106
+ - `css`: optional inline CSS appended after the input. Useful for `@theme`, variants and explicit `@source inline(...)` declarations.
107
+
108
+ Paths are resolved relative to the nearest `pyproject.toml` above the working directory, or the working directory if none exists. Sessions are shared by project, configuration and OS user. Reloads and application workers with identical options reuse the same session. Changing options, including `watch`, starts a separate session immediately; the unused session shuts down after 15 seconds.
109
+
110
+ Tailwind scans complete class names in source files. Use `"bg-red-500"` rather than constructing names such as `f"bg-{color}-500"`. Classes inside installed component libraries need explicit sources or safelisting.
111
+
112
+ Generated files and compiler diagnostics (`compiler.log`) live in the OS user cache under `fasthtml-tailwindcss`. Nothing is written into your application or installed package. Inline CSS requires an appropriate Content Security Policy if your application sets one.
113
+
114
+ ## Development
115
+
116
+ ```sh
117
+ uv sync --group test
118
+ uv run --group test pytest
119
+ uv build
120
+ ```
121
+
122
+ Wheel builds download and verify the matching official standalone executable. Wheels target Linux x64/ARM64 (glibc 2.28+ or musl 1.2+), macOS 13+ (Intel/Apple Silicon), and Windows x64. Source distributions contain the build hook and checksum manifest; building one requires network access unless the verified compiler is already present locally.
123
+
124
+ The package version follows Tailwind, with `.postN` for Python-only fixes. The release workflow checks upstream daily, tests the platform wheels and publishes through PyPI Trusted Publishing. Configure the publisher for `SpaceShaman/fasthtml-tailwindcss`, workflow `release.yml`, environment `pypi`; allow workflow version commits on the default branch.
125
+
126
+ ## Links
127
+
128
+ - [GitHub repository](https://github.com/SpaceShaman/fasthtml-tailwindcss)
129
+ - [PyPI package](https://pypi.org/project/fasthtml-tailwindcss/)
130
+
131
+ ## License
132
+
133
+ The wrapper and Tailwind CSS are MIT licensed. Both license notices are included in distributions.
@@ -0,0 +1,10 @@
1
+ fasthtml_tailwindcss/__init__.py,sha256=9qlV1IwoaxbUYNXawc1WOd9-0WR-PwltvNLv3_NRk3A,904
2
+ fasthtml_tailwindcss/_client.py,sha256=J0XOGBsMZ5l9jrHCLS8--Fdava3gWHs1boUXRx07rdQ,5161
3
+ fasthtml_tailwindcss/_worker.py,sha256=p9Jof8fBZpBd7nRBeSdS5oYwHHyM3nouIBVnkZVciPg,4248
4
+ fasthtml_tailwindcss/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ fasthtml_tailwindcss/bin/tailwindcss.exe,sha256=4OJgzgSAFOkmj2I3_xj4zPAs71IcvQrgToLCzfeqOVU,112503296
6
+ fasthtml_tailwindcss-4.3.3.dist-info/METADATA,sha256=RGiE7u8dytZ-CQjmMFzfTDgSwKJYdwmlcrlwMZp8QIo,7022
7
+ fasthtml_tailwindcss-4.3.3.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
8
+ fasthtml_tailwindcss-4.3.3.dist-info/licenses/LICENSE,sha256=KYkziQfBpa3S7SN2jqaYr5uJyWlgUpnTzCAzRDPkZA4,1068
9
+ fasthtml_tailwindcss-4.3.3.dist-info/licenses/TAILWIND-LICENSE,sha256=YOC2jA81wHju86XSlBnQsD_4TsHfnD-dbjmlGaWueYU,1071
10
+ fasthtml_tailwindcss-4.3.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SpaceShaman
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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Tailwind Labs, Inc.
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.