aio-sf 0.1.0b1__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.
Files changed (35) hide show
  1. aio_sf-0.1.0b1/.cursor/rules/async-patterns.mdc +37 -0
  2. aio_sf-0.1.0b1/.cursor/rules/data-export.mdc +39 -0
  3. aio_sf-0.1.0b1/.cursor/rules/import-conventions.mdc +38 -0
  4. aio_sf-0.1.0b1/.cursor/rules/packaging.mdc +40 -0
  5. aio_sf-0.1.0b1/.cursor/rules/project-structure.mdc +26 -0
  6. aio_sf-0.1.0b1/.cursor/rules/salesforce-api.mdc +37 -0
  7. aio_sf-0.1.0b1/.github/workflows/publish.yml +72 -0
  8. aio_sf-0.1.0b1/.github/workflows/test.yml +51 -0
  9. aio_sf-0.1.0b1/.gitignore +207 -0
  10. aio_sf-0.1.0b1/LICENSE +21 -0
  11. aio_sf-0.1.0b1/PKG-INFO +198 -0
  12. aio_sf-0.1.0b1/README.md +137 -0
  13. aio_sf-0.1.0b1/RELEASE.md +84 -0
  14. aio_sf-0.1.0b1/contacts.parquet +0 -0
  15. aio_sf-0.1.0b1/pyproject.toml +148 -0
  16. aio_sf-0.1.0b1/src/aio_salesforce/__init__.py +27 -0
  17. aio_sf-0.1.0b1/src/aio_salesforce/api/README.md +107 -0
  18. aio_sf-0.1.0b1/src/aio_salesforce/api/__init__.py +65 -0
  19. aio_sf-0.1.0b1/src/aio_salesforce/api/bulk_v2/__init__.py +21 -0
  20. aio_sf-0.1.0b1/src/aio_salesforce/api/bulk_v2/client.py +200 -0
  21. aio_sf-0.1.0b1/src/aio_salesforce/api/bulk_v2/types.py +71 -0
  22. aio_sf-0.1.0b1/src/aio_salesforce/api/describe/__init__.py +31 -0
  23. aio_sf-0.1.0b1/src/aio_salesforce/api/describe/client.py +94 -0
  24. aio_sf-0.1.0b1/src/aio_salesforce/api/describe/types.py +303 -0
  25. aio_sf-0.1.0b1/src/aio_salesforce/api/query/__init__.py +18 -0
  26. aio_sf-0.1.0b1/src/aio_salesforce/api/query/client.py +216 -0
  27. aio_sf-0.1.0b1/src/aio_salesforce/api/query/types.py +38 -0
  28. aio_sf-0.1.0b1/src/aio_salesforce/api/types.py +303 -0
  29. aio_sf-0.1.0b1/src/aio_salesforce/connection.py +511 -0
  30. aio_sf-0.1.0b1/src/aio_salesforce/exporter/__init__.py +38 -0
  31. aio_sf-0.1.0b1/src/aio_salesforce/exporter/bulk_export.py +397 -0
  32. aio_sf-0.1.0b1/src/aio_salesforce/exporter/parquet_writer.py +296 -0
  33. aio_sf-0.1.0b1/src/aio_salesforce/exporter/parquet_writer.py.backup +326 -0
  34. aio_sf-0.1.0b1/test.py +51 -0
  35. aio_sf-0.1.0b1/uv.lock +1403 -0
@@ -0,0 +1,37 @@
1
+ ---
2
+ globs: *.py
3
+ description: "Async programming patterns and conventions"
4
+ ---
5
+
6
+ # Async Programming Patterns
7
+
8
+ This project uses async/await patterns throughout. Follow these conventions:
9
+
10
+ ## Connection Management
11
+ - Always use `async with SalesforceConnection(auth_strategy=auth_strategy) as sf:` for connection handling
12
+ - Connection objects should be passed to async functions, not created within them
13
+ - Use `await sf.ensure_authenticated()` before making API calls
14
+
15
+ ## Bulk Query Patterns
16
+ ```python
17
+ # Correct async bulk query usage
18
+ query_result = await bulk_query(
19
+ sf=sf,
20
+ soql_query="SELECT Id, Name FROM Contact"
21
+ )
22
+
23
+ # Async iteration over results
24
+ async for record in query_result:
25
+ # process record
26
+ pass
27
+ ```
28
+
29
+ ## Authentication Strategies
30
+ - Use `ClientCredentialsAuth` for OAuth client credentials flow
31
+ - Use `StaticTokenAuth` for existing access tokens
32
+ - Use `RefreshTokenAuth` for refresh token flow
33
+
34
+ ## Error Handling
35
+ - Catch `SalesforceAuthError` for authentication issues
36
+ - Use proper async context managers for resource cleanup
37
+ - Always handle connection timeouts and retries appropriately
@@ -0,0 +1,39 @@
1
+ ---
2
+ description: "Data export patterns and best practices"
3
+ ---
4
+
5
+ # Data Export Patterns
6
+
7
+ ## Parquet Export Workflow
8
+ 1. **Get metadata** (optional but recommended): `get_bulk_fields(sf, object_name)`
9
+ 2. **Create schema**: `create_schema_from_metadata(fields_metadata)`
10
+ 3. **Execute query**: `bulk_query(sf, soql_query)`
11
+ 4. **Export data**: `write_query_to_parquet_async(query_result, file_path, schema=schema)`
12
+
13
+ ## Export Options
14
+ - **Inferred schema**: Let pandas/pyarrow infer types from data
15
+ - **Metadata schema**: Use Salesforce field metadata for proper typing
16
+ - **Batch processing**: Configure batch sizes for memory efficiency
17
+ - **Empty value handling**: Convert empty strings to null values
18
+
19
+ ## Memory Management
20
+ ```python
21
+ # For large datasets, use smaller batch sizes
22
+ writer = ParquetWriter(
23
+ file_path="large_dataset.parquet",
24
+ schema=schema,
25
+ batch_size=1000, # Smaller batches for memory efficiency
26
+ convert_empty_to_null=True
27
+ )
28
+ writer.write_query_result(query_result)
29
+ ```
30
+
31
+ ## Resume Capability
32
+ ```python
33
+ # Resume from job locator for interrupted queries
34
+ query_result = resume_from_locator(
35
+ sf=sf,
36
+ job_id="job_id_from_previous_run",
37
+ locator="locator_from_previous_run"
38
+ )
39
+ ```
@@ -0,0 +1,38 @@
1
+ ---
2
+ globs: *.py
3
+ description: "Import conventions and module organization"
4
+ ---
5
+
6
+ # Import Conventions
7
+
8
+ ## Main Package Imports
9
+ ```python
10
+ # Core connection functionality
11
+ from aio_salesforce import SalesforceConnection, ClientCredentialsAuth
12
+
13
+ # Bulk query and export
14
+ from aio_salesforce import bulk_query, ParquetWriter
15
+
16
+ # Direct exporter imports
17
+ from aio_salesforce.exporter import (
18
+ bulk_query,
19
+ get_bulk_fields,
20
+ create_schema_from_metadata,
21
+ write_query_to_parquet_async
22
+ )
23
+ ```
24
+
25
+ ## Internal Module Imports
26
+ - Use relative imports within the package: `from ..api.types import FieldInfo`
27
+ - Import from parent modules: `from ..connection import SalesforceConnection`
28
+ - Keep imports organized: connection, then API, then utilities
29
+
30
+ ## Export Patterns
31
+ - All public functions must be listed in `__all__`
32
+ - Use `# noqa: F401` for re-exported imports
33
+ - Maintain consistent export structure across modules
34
+
35
+ ## API Module Structure
36
+ - `bulk_v2/` - Bulk API 2.0 client and types
37
+ - `metadata/` - Metadata API client and types
38
+ - `query/` - SOQL query client and types
@@ -0,0 +1,40 @@
1
+ ---
2
+ globs: pyproject.toml,setup.py,setup.cfg
3
+ description: "Package configuration and distribution"
4
+ ---
5
+
6
+ # Package Configuration
7
+
8
+ ## Build System
9
+ - Uses `hatchling` as build backend
10
+ - Version dynamically read from `src/aio_salesforce/__init__.py`
11
+ - Built with `uv build` command
12
+
13
+ ## Dependencies
14
+ - **Core**: httpx, requests, pandas, pyarrow, pydantic, boto3
15
+ - **Auth**: python-dotenv for environment variables
16
+ - **CLI**: typer (for future CLI implementation)
17
+ - **Dev**: pytest, black, ruff, mypy, pre-commit
18
+
19
+ ## Distribution
20
+ - **Package name**: `aio-salesforce` (PyPI)
21
+ - **Import name**: `aio_salesforce` (Python)
22
+ - **Version**: Semantic versioning (currently 0.1.0)
23
+
24
+ ## Building and Testing
25
+ ```bash
26
+ # Build package
27
+ uv build
28
+
29
+ # Test installation in clean environment
30
+ uv init test-project && cd test-project
31
+ uv add /path/to/dist/aio_salesforce-0.1.0-py3-none-any.whl
32
+ uv run python -c "import aio_salesforce; print('Success!')"
33
+ ```
34
+
35
+ ## Release Checklist
36
+ 1. Update version in `__init__.py`
37
+ 2. Update CHANGELOG/README if needed
38
+ 3. Run `uv build`
39
+ 4. Test wheel installation
40
+ 5. Publish to PyPI: `uv publish`
@@ -0,0 +1,26 @@
1
+ ---
2
+ alwaysApply: true
3
+ ---
4
+
5
+ # aio-salesforce Project Structure
6
+
7
+ This is an async Salesforce library for Python with Bulk API 2.0 support.
8
+
9
+ ## Core Structure
10
+ - **Main package**: [src/aio_salesforce/__init__.py](mdc:src/aio_salesforce/__init__.py) - Main package exports and version info
11
+ - **Connection handling**: [src/aio_salesforce/connection.py](mdc:src/aio_salesforce/connection.py) - Authentication and connection management
12
+ - **API modules**: [src/aio_salesforce/api/](mdc:src/aio_salesforce/api/) - Salesforce API clients (bulk_v2, metadata, query)
13
+ - **Export functionality**: [src/aio_salesforce/exporter/](mdc:src/aio_salesforce/exporter/) - Data export utilities
14
+
15
+ ## Key Modules
16
+ - **Bulk Export**: [src/aio_salesforce/exporter/bulk_export.py](mdc:src/aio_salesforce/exporter/bulk_export.py) - Bulk API 2.0 query functionality
17
+ - **Parquet Writer**: [src/aio_salesforce/exporter/parquet_writer.py](mdc:src/aio_salesforce/exporter/parquet_writer.py) - Parquet file export with schema mapping
18
+ - **Configuration**: [pyproject.toml](mdc:pyproject.toml) - Package configuration and dependencies
19
+ - **Documentation**: [README.md](mdc:README.md) - Usage examples and API reference
20
+
21
+ ## Package Name
22
+ - **PyPI name**: `aio-salesforce` (with hyphen)
23
+ - **Import name**: `aio_salesforce` (with underscore)
24
+
25
+ ## Testing
26
+ - **Test file**: [test.py](mdc:test.py) - Example usage and testing
@@ -0,0 +1,37 @@
1
+ ---
2
+ description: "Salesforce API integration patterns and best practices"
3
+ ---
4
+
5
+ # Salesforce API Integration Patterns
6
+
7
+ ## Authentication Flow
8
+ 1. **Client Credentials** (Recommended): Use OAuth client credentials flow
9
+ 2. **Static Token**: Use existing access token
10
+ 3. **Refresh Token**: Use refresh token to obtain access tokens
11
+
12
+ ## Bulk API 2.0 Usage
13
+ - Use for large data queries (>2000 records)
14
+ - Supports both sync and async query execution
15
+ - Handles pagination automatically via locators
16
+ - Provides resume capability for interrupted queries
17
+
18
+ ## Schema Handling
19
+ ```python
20
+ # Get field metadata for proper type mapping
21
+ fields_metadata = await get_bulk_fields(sf, 'Contact')
22
+ schema = create_schema_from_metadata(fields_metadata)
23
+
24
+ # Schema automatically filters to match query fields
25
+ query_result = await bulk_query(sf, "SELECT Id, Name FROM Contact")
26
+ await write_query_to_parquet_async(query_result, "contacts.parquet", schema=schema)
27
+ ```
28
+
29
+ ## Type Mapping
30
+ - Salesforce types → PyArrow types automatically handled
31
+ - Support for: string, boolean, int, double, currency, percent, date, datetime, reference, picklist, id
32
+ - Empty strings converted to null when `convert_empty_to_null=True`
33
+
34
+ ## API Versioning
35
+ - Default: v60.0
36
+ - Configurable per connection
37
+ - Consistent across all API calls within a connection
@@ -0,0 +1,72 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ name: Build distribution 📦
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v5
14
+ with:
15
+ python-version: "3.x"
16
+ - name: Install uv
17
+ uses: astral-sh/setup-uv@v3
18
+ with:
19
+ version: "latest"
20
+ - name: Build a binary wheel and a source tarball
21
+ run: uv build
22
+ - name: Store the distribution packages
23
+ uses: actions/upload-artifact@v4
24
+ with:
25
+ name: python-package-distributions
26
+ path: dist/
27
+
28
+ publish-to-testpypi:
29
+ name: Publish Python 🐍 distribution 📦 to TestPyPI
30
+ needs:
31
+ - build
32
+ runs-on: ubuntu-latest
33
+
34
+ environment:
35
+ name: testpypi
36
+ url: https://test.pypi.org/p/aio-sf
37
+
38
+ permissions:
39
+ id-token: write # IMPORTANT: mandatory for trusted publishing
40
+
41
+ steps:
42
+ - name: Download all the dists
43
+ uses: actions/download-artifact@v4
44
+ with:
45
+ name: python-package-distributions
46
+ path: dist/
47
+ - name: Publish distribution 📦 to TestPyPI
48
+ uses: pypa/gh-action-pypi-publish@release/v1
49
+ with:
50
+ repository-url: https://test.pypi.org/legacy/
51
+
52
+ publish-to-pypi:
53
+ name: >-
54
+ Publish Python 🐍 distribution 📦 to PyPI
55
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
56
+ needs:
57
+ - build
58
+ runs-on: ubuntu-latest
59
+ environment:
60
+ name: pypi
61
+ url: https://pypi.org/p/aio-sf
62
+ permissions:
63
+ id-token: write # IMPORTANT: mandatory for trusted publishing
64
+
65
+ steps:
66
+ - name: Download all the dists
67
+ uses: actions/download-artifact@v4
68
+ with:
69
+ name: python-package-distributions
70
+ path: dist/
71
+ - name: Publish distribution 📦 to PyPI
72
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,51 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v3
21
+ with:
22
+ version: "latest"
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ run: uv python install ${{ matrix.python-version }}
26
+
27
+ - name: Install dependencies
28
+ run: uv sync --all-extras --dev
29
+
30
+ - name: Test core installation (no exporter)
31
+ run: |
32
+ uv run --isolated python -c "
33
+ from aio_salesforce import SalesforceConnection, ClientCredentialsAuth
34
+ print('✅ Core installation works')
35
+ "
36
+
37
+ - name: Test full installation (with exporter)
38
+ run: |
39
+ uv run python -c "
40
+ from aio_salesforce import SalesforceConnection
41
+ from aio_salesforce.exporter import bulk_query, ParquetWriter
42
+ print('✅ Full installation works')
43
+ "
44
+
45
+ - name: Build package
46
+ run: uv build
47
+
48
+ - name: Test wheel installation
49
+ run: |
50
+ uv run --isolated pip install dist/*.whl
51
+ uv run --isolated python -c "import aio_salesforce; print('✅ Wheel installation works')"
@@ -0,0 +1,207 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
aio_sf-0.1.0b1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Callaway Cloud
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.