awslabs.healthlake-mcp-server 0.0.1__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.
- awslabs_healthlake_mcp_server-0.0.1/.dockerignore +36 -0
- awslabs_healthlake_mcp_server-0.0.1/.gitignore +139 -0
- awslabs_healthlake_mcp_server-0.0.1/.python-version +1 -0
- awslabs_healthlake_mcp_server-0.0.1/CHANGELOG.md +12 -0
- awslabs_healthlake_mcp_server-0.0.1/CONTRIBUTING.md +129 -0
- awslabs_healthlake_mcp_server-0.0.1/Dockerfile +89 -0
- awslabs_healthlake_mcp_server-0.0.1/LICENSE +175 -0
- awslabs_healthlake_mcp_server-0.0.1/NOTICE +2 -0
- awslabs_healthlake_mcp_server-0.0.1/PKG-INFO +631 -0
- awslabs_healthlake_mcp_server-0.0.1/README.md +591 -0
- awslabs_healthlake_mcp_server-0.0.1/awslabs/__init__.py +16 -0
- awslabs_healthlake_mcp_server-0.0.1/awslabs/healthlake_mcp_server/__init__.py +17 -0
- awslabs_healthlake_mcp_server-0.0.1/awslabs/healthlake_mcp_server/fhir_operations.py +701 -0
- awslabs_healthlake_mcp_server-0.0.1/awslabs/healthlake_mcp_server/main.py +77 -0
- awslabs_healthlake_mcp_server-0.0.1/awslabs/healthlake_mcp_server/models.py +120 -0
- awslabs_healthlake_mcp_server-0.0.1/awslabs/healthlake_mcp_server/server.py +665 -0
- awslabs_healthlake_mcp_server-0.0.1/docker-healthcheck.sh +26 -0
- awslabs_healthlake_mcp_server-0.0.1/examples/README.md +35 -0
- awslabs_healthlake_mcp_server-0.0.1/examples/mcp_config.json +15 -0
- awslabs_healthlake_mcp_server-0.0.1/pyproject.toml +154 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/conftest.py +19 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_fhir_client_comprehensive.py +1223 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_fhir_error_scenarios.py +272 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_fhir_operations.py +291 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_integration_mock_based.py +146 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_main.py +88 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_main_edge_cases.py +30 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_mcp_integration_coverage.py +282 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_models.py +204 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_models_edge_cases.py +85 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_readonly_mode.py +272 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_server_core.py +218 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_server_error_handling.py +148 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_server_mcp_handlers.py +201 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_server_toolhandler.py +400 -0
- awslabs_healthlake_mcp_server-0.0.1/tests/test_server_validation.py +165 -0
- awslabs_healthlake_mcp_server-0.0.1/uv-requirements.txt +424 -0
- awslabs_healthlake_mcp_server-0.0.1/uv.lock +1207 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Virtual environments
|
|
2
|
+
.venv/
|
|
3
|
+
venv/
|
|
4
|
+
|
|
5
|
+
# Git
|
|
6
|
+
.git/
|
|
7
|
+
.gitignore
|
|
8
|
+
|
|
9
|
+
# Python cache
|
|
10
|
+
__pycache__/
|
|
11
|
+
*.pyc
|
|
12
|
+
*.pyo
|
|
13
|
+
*.pyd
|
|
14
|
+
.Python
|
|
15
|
+
*.so
|
|
16
|
+
|
|
17
|
+
# Testing
|
|
18
|
+
.pytest_cache/
|
|
19
|
+
tests/results/
|
|
20
|
+
.coverage
|
|
21
|
+
|
|
22
|
+
# IDE
|
|
23
|
+
.vscode/
|
|
24
|
+
.idea/
|
|
25
|
+
|
|
26
|
+
# Documentation
|
|
27
|
+
docs/
|
|
28
|
+
|
|
29
|
+
# Build artifacts
|
|
30
|
+
build/
|
|
31
|
+
dist/
|
|
32
|
+
*.egg-info/
|
|
33
|
+
|
|
34
|
+
# OS
|
|
35
|
+
.DS_Store
|
|
36
|
+
Thumbs.db
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
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
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
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
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pipenv
|
|
85
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
86
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
87
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
88
|
+
# install all needed dependencies.
|
|
89
|
+
#Pipfile.lock
|
|
90
|
+
|
|
91
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
92
|
+
__pypackages__/
|
|
93
|
+
|
|
94
|
+
# Celery stuff
|
|
95
|
+
celerybeat-schedule
|
|
96
|
+
celerybeat.pid
|
|
97
|
+
|
|
98
|
+
# SageMath parsed files
|
|
99
|
+
*.sage.py
|
|
100
|
+
|
|
101
|
+
# Environments
|
|
102
|
+
.env
|
|
103
|
+
.venv
|
|
104
|
+
env/
|
|
105
|
+
venv/
|
|
106
|
+
ENV/
|
|
107
|
+
env.bak/
|
|
108
|
+
venv.bak/
|
|
109
|
+
|
|
110
|
+
# Spyder project settings
|
|
111
|
+
.spyderproject
|
|
112
|
+
.spyproject
|
|
113
|
+
|
|
114
|
+
# Rope project settings
|
|
115
|
+
.ropeproject
|
|
116
|
+
|
|
117
|
+
# mkdocs documentation
|
|
118
|
+
/site
|
|
119
|
+
|
|
120
|
+
# mypy
|
|
121
|
+
.mypy_cache/
|
|
122
|
+
.dmypy.json
|
|
123
|
+
dmypy.json
|
|
124
|
+
|
|
125
|
+
# Pyre type checker
|
|
126
|
+
.pyre/
|
|
127
|
+
|
|
128
|
+
# AWS credentials
|
|
129
|
+
.aws/
|
|
130
|
+
|
|
131
|
+
# IDE files
|
|
132
|
+
.vscode/
|
|
133
|
+
.idea/
|
|
134
|
+
*.swp
|
|
135
|
+
*.swo
|
|
136
|
+
|
|
137
|
+
# OS files
|
|
138
|
+
.DS_Store
|
|
139
|
+
Thumbs.db
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Initial project setup
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Contributing to HealthLake MCP Server
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to the HealthLake MCP Server! This document provides guidelines for contributing to the project.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
1. **Clone the repository**
|
|
8
|
+
```bash
|
|
9
|
+
git clone <repository-url>
|
|
10
|
+
cd healthlake-mcp-server
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. **Set up virtual environment**
|
|
14
|
+
```bash
|
|
15
|
+
uv sync --dev
|
|
16
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. **Install development dependencies**
|
|
20
|
+
```bash
|
|
21
|
+
# Dependencies are already installed by uv sync --dev
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Development Workflow
|
|
25
|
+
|
|
26
|
+
### Making Changes
|
|
27
|
+
|
|
28
|
+
1. **Create a feature branch**
|
|
29
|
+
```bash
|
|
30
|
+
git checkout -b feature/your-feature-name
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
2. **Make your changes**
|
|
34
|
+
- Follow the existing code style and patterns
|
|
35
|
+
- Add unit tests for new functionality
|
|
36
|
+
- Update documentation as needed
|
|
37
|
+
|
|
38
|
+
3. **Test your changes**
|
|
39
|
+
```bash
|
|
40
|
+
make test # Run unit tests
|
|
41
|
+
make test-coverage # Run tests with coverage
|
|
42
|
+
make lint # Check code style
|
|
43
|
+
make format # Format code
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
4. **Commit and push**
|
|
47
|
+
```bash
|
|
48
|
+
git add .
|
|
49
|
+
git commit -m "feat: add new feature"
|
|
50
|
+
git push origin feature/your-feature-name
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
5. **Create a pull request**
|
|
54
|
+
|
|
55
|
+
### Code Style
|
|
56
|
+
|
|
57
|
+
- **Python**: Follow PEP 8 style guidelines
|
|
58
|
+
- **Formatting**: Use `black` and `isort` (run `make format`)
|
|
59
|
+
- **Linting**: Use `mypy` for type checking (run `make lint`)
|
|
60
|
+
- **Line length**: 88 characters (black default)
|
|
61
|
+
|
|
62
|
+
### Testing
|
|
63
|
+
|
|
64
|
+
- **Unit tests only**: We use fast, isolated unit tests without external dependencies
|
|
65
|
+
- **Test location**: Place tests in `tests/` directory
|
|
66
|
+
- **Test naming**: Use descriptive test function names starting with `test_`
|
|
67
|
+
- **Coverage**: Aim for good test coverage of new functionality
|
|
68
|
+
|
|
69
|
+
### Documentation
|
|
70
|
+
|
|
71
|
+
- **README**: Update if adding new features or changing installation
|
|
72
|
+
- **Docstrings**: Add docstrings to new functions and classes
|
|
73
|
+
- **Type hints**: Use type hints for all function parameters and return values
|
|
74
|
+
|
|
75
|
+
## Project Structure
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
awslabs/healthlake_mcp_server/
|
|
79
|
+
├── server.py # MCP server implementation with tool handlers
|
|
80
|
+
├── fhir_operations.py # AWS HealthLake client operations
|
|
81
|
+
├── main.py # Entry point and CLI setup
|
|
82
|
+
└── __init__.py # Package initialization
|
|
83
|
+
|
|
84
|
+
tests/
|
|
85
|
+
├── conftest.py # Test fixtures
|
|
86
|
+
├── test_server.py # Server creation tests
|
|
87
|
+
├── test_tool_handler.py # Tool dispatch logic tests
|
|
88
|
+
├── test_validation.py # Input validation tests
|
|
89
|
+
└── test_responses.py # Response formatting tests
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Commit Message Guidelines
|
|
93
|
+
|
|
94
|
+
Use conventional commit format:
|
|
95
|
+
|
|
96
|
+
- `feat:` - New features
|
|
97
|
+
- `fix:` - Bug fixes
|
|
98
|
+
- `docs:` - Documentation changes
|
|
99
|
+
- `style:` - Code style changes (formatting, etc.)
|
|
100
|
+
- `refactor:` - Code refactoring
|
|
101
|
+
- `test:` - Adding or updating tests
|
|
102
|
+
- `chore:` - Maintenance tasks
|
|
103
|
+
|
|
104
|
+
Examples:
|
|
105
|
+
- `feat: add patient-everything operation`
|
|
106
|
+
- `fix: handle empty search results correctly`
|
|
107
|
+
- `docs: update installation instructions`
|
|
108
|
+
|
|
109
|
+
## Pull Request Guidelines
|
|
110
|
+
|
|
111
|
+
- **Title**: Use descriptive titles that explain the change
|
|
112
|
+
- **Description**: Provide context and explain what the PR does
|
|
113
|
+
- **Tests**: Ensure all tests pass
|
|
114
|
+
- **Documentation**: Update documentation if needed
|
|
115
|
+
- **Size**: Keep PRs focused and reasonably sized
|
|
116
|
+
|
|
117
|
+
## Getting Help
|
|
118
|
+
|
|
119
|
+
- **Questions**: Open an issue with the "question" label
|
|
120
|
+
- **Bugs**: Open an issue with the "bug" label and include reproduction steps
|
|
121
|
+
- **Features**: Open an issue with the "enhancement" label to discuss before implementing
|
|
122
|
+
|
|
123
|
+
## Code of Conduct
|
|
124
|
+
|
|
125
|
+
- Be respectful and inclusive
|
|
126
|
+
- Focus on constructive feedback
|
|
127
|
+
- Help maintain a welcoming environment for all contributors
|
|
128
|
+
|
|
129
|
+
Thank you for contributing!
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
# dependabot should continue to update this to the latest hash.
|
|
16
|
+
FROM public.ecr.aws/docker/library/python:3.13.7-alpine3.22@sha256:587df003ff48316a56a0ddac50e1e2b64dfeca281f0c071b91920895a65b12d2 AS uv
|
|
17
|
+
|
|
18
|
+
# Install the project into `/app`
|
|
19
|
+
WORKDIR /app
|
|
20
|
+
|
|
21
|
+
# Enable bytecode compilation
|
|
22
|
+
ENV UV_COMPILE_BYTECODE=1
|
|
23
|
+
|
|
24
|
+
# Copy from the cache instead of linking since it's a mounted volume
|
|
25
|
+
ENV UV_LINK_MODE=copy
|
|
26
|
+
|
|
27
|
+
# Prefer the system python
|
|
28
|
+
ENV UV_PYTHON_PREFERENCE=only-system
|
|
29
|
+
|
|
30
|
+
# Run without updating the uv.lock file like running with `--frozen`
|
|
31
|
+
ENV UV_FROZEN=true
|
|
32
|
+
|
|
33
|
+
# Copy the required files first
|
|
34
|
+
COPY pyproject.toml uv.lock uv-requirements.txt ./
|
|
35
|
+
|
|
36
|
+
# Python optimization and uv configuration
|
|
37
|
+
ENV PIP_NO_CACHE_DIR=1 \
|
|
38
|
+
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
39
|
+
|
|
40
|
+
# Install system dependencies and Python package manager
|
|
41
|
+
RUN apk update && \
|
|
42
|
+
apk add --no-cache --virtual .build-deps \
|
|
43
|
+
build-base \
|
|
44
|
+
gcc \
|
|
45
|
+
musl-dev \
|
|
46
|
+
libffi-dev \
|
|
47
|
+
openssl-dev \
|
|
48
|
+
cargo && \
|
|
49
|
+
pip install uv
|
|
50
|
+
|
|
51
|
+
# Install the project's dependencies using the lockfile and settings
|
|
52
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
53
|
+
pip install --require-hashes --requirement uv-requirements.txt --no-cache-dir && \
|
|
54
|
+
uv sync --python 3.13 --frozen --no-install-project --no-dev --no-editable
|
|
55
|
+
|
|
56
|
+
# Then, add the rest of the project source code and install it
|
|
57
|
+
# Installing separately from its dependencies allows optimal layer caching
|
|
58
|
+
COPY . /app
|
|
59
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
60
|
+
uv sync --python 3.13 --frozen --no-dev --no-editable
|
|
61
|
+
|
|
62
|
+
# Make the directory just in case it doesn't exist
|
|
63
|
+
RUN mkdir -p /root/.local
|
|
64
|
+
|
|
65
|
+
FROM public.ecr.aws/docker/library/python:3.13.7-alpine3.22@sha256:587df003ff48316a56a0ddac50e1e2b64dfeca281f0c071b91920895a65b12d2
|
|
66
|
+
|
|
67
|
+
# Place executables in the environment at the front of the path and include other binaries
|
|
68
|
+
ENV PATH="/app/.venv/bin:$PATH" \
|
|
69
|
+
PYTHONUNBUFFERED=1
|
|
70
|
+
|
|
71
|
+
# Install runtime dependencies and create application user
|
|
72
|
+
RUN apk update && \
|
|
73
|
+
apk add --no-cache ca-certificates && \
|
|
74
|
+
update-ca-certificates && \
|
|
75
|
+
addgroup -S app && \
|
|
76
|
+
adduser -S app -G app -h /app
|
|
77
|
+
|
|
78
|
+
# Copy application artifacts from build stage
|
|
79
|
+
COPY --from=uv --chown=app:app /app/.venv /app/.venv
|
|
80
|
+
|
|
81
|
+
# Get healthcheck script
|
|
82
|
+
COPY ./docker-healthcheck.sh /usr/local/bin/docker-healthcheck.sh
|
|
83
|
+
|
|
84
|
+
# Run as non-root
|
|
85
|
+
USER app
|
|
86
|
+
|
|
87
|
+
# When running the container, add --db-path and a bind mount to the host's db file
|
|
88
|
+
HEALTHCHECK --interval=60s --timeout=10s --start-period=10s --retries=3 CMD ["docker-healthcheck.sh"]
|
|
89
|
+
ENTRYPOINT ["awslabs.healthlake-mcp-server"]
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|