localargo 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.
Files changed (42) hide show
  1. localargo/__about__.py +6 -0
  2. localargo/__init__.py +6 -0
  3. localargo/__main__.py +11 -0
  4. localargo/cli/__init__.py +49 -0
  5. localargo/cli/commands/__init__.py +5 -0
  6. localargo/cli/commands/app.py +150 -0
  7. localargo/cli/commands/cluster.py +312 -0
  8. localargo/cli/commands/debug.py +478 -0
  9. localargo/cli/commands/port_forward.py +311 -0
  10. localargo/cli/commands/secrets.py +300 -0
  11. localargo/cli/commands/sync.py +291 -0
  12. localargo/cli/commands/template.py +288 -0
  13. localargo/cli/commands/up.py +341 -0
  14. localargo/config/__init__.py +15 -0
  15. localargo/config/manifest.py +520 -0
  16. localargo/config/store.py +66 -0
  17. localargo/core/__init__.py +6 -0
  18. localargo/core/apps.py +330 -0
  19. localargo/core/argocd.py +509 -0
  20. localargo/core/catalog.py +284 -0
  21. localargo/core/cluster.py +149 -0
  22. localargo/core/k8s.py +140 -0
  23. localargo/eyecandy/__init__.py +15 -0
  24. localargo/eyecandy/progress_steps.py +283 -0
  25. localargo/eyecandy/table_renderer.py +154 -0
  26. localargo/eyecandy/tables.py +57 -0
  27. localargo/logging.py +99 -0
  28. localargo/manager.py +232 -0
  29. localargo/providers/__init__.py +6 -0
  30. localargo/providers/base.py +146 -0
  31. localargo/providers/k3s.py +206 -0
  32. localargo/providers/kind.py +326 -0
  33. localargo/providers/registry.py +52 -0
  34. localargo/utils/__init__.py +4 -0
  35. localargo/utils/cli.py +231 -0
  36. localargo/utils/proc.py +148 -0
  37. localargo/utils/retry.py +58 -0
  38. localargo-0.1.0.dist-info/METADATA +149 -0
  39. localargo-0.1.0.dist-info/RECORD +42 -0
  40. localargo-0.1.0.dist-info/WHEEL +4 -0
  41. localargo-0.1.0.dist-info/entry_points.txt +2 -0
  42. localargo-0.1.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,148 @@
1
+ """Safe subprocess helpers with timeouts and structured errors.
2
+
3
+ All helpers avoid shell=True and return normalized outputs. Designed to be
4
+ monkeypatch-friendly for tests and snapshotting.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import json
10
+ import subprocess
11
+ from typing import TYPE_CHECKING, Any
12
+
13
+ from localargo.logging import logger
14
+ from localargo.utils.cli import check_cli_availability
15
+
16
+ if TYPE_CHECKING: # imported only for type checking
17
+ from collections.abc import Iterator
18
+
19
+
20
+ class ProcessError(RuntimeError):
21
+ """Normalized process error with code/stdout/stderr attached."""
22
+
23
+ def __init__(self, message: str, *, code: int | None, stdout: str, stderr: str) -> None:
24
+ super().__init__(message)
25
+ self.code = code
26
+ self.stdout = stdout
27
+ self.stderr = stderr
28
+
29
+
30
+ def _precheck_cli(cmd: list[str]) -> None:
31
+ if not cmd:
32
+ msg = "Empty command"
33
+ raise ValueError(msg)
34
+ cli_name = cmd[0]
35
+ # Validate common tools if referenced by name
36
+ if cli_name in ("kubectl", "argocd", "k3s", "kind", "docker"):
37
+ check_cli_availability(cli_name)
38
+
39
+
40
+ def _fmt_cmd(cmd: list[str]) -> str:
41
+ return " ".join(cmd)
42
+
43
+
44
+ def run(cmd: list[str], *, timeout: int = 120) -> str:
45
+ """Run a command and return stdout text.
46
+
47
+ Raises ProcessError on non-zero exit.
48
+ """
49
+ _precheck_cli(cmd)
50
+ logger.info("$ %s", _fmt_cmd(cmd))
51
+ try:
52
+ cp = subprocess.run(cmd, check=False, capture_output=True, text=True, timeout=timeout)
53
+ except subprocess.TimeoutExpired as e:
54
+ timeout_msg = f"Command timed out after {timeout}s: {' '.join(cmd)}"
55
+ raise ProcessError(
56
+ timeout_msg,
57
+ code=None,
58
+ stdout=str(e.stdout or ""),
59
+ stderr=str(e.stderr or ""),
60
+ ) from e
61
+
62
+ if cp.returncode != 0:
63
+ _log_failure(cp, cmd)
64
+ failure_msg = (
65
+ "Command failed"
66
+ f" (exit={cp.returncode})\n"
67
+ f"cmd: {_fmt_cmd(cmd)}\n"
68
+ f"stdout:\n{(cp.stdout or '').strip()}\n"
69
+ f"stderr:\n{(cp.stderr or '').strip()}"
70
+ )
71
+ raise ProcessError(
72
+ failure_msg,
73
+ code=cp.returncode,
74
+ stdout=str(cp.stdout),
75
+ stderr=str(cp.stderr),
76
+ )
77
+ return cp.stdout
78
+
79
+
80
+ def run_json(cmd: list[str], *, timeout: int = 120) -> Any:
81
+ """Run a command and parse stdout as JSON."""
82
+ logger.info("$ %s", _fmt_cmd(cmd))
83
+ out = run(cmd, timeout=timeout)
84
+ try:
85
+ return json.loads(out)
86
+ except json.JSONDecodeError as e:
87
+ decode_msg = "Invalid JSON output"
88
+ raise ProcessError(decode_msg, code=0, stdout=out, stderr=str(e)) from e
89
+
90
+
91
+ def run_stream(cmd: list[str], *, bufsize: int = 1) -> Iterator[str]:
92
+ """Run a command and yield stdout lines as they arrive.
93
+
94
+ Caller must consume iterator; termination closes process. Any non-zero exit
95
+ will raise ProcessError at the end (after stream drains) with captured stderr.
96
+ """
97
+ _precheck_cli(cmd)
98
+ logger.info("$ %s", _fmt_cmd(cmd))
99
+ proc = _popen_with_pipes(cmd, bufsize)
100
+ stdout_iter = _get_stdout_iterator(proc)
101
+ try:
102
+ for line in stdout_iter:
103
+ yield line.rstrip("\n")
104
+ finally:
105
+ rc, stdout_data, stderr_data = _finalize_process(proc)
106
+ _raise_on_nonzero_rc(rc, stdout_data, stderr_data)
107
+
108
+
109
+ def _popen_with_pipes(cmd: list[str], bufsize: int) -> subprocess.Popen[str]:
110
+ return subprocess.Popen(
111
+ cmd,
112
+ stdout=subprocess.PIPE,
113
+ stderr=subprocess.PIPE,
114
+ text=True,
115
+ bufsize=bufsize,
116
+ )
117
+
118
+
119
+ def _get_stdout_iterator(proc: subprocess.Popen[str]) -> Iterator[str]:
120
+ if proc.stdout is None:
121
+ proc.kill()
122
+ no_stdout_msg = "No stdout from process"
123
+ raise ProcessError(no_stdout_msg, code=None, stdout="", stderr="")
124
+ return proc.stdout
125
+
126
+
127
+ def _raise_on_nonzero_rc(rc: int | None, stdout_data: str, stderr_data: str) -> None:
128
+ if rc not in (0, None):
129
+ rc_msg = f"Command failed with exit code {rc}"
130
+ raise ProcessError(rc_msg, code=rc, stdout=stdout_data or "", stderr=stderr_data or "")
131
+
132
+
133
+ def _log_failure(cp: subprocess.CompletedProcess[str], cmd: list[str]) -> None:
134
+ logger.debug("Command failed (%s): %s", cp.returncode, " ".join(cmd))
135
+ if cp.stdout:
136
+ logger.debug("Stdout: %s", cp.stdout)
137
+ if cp.stderr:
138
+ logger.debug("Stderr: %s", cp.stderr)
139
+
140
+
141
+ def _finalize_process(proc: subprocess.Popen[str]) -> tuple[int | None, str, str]:
142
+ stdout_data = ""
143
+ stderr_data = ""
144
+ try:
145
+ stdout_data, stderr_data = proc.communicate(timeout=5)
146
+ except (subprocess.TimeoutExpired, OSError):
147
+ proc.kill()
148
+ return proc.returncode, stdout_data, stderr_data
@@ -0,0 +1,58 @@
1
+ """Minimal retry/backoff utilities for transient failures."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import random
6
+ import time
7
+ from typing import TYPE_CHECKING, TypeVar
8
+
9
+ if TYPE_CHECKING: # imported only for type checking
10
+ from collections.abc import Callable
11
+
12
+ T = TypeVar("T")
13
+
14
+
15
+ # pylint: disable=too-many-arguments
16
+ def retry(
17
+ func: Callable[[], T],
18
+ *,
19
+ attempts: int = 3,
20
+ base_delay: float = 0.5,
21
+ max_delay: float = 5.0,
22
+ jitter: float = 0.1,
23
+ retry_on: tuple[type[Exception], ...] = (Exception,),
24
+ ) -> T: # pylint: disable=too-many-arguments
25
+ """Retry a zero-arg callable with exponential backoff and jitter.
26
+
27
+ Args:
28
+ func (Callable[[], T]): Callable with no arguments to execute.
29
+ attempts (int): Total attempts including the first try.
30
+ base_delay (float): Initial delay in seconds.
31
+ max_delay (float): Maximum delay cap in seconds.
32
+ jitter (float): Proportional jitter to add/subtract from delay.
33
+ retry_on (tuple[type[Exception], ...]): Exception types to retry on.
34
+
35
+ Returns:
36
+ T: The return value from ``func`` when it succeeds.
37
+
38
+ Raises:
39
+ RuntimeError: If attempts are exhausted; wraps the last exception if present.
40
+ """
41
+ last_exc: BaseException | None = None
42
+ for i in range(attempts):
43
+ try:
44
+ return func()
45
+ except retry_on as e:
46
+ last_exc = e
47
+ if i == attempts - 1:
48
+ break
49
+ delay = min(max_delay, base_delay * (2**i))
50
+ jitter_amt = delay * jitter
51
+ # Use random.random(); suppress security lint as this is non-crypto usage
52
+ time.sleep(max(0.0, delay + (random.random() * 2 - 1) * jitter_amt)) # noqa: S311
53
+ if last_exc is None:
54
+ msg = "retry: exhausted attempts without result"
55
+ raise RuntimeError(msg)
56
+ # Wrap the final exception to provide a consistent, documented exception type
57
+ final_msg = f"retry: failed after {attempts} attempts"
58
+ raise RuntimeError(final_msg) from last_exc
@@ -0,0 +1,149 @@
1
+ Metadata-Version: 2.4
2
+ Name: localargo
3
+ Version: 0.1.0
4
+ Project-URL: Documentation, https://github.com/williamkborn/localargo#readme
5
+ Project-URL: Issues, https://github.com/williamkborn/localargo/issues
6
+ Project-URL: Source, https://github.com/williamkborn/localargo
7
+ Author-email: William Born <william.born.git@gmail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: Implementation :: CPython
16
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
17
+ Requires-Python: >=3.10
18
+ Requires-Dist: click
19
+ Requires-Dist: pyyaml
20
+ Requires-Dist: rich
21
+ Requires-Dist: rich-click
22
+ Provides-Extra: dev
23
+ Requires-Dist: lizard; extra == 'dev'
24
+ Requires-Dist: mypy; extra == 'dev'
25
+ Requires-Dist: pydoclint; extra == 'dev'
26
+ Requires-Dist: pylint; extra == 'dev'
27
+ Requires-Dist: pytest; extra == 'dev'
28
+ Requires-Dist: types-pyyaml; extra == 'dev'
29
+ Provides-Extra: watch
30
+ Requires-Dist: watchdog>=2.0.0; extra == 'watch'
31
+ Description-Content-Type: text/markdown
32
+
33
+ # localargo
34
+
35
+ [![PyPI - Version](https://img.shields.io/pypi/v/localargo.svg)](https://pypi.org/project/localargo)
36
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/localargo.svg)](https://pypi.org/project/localargo)
37
+
38
+ **Convenient ArgoCD local development tool**
39
+
40
+ Localargo is a command-line tool that makes ArgoCD development workflows faster and more convenient. It provides streamlined commands for managing local clusters, applications, secrets, port forwarding, and debugging - all designed specifically for ArgoCD development.
41
+
42
+ ## Features
43
+
44
+ - 🚀 **Cluster Management**: Set up and switch between local/remote Kubernetes clusters
45
+ - 📦 **Application Management**: Create, sync, and manage ArgoCD applications
46
+ - 🌐 **Port Forwarding**: Easily access services running in your applications
47
+ - 🔐 **Secrets Management**: Create and manage secrets for local development
48
+ - 🔄 **Sync Operations**: Sync applications with watch mode for continuous development
49
+ - 📋 **Templates**: Quick-start applications from common templates
50
+ - 🔍 **Debug Tools**: Comprehensive debugging and troubleshooting utilities
51
+
52
+ ## Quick Start
53
+
54
+ ```bash
55
+ # Install localargo
56
+ pip install localargo
57
+
58
+ # Initialize a local cluster with ArgoCD (uses KinD by default)
59
+ localargo cluster init
60
+
61
+ # Create an application from a template
62
+ localargo template create my-app --repo https://github.com/myorg/myrepo
63
+
64
+ # Port forward services for easy access
65
+ localargo port-forward start my-service
66
+
67
+ # Sync and watch for changes
68
+ localargo sync my-app --watch
69
+ ```
70
+
71
+ ## Table of Contents
72
+
73
+ - [Installation](#installation)
74
+ - [Documentation](#documentation)
75
+ - [License](#license)
76
+
77
+ ## Installation
78
+
79
+ ```console
80
+ pip install localargo
81
+ ```
82
+
83
+ ### Development Setup
84
+
85
+ For contributors and development, we recommend using [Mise](https://mise.jdx.dev/) to set up the complete development environment:
86
+
87
+ ```bash
88
+ # Install Mise (macOS with Homebrew)
89
+ brew install mise
90
+
91
+ # Install all development tools
92
+ mise install
93
+
94
+ # Create Hatch environment
95
+ hatch env create
96
+
97
+ # All tools will be automatically available
98
+ ```
99
+
100
+ ### 🧩 Git Hook Setup
101
+
102
+ To ensure code quality before every commit, enable the mise-managed pre-commit hook:
103
+
104
+ ```bash
105
+ mise generate git-pre-commit --write --task=precommit
106
+ ```
107
+
108
+ This creates `.git/hooks/pre-commit`, which automatically runs:
109
+
110
+ - `hatch fmt`
111
+ - `hatch run typecheck`
112
+ - `hatch run test`
113
+
114
+ If any step fails, the commit will be blocked until fixed.
115
+
116
+ You can also run it manually at any time:
117
+
118
+ ```bash
119
+ mise run precommit
120
+ ```
121
+
122
+ ### Optional Dependencies
123
+
124
+ For file watching functionality:
125
+ ```console
126
+ pip install localargo[watch]
127
+ ```
128
+
129
+ ## Documentation
130
+
131
+ 📖 Full documentation is available at [docs/](docs/) and can be built locally using mdBook.
132
+
133
+ To build the documentation:
134
+
135
+ ```console
136
+ # Install mdBook (if not already installed)
137
+ cargo install mdbook
138
+
139
+ # Build the docs
140
+ cd docs && mdbook build
141
+
142
+ # Or using Hatch
143
+ hatch run docs:build
144
+ ```
145
+
146
+ ## License
147
+
148
+ `localargo` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
149
+ # Test comment for precommit hook
@@ -0,0 +1,42 @@
1
+ localargo/__about__.py,sha256=fW2ZWJXDc2m1H_7gmps8zUY8ymGIxOYh4pTbtCpqgDo,178
2
+ localargo/__init__.py,sha256=QE27YHqsJxPS736Rm6krKpVd2qus4RVY3X7WA1ZFVFc,210
3
+ localargo/__main__.py,sha256=9AEtbYXWFUkbdk5Pql_fE0hEc1SoUbREbCZwkwIJok4,276
4
+ localargo/logging.py,sha256=_u0773v4ts0p9QEt8v0LNWeVi4XYgEhNlvcqCT9W9O8,2632
5
+ localargo/manager.py,sha256=3n1LVHAzswPM9U7KBSSWkG32MDUqLxYRvsnDxOfYqUc,8487
6
+ localargo/cli/__init__.py,sha256=n8KEjDrlxQC7n3uJJsOWI_gN0CcWqTqL8kgfquyZbhI,1817
7
+ localargo/cli/commands/__init__.py,sha256=Jg__qmv9D1fEPtuAVFSpqlJIFyzU09-JspJRTnv_p0Y,143
8
+ localargo/cli/commands/app.py,sha256=wWzooXxFiSbaOzKEv-hH39TszjX5dl77zJZpOgpLt7A,4739
9
+ localargo/cli/commands/cluster.py,sha256=oy1tiHNuiq9PKCSaOHKBOJXVLg_3gYAgfGb88PwrII8,10332
10
+ localargo/cli/commands/debug.py,sha256=iVC0olbJ-SDd-h9CS_tEvOOyH-BGW1aQFpNOwuGAQsA,16044
11
+ localargo/cli/commands/port_forward.py,sha256=m4tf1EjPgUvdgscbKuKfRfRNBrQtEQDtuzkZo_ZH_Do,9700
12
+ localargo/cli/commands/secrets.py,sha256=2SWgLQE8bs_hq9t_fDsWBIIHu0J2OueitE4M2IyEOf4,9836
13
+ localargo/cli/commands/sync.py,sha256=11mFlUcUKVK7ye4B1mgEdyP2fBZeGcStDLkjJhODkTs,9423
14
+ localargo/cli/commands/template.py,sha256=YVM-imNCVduD5sLXbDq-6dsT4CxwNJK_Da7qJ70exAw,9336
15
+ localargo/cli/commands/up.py,sha256=s3uyFRGf7VG4yJDLg6JWV1Wn88wiwZZwQSRDOvaLXhc,12065
16
+ localargo/config/__init__.py,sha256=w0VhemJyCQWTsLws4qLgQX6LH_KI_Ptl0IBa-aw2GTg,353
17
+ localargo/config/manifest.py,sha256=K00_PzSmCdfZ6WDoGHakhZA10aGD3u1DG9NS59rlJuE,16613
18
+ localargo/config/store.py,sha256=tJkjnf3O_Y47ieGq1HrsILcjH8DCUKwr2ZIv5YohvgU,2101
19
+ localargo/core/__init__.py,sha256=9n9yPqdXZCPhp5qxKNNgmqU_ei6p_Sk-rJ0jwZm67B8,209
20
+ localargo/core/apps.py,sha256=zrM3N8-QRidgP5lyDISCPCkjYtYIxTH_CetjFniuoj8,10688
21
+ localargo/core/argocd.py,sha256=KAUf4ZbEjbH-If65mpTCmxJuPf-I7g51ZjsIwOIIr5Q,16858
22
+ localargo/core/catalog.py,sha256=qYb35jOQrdfutqL54_wln7HB-blK5ZCmbpN376upXe8,9514
23
+ localargo/core/cluster.py,sha256=GVUjct0ABK1SjdKJ4WLhbkHoETb32s2oZAOnp-msXgQ,5449
24
+ localargo/core/k8s.py,sha256=iR69SsZ8eo3kqg9f2VlVcNAVXTUJ6Uub1xv1QLdUep0,4649
25
+ localargo/eyecandy/__init__.py,sha256=lGECUAV_3tAH0MD5dHJolaxHe7XFvzNJhgtEfxgSd3w,469
26
+ localargo/eyecandy/progress_steps.py,sha256=FQoxuzm683PXHrDi-ssLICsMYH6VWXiyAiBNscdV-_Y,9674
27
+ localargo/eyecandy/table_renderer.py,sha256=jdWOb8tnHNAFN1WjQeaEBMy1GaO03tmEE1cB-g3Cz1I,5101
28
+ localargo/eyecandy/tables.py,sha256=I4yKYeF5lEy4dAUdNIAFmpZUh-mfNgvAdAgq7aZbYik,1859
29
+ localargo/providers/__init__.py,sha256=E43_1oDYfZEztpXgfbjFf2cBthBzlqYGrHBJZXO-Y4k,190
30
+ localargo/providers/base.py,sha256=bChlPu78D9FK0sx090Yf2DGUUjv3x-GSis7o2I8vanU,4914
31
+ localargo/providers/k3s.py,sha256=RFA-e3N1dgKaLLZPA99QytDv-jBwT1unrwPADl1Kz60,7033
32
+ localargo/providers/kind.py,sha256=yACX1d8rgwcf-nl9GcBNu0dBtrpqoH2HEJPT76ZaFFY,11696
33
+ localargo/providers/registry.py,sha256=4a3mv2mAHE9sLrV6EEPvJNmRnSrvxoLXt35gQOTuuTw,1271
34
+ localargo/utils/__init__.py,sha256=PmDWmjpw4k45fgkXDouw6D3VxzpzNePnKoi9Fv2HQwQ,151
35
+ localargo/utils/cli.py,sha256=NgWhY101VBIAAOjvkrrxqzmUVRgXUqGWCxYp4bW-T1Y,6623
36
+ localargo/utils/proc.py,sha256=wYnX0qL0JB_75z9XQ2BP_dzZf7g0yP9yR9ng5weAluI,4704
37
+ localargo/utils/retry.py,sha256=tavt_dwJcCOzKiDGlo8PnEiunVmEq3mss9wRtgfT07A,2032
38
+ localargo-0.1.0.dist-info/METADATA,sha256=zC9xfypcB1padk5kIc9znIwe7CCzyYaxaOfTz7XS7zI,4282
39
+ localargo-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
+ localargo-0.1.0.dist-info/entry_points.txt,sha256=d6B-IhXUjU1Pzeyu6j9JEzx2BwKnnuO1szfxMhFZHSc,54
41
+ localargo-0.1.0.dist-info/licenses/LICENSE,sha256=lsN04Uixq6Di7nTLgytuiF3fPI7w2iykwSrqH9Px2UI,1069
42
+ localargo-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ localargo = localargo.cli:localargo
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 williamkborn
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.