guardtrellis 0.1.0__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 (58) hide show
  1. guardtrellis-0.1.0/.gitignore +13 -0
  2. guardtrellis-0.1.0/CHANGELOG.md +117 -0
  3. guardtrellis-0.1.0/CONTRIBUTING.md +145 -0
  4. guardtrellis-0.1.0/LICENSE +202 -0
  5. guardtrellis-0.1.0/PKG-INFO +222 -0
  6. guardtrellis-0.1.0/README.md +185 -0
  7. guardtrellis-0.1.0/ROADMAP.md +108 -0
  8. guardtrellis-0.1.0/docs/api.md +130 -0
  9. guardtrellis-0.1.0/docs/azure_openai.md +108 -0
  10. guardtrellis-0.1.0/docs/compatibility.md +100 -0
  11. guardtrellis-0.1.0/docs/gemini.md +136 -0
  12. guardtrellis-0.1.0/docs/limitations.md +88 -0
  13. guardtrellis-0.1.0/docs/openai.md +163 -0
  14. guardtrellis-0.1.0/docs/releasing.md +194 -0
  15. guardtrellis-0.1.0/docs/resource_limits.md +156 -0
  16. guardtrellis-0.1.0/docs/retrieval_tools.md +43 -0
  17. guardtrellis-0.1.0/evaluation/README.md +93 -0
  18. guardtrellis-0.1.0/evaluation/REPORT.md +40 -0
  19. guardtrellis-0.1.0/evaluation/challenges/README.md +103 -0
  20. guardtrellis-0.1.0/evaluation/challenges/unicode_pii_v1/REPORT.md +95 -0
  21. guardtrellis-0.1.0/evaluation/challenges/unicode_pii_v1/results.json +5142 -0
  22. guardtrellis-0.1.0/evaluation/challenges/unicode_pii_v1.jsonl +40 -0
  23. guardtrellis-0.1.0/evaluation/corpus.jsonl +72 -0
  24. guardtrellis-0.1.0/evaluation/measure_resources.py +637 -0
  25. guardtrellis-0.1.0/evaluation/resource_limits/REPORT.md +61 -0
  26. guardtrellis-0.1.0/evaluation/resource_limits/results.json +2937 -0
  27. guardtrellis-0.1.0/evaluation/results.json +8053 -0
  28. guardtrellis-0.1.0/evaluation/run.py +410 -0
  29. guardtrellis-0.1.0/examples/__init__.py +1 -0
  30. guardtrellis-0.1.0/examples/azure_openai_app.py +211 -0
  31. guardtrellis-0.1.0/examples/fastapi_app.py +56 -0
  32. guardtrellis-0.1.0/examples/gemini_app.py +202 -0
  33. guardtrellis-0.1.0/examples/langgraph_app.py +48 -0
  34. guardtrellis-0.1.0/examples/openai_app.py +185 -0
  35. guardtrellis-0.1.0/examples/plain_callable.py +34 -0
  36. guardtrellis-0.1.0/examples/retrieval_tools.py +99 -0
  37. guardtrellis-0.1.0/pyproject.toml +69 -0
  38. guardtrellis-0.1.0/scripts/release_artifacts.py +358 -0
  39. guardtrellis-0.1.0/scripts/smoke_dist.py +136 -0
  40. guardtrellis-0.1.0/src/guardtrellis/__init__.py +31 -0
  41. guardtrellis-0.1.0/src/guardtrellis/guard.py +276 -0
  42. guardtrellis-0.1.0/src/guardtrellis/json_check.py +170 -0
  43. guardtrellis-0.1.0/src/guardtrellis/models.py +149 -0
  44. guardtrellis-0.1.0/src/guardtrellis/py.typed +0 -0
  45. guardtrellis-0.1.0/src/guardtrellis/scanners.py +162 -0
  46. guardtrellis-0.1.0/src/guardtrellis/tools.py +87 -0
  47. guardtrellis-0.1.0/tests/test_azure_openai_example.py +291 -0
  48. guardtrellis-0.1.0/tests/test_evaluation.py +233 -0
  49. guardtrellis-0.1.0/tests/test_examples.py +68 -0
  50. guardtrellis-0.1.0/tests/test_gemini_example.py +286 -0
  51. guardtrellis-0.1.0/tests/test_guard.py +334 -0
  52. guardtrellis-0.1.0/tests/test_json_tools.py +247 -0
  53. guardtrellis-0.1.0/tests/test_openai_example.py +235 -0
  54. guardtrellis-0.1.0/tests/test_release_artifacts.py +359 -0
  55. guardtrellis-0.1.0/tests/test_resource_measurements.py +203 -0
  56. guardtrellis-0.1.0/tests/test_retrieval_tools_example.py +98 -0
  57. guardtrellis-0.1.0/tests/test_scanners.py +156 -0
  58. guardtrellis-0.1.0/uv.lock +2283 -0
@@ -0,0 +1,13 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ .pytest_cache/
5
+ .mypy_cache/
6
+ .ruff_cache/
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+ .DS_Store
11
+ .env
12
+ .env.*
13
+ handoff.md
@@ -0,0 +1,117 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ - Adopt a [compatibility and support policy](docs/compatibility.md) for the `0.1.x`
6
+ final-release series: preserve documented public imports, call signatures, result fields,
7
+ action/stage meanings, and existing diagnostics; define detection-fix exceptions,
8
+ deprecation notices, supported Python versions, and dependency/maintenance expectations.
9
+ - Prepare non-alpha package metadata and matching installation instructions. Update current
10
+ documentation to describe the compatibility promise while retaining historical alpha notes,
11
+ evaluation reports, and provider verification limits.
12
+ - Define changelog maintenance rules for user-visible changes, compatibility/dependency
13
+ changes, detection fixes, and migration guidance. Distinguish normal GitHub releases from
14
+ prereleases in the publishing checklist.
15
+
16
+ No core runtime or scanner-rule changes from `0.1.0a4`. Applications using its documented
17
+ API need only update their version pin and run their application checks. Copied OpenAI/Azure
18
+ SDK 2 adapters from earlier alphas still need the
19
+ [SDK 3 migration](docs/openai.md#sdk-3-compatibility) already included in `0.1.0a4`.
20
+ Detection coverage, serialized-JSON scanning, async cancellation, and host-owned authorization
21
+ retain their [documented limitations](docs/limitations.md).
22
+
23
+ ## 0.1.0a4 — 2026-09-28
24
+
25
+ - Add a runnable retrieval/tool-call recipe using only core dependencies. It demonstrates
26
+ checking retrieved text before prompt assembly, validating proposed tool arguments, and
27
+ executing the checked call behind application-owned authorization. Rejection tests and
28
+ fresh distribution smokes cover the complete recipe.
29
+ - Add a separate 40-case synthetic Unicode/PII development challenge set with provenance,
30
+ multilingual context, benign cases, escaped JSON pairs, and retained failures. Reports
31
+ include per-family/language results and action counts; the original 72-case corpus and
32
+ historical reports are preserved. These development results are not an independent benchmark.
33
+ - Migrate the optional OpenAI/Azure examples to OpenAI SDK 3 and HTTPX2. The `openai` extra
34
+ now requires `openai>=3,<4` and `httpx2>=2.12,<3`. Custom transports, clients, and exception
35
+ handling must use HTTPX2; its default certificate trust comes from the operating system.
36
+ See the [migration guide](docs/openai.md#sdk-3-compatibility). Both provider paths remain
37
+ mock-verified; no new live provider verification is claimed.
38
+ - Refresh the package description, versioned installation commands, guide links for PyPI,
39
+ and roadmap completion evidence.
40
+
41
+ No core Guard/scanner API or detection-rule changes. This remains an experimental alpha;
42
+ application authorization, execution limits, and output handling remain the host's responsibility.
43
+
44
+ ## 0.1.0a3
45
+
46
+ - Generate the module version and README installation instructions from `pyproject.toml`.
47
+ CI checks source, lockfile, and changelog agreement; release validation checks the README
48
+ embedded in both distributions and the description returned by TestPyPI and PyPI.
49
+ Corrects the stale `0.1.0a1` installation pin shipped in the `0.1.0a2` description.
50
+
51
+ - Reproducible offline resource measurements in bounded child processes, with retained
52
+ CPU/wall stops, input/finding/depth boundary cases, expensive schemas, and cancellation
53
+ observations. Includes host-control guidance and a separate reviewed local baseline;
54
+ no core runtime limits or detection rules change.
55
+
56
+ ## 0.1.0a2 — 2026-09-26
57
+
58
+ - Optional OpenAI Responses callback example with a credential-free HTTP mock, tested
59
+ input/output boundaries, and a separately opted-in one-request live smoke. Adds the
60
+ `openai` extra without changing core dependencies or public Guard APIs. Live verification
61
+ is pending; see the [integration guide](docs/openai.md).
62
+ - Standalone Azure OpenAI Chat Completions example using the same optional SDK extra,
63
+ with mocked HTTP boundary/failure tests and a separate, explicitly opted-in bounded
64
+ live command. Azure live verification is also pending; see its [guide](docs/azure_openai.md).
65
+ - CI installation coverage for macOS and Windows alongside Linux Python 3.11–3.14.
66
+ - Optional Gemini Developer API example with a separate `gemini` extra, mocked boundary
67
+ tests, and a one-request live smoke for an approved Free Tier project. See the
68
+ [Gemini guide](docs/gemini.md#recorded-live-smoke-2026-09-26) for the passing one-request
69
+ live smoke on 2026-09-26 (10 input and 5 output tokens).
70
+ - Clarified which synthetic evaluation fixtures and baselines belong in version control.
71
+
72
+ No core Guard/scanner API or detection-rule changes. The recorded `0.1.0a1` synthetic
73
+ baseline is retained. Gemini supplies the recorded live provider evidence; OpenAI and
74
+ Azure remain mock-verified only. Published after the
75
+ [TestPyPI rehearsal](https://github.com/sahilmathur254/guardtrellis/actions/runs/36245484256)
76
+ and [PyPI promotion](https://github.com/sahilmathur254/guardtrellis/actions/runs/36245714535).
77
+ Its package description contains an outdated installation pin; use the latest release instead.
78
+
79
+ ## 0.1.0a1 — 2026-09-25
80
+
81
+ The first alpha is available on [PyPI](https://pypi.org/project/guardtrellis/0.1.0a1/).
82
+ The [GitHub prerelease](https://github.com/sahilmathur254/guardtrellis/releases/tag/v0.1.0a1)
83
+ records the exact source commit, unchanged rehearsed artifacts, and verification evidence.
84
+ Publication is tracked in [#4](https://github.com/sahilmathur254/guardtrellis/issues/4).
85
+
86
+ ### Included
87
+
88
+ - Typed `Guard` and scanner contracts with synchronous/asynchronous entry points,
89
+ explicit input/output/retrieval/tool stages, and ordered redaction provenance.
90
+ - Explicit allow, warn, redact, block, and error outcomes. Rejected inputs do not reach
91
+ callbacks; blocked/error results do not expose ordinary deliverable text or arguments.
92
+ - Local checks for documented PII shapes, selected secret signatures, Unicode control/format
93
+ characters, literal policies, strict JSON/constrained Draft 2020-12 schemas, and tool-call
94
+ name/object-argument validation.
95
+ - Bounded text, findings, and JSON depth; per-operation async waits with documented
96
+ cancellation limitations; metadata-only diagnostics and payload-free rejection errors.
97
+ - Optional, credential-free callable, FastAPI, and LangGraph examples. The core requires
98
+ only jsonschema and referencing plus their dependencies, with no provider SDK or model download.
99
+ - Python 3.11–3.14 support, typed package metadata, Apache-2.0 licensing, wheel/sdist
100
+ installation checks, and a reproducible synthetic smoke evaluation with retained failures.
101
+
102
+ ### Compatibility and known limitations
103
+
104
+ This is an experimental API. Names, contracts, and dependencies can change before a stable
105
+ version; such changes will be documented with migration guidance. Pin an exact alpha version
106
+ or source commit when evaluating it. No new runtime API changes are included in release preparation.
107
+
108
+ Checks inspect only explicitly supplied text and configured formats. Coverage excludes many
109
+ PII/secret formats and semantic safety judgments. WARN permits delivery, unconfigured stages
110
+ permit bounded text, and tool validation supplies neither authorization nor sandboxing.
111
+ Outputs are checked only after the complete callback response; there is no streaming API.
112
+ Async timeout does not terminate arbitrary Python code or undo callback side effects.
113
+
114
+ The 72-case authored smoke corpus includes four known misses and two false positives. Its
115
+ aggregate results are not a general accuracy estimate or an independent security benchmark.
116
+ See [limitations](docs/limitations.md), [API contracts](docs/api.md), and the
117
+ [evaluation report](evaluation/REPORT.md) before integrating.
@@ -0,0 +1,145 @@
1
+ # Contributing to GuardTrellis
2
+
3
+ ## Choose work
4
+
5
+ Start with the [roadmap](ROADMAP.md) and the public
6
+ [GitHub Project](https://github.com/users/sahilmathur254/projects/3). Its **Ready to contribute**
7
+ view contains scoped work that can start now. Issues labelled
8
+ [good first issue](https://github.com/sahilmathur254/guardtrellis/labels/good%20first%20issue)
9
+ have a small entry point; [help wanted](https://github.com/sahilmathur254/guardtrellis/labels/help%20wanted)
10
+ also includes more involved work.
11
+
12
+ Read the issue's acceptance criteria, dependencies, and existing discussion before starting.
13
+ Comment with your intended approach so the maintainer can coordinate overlapping work.
14
+ For a new substantial feature, open a proposal first. Documentation improvements, safe
15
+ reproductions, tests, and evaluation cases are useful contributions too.
16
+
17
+ Repository issues hold scope and completion evidence; the project holds status and priority.
18
+ Maintainers manage project status and assignments. You can contribute through a fork and
19
+ pull request without project or repository write access. No response-time commitment is made.
20
+
21
+ ## Set up a contribution
22
+
23
+ Fork the repository on GitHub, replace `YOUR_USERNAME` below with your account, then run:
24
+
25
+ ```sh
26
+ git clone https://github.com/YOUR_USERNAME/guardtrellis.git
27
+ cd guardtrellis
28
+ git remote add upstream https://github.com/sahilmathur254/guardtrellis.git
29
+ git switch -c describe-your-change
30
+ ```
31
+
32
+ Use Python 3.11–3.14. The project uses a src layout, Hatchling, and uv's dependency lock.
33
+ The runtime depends only on jsonschema and referencing plus their dependencies. Keep
34
+ model providers, frameworks, network clients, and model downloads out of core dependencies.
35
+
36
+ ```sh
37
+ uv sync --frozen --all-extras --group dev
38
+ uv run pytest
39
+ uv run ruff check .
40
+ uv run ruff format --check .
41
+ uv run mypy
42
+ uv run python evaluation/run.py --report-dir /tmp/guardtrellis-eval
43
+ uv build
44
+ uv run python scripts/smoke_dist.py
45
+ ```
46
+
47
+ If the default uv cache is unavailable, set `UV_CACHE_DIR` to a writable local directory.
48
+ On machines whose Python trust store is incomplete, use a verified system CA bundle via
49
+ `SSL_CERT_FILE`; never disable certificate verification. uv must be installed separately.
50
+
51
+ ## Keep changes reviewable
52
+
53
+ Implement one scoped issue per pull request where practical. Follow the existing API and
54
+ dependency patterns. Add behavior-focused regression coverage when changing runtime behavior;
55
+ check links and examples for documentation changes. State which checks actually ran and any
56
+ remaining limitations. CI runs the full checks against submitted code.
57
+
58
+ Open a pull request from your fork to `main`, link the issue, explain the user-visible change,
59
+ and include validation evidence. Use `Fixes #NUMBER` when the PR completes the issue; use
60
+ `Refs #NUMBER` for partial work. Address review feedback before merge. Do not mark a roadmap
61
+ item complete until its acceptance criteria are met and its completion evidence is linked.
62
+
63
+ Follow the [0.1.x compatibility policy](docs/compatibility.md). Discuss public API or
64
+ supported-dependency changes before implementation; keep existing documented calls and
65
+ results compatible in patch releases. Include migration notes when compatibility is affected.
66
+
67
+ Test behavior and failure boundaries: rejected content must not reach callbacks or normal
68
+ results; scanner/callback failures must be explicit errors; no raw input belongs in logs,
69
+ reprs, generic exceptions, or diagnostics. Preserve meaningful offsets through redaction.
70
+ New checks need supported-format documentation, benign challenges, and bounded processing.
71
+ Do not add broad automatic injection-blocking phrases without evidence and explicit policy.
72
+
73
+ Use fabricated data in issues, examples, fixtures, and reports. Remove credentials and personal
74
+ data from logs and reproductions. Describe tooling or AI assistance when it affects attribution,
75
+ verification, or a reviewer's ability to reproduce the change; contributors remain responsible
76
+ for understanding and validating submitted code.
77
+
78
+ Tests run against the installed editable package. Optional example tests skip when extras
79
+ are absent; the CI matrix installs all extras, so those tests must run there. Distribution
80
+ smokes install the wheel and source archive in fresh temporary environments outside this
81
+ directory, verify core installs exclude frameworks, provider SDKs, and HTTP clients, then
82
+ install only the OpenAI extra and execute both OpenAI examples without legacy HTTPX. Finally,
83
+ they install all extras and execute all seven examples against each installed artifact. The
84
+ OpenAI, Azure, and Gemini examples use in-memory HTTP mocks, including when credentials
85
+ exist in the environment. See the
86
+ [OpenAI](docs/openai.md), [Azure](docs/azure_openai.md), and [Gemini](docs/gemini.md) guides
87
+ for separately opted-in live smokes;
88
+ normal pytest and CI never make live provider calls. Build the sdist
89
+ and wheel after updating packaged documentation or evaluation results.
90
+
91
+ The CI matrix covers these combinations:
92
+
93
+ | Runner | Architecture | Python |
94
+ | --- | --- | --- |
95
+ | Linux (`ubuntu-latest`) | x64 | 3.11, 3.12, 3.13, 3.14 |
96
+ | macOS 15 (`macos-15`) | ARM64 | 3.12 |
97
+ | Windows Server 2025 (`windows-2025`) | x64 | 3.12 |
98
+
99
+ Every combination runs the full tests with extras, lint/format/type checks, the synthetic
100
+ evaluation, and fresh wheel/sdist installation checks with all seven examples. Each job has
101
+ a 15-minute limit; failures do not cancel the other matrix jobs. Bash runs workflow commands
102
+ on all runners so a failed command stops its step; Python and its subprocesses run natively
103
+ on each OS. The macOS and Windows jobs initially cover one Python version each.
104
+
105
+ Check the run for the commit under review, including its runner image details; local success
106
+ does not establish remote CI success. Synthetic evaluation limitations and reported false
107
+ positives/misses are part of the deliverable, not tests to tune away.
108
+ Do not include real credentials or personal data in tests, fixtures, or reports.
109
+
110
+ For evaluation contributions, follow the [versioned challenge-set guide](evaluation/challenges/README.md).
111
+ Record provenance, language, scenario-based labels, and development/held-out use. Compare
112
+ per-family/language results and actions; keep detector changes separate from collecting
113
+ fixtures. Evaluation commands require a new report directory and refuse to overwrite prior
114
+ runs. CI runs both the historical smoke corpus and the Unicode/PII challenge set without
115
+ requiring a particular detection score.
116
+
117
+ For changes to resource limits or cancellation, use the separate
118
+ [bounded measurement harness](docs/resource_limits.md). It runs fixed scenarios in child
119
+ processes with external deadlines and records incomplete work honestly. Tests check
120
+ containment and outcomes without asserting performance thresholds. Keep exploratory
121
+ reports outside the checkout; update the reviewed resource baseline only intentionally.
122
+
123
+ ## Maintain the changelog
124
+
125
+ `CHANGELOG.md` is the canonical changelog. Every user-visible behavior, API, diagnostic,
126
+ detection, supported-version, or dependency-requirement change needs a concise entry in the
127
+ next release. Describe the effect on users, affected formats or dependencies, and any upgrade
128
+ action. Internal-only refactors and typo fixes need an entry only when useful to adopters.
129
+
130
+ Keep released entries and historical evaluation evidence intact. Add changes to the current
131
+ source version's entry while it is unpublished. Once that version has shipped, coordinate the
132
+ next version with the maintainer, add its heading above prior releases, and use the release
133
+ sync/lock commands in [the release guide](docs/releasing.md#prepare-and-review). The first
134
+ version heading must match `pyproject.toml`; a standalone `Unreleased` heading is not supported
135
+ by the existing release checks. A date is optional; if included, use the actual publication
136
+ date rather than a planned date. The changelog is packaged in the source archive and supplies
137
+ the user-facing GitHub release notes.
138
+
139
+ ## Releases and licensing
140
+
141
+ Package publication is maintainer work and follows the [release checklist](docs/releasing.md).
142
+ See [PyPI](https://pypi.org/project/guardtrellis/) for the latest published version and
143
+ the [README](README.md) for installation instructions matching this source checkout.
144
+ A merged contribution does not itself trigger publication.
145
+ The project is Apache-2.0 licensed; preserve applicable notices when adding third-party material.
@@ -0,0 +1,202 @@
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.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.