wormhole-token-service 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 (94) hide show
  1. wormhole_token_service-0.1.0/.editorconfig +24 -0
  2. wormhole_token_service-0.1.0/.github/hubcast.yml +3 -0
  3. wormhole_token_service-0.1.0/.github/workflows/release.yml +57 -0
  4. wormhole_token_service-0.1.0/.gitignore +140 -0
  5. wormhole_token_service-0.1.0/.pre-commit-config.yaml +16 -0
  6. wormhole_token_service-0.1.0/.python-version +1 -0
  7. wormhole_token_service-0.1.0/CODE_OF_CONDUCT.md +41 -0
  8. wormhole_token_service-0.1.0/CONTRIBUTING.md +11 -0
  9. wormhole_token_service-0.1.0/Dockerfile +29 -0
  10. wormhole_token_service-0.1.0/LICENSE +207 -0
  11. wormhole_token_service-0.1.0/NOTICE +16 -0
  12. wormhole_token_service-0.1.0/PKG-INFO +568 -0
  13. wormhole_token_service-0.1.0/README.md +331 -0
  14. wormhole_token_service-0.1.0/alembic/README +1 -0
  15. wormhole_token_service-0.1.0/alembic/env.py +64 -0
  16. wormhole_token_service-0.1.0/alembic/script.py.mako +28 -0
  17. wormhole_token_service-0.1.0/alembic/versions/0c222da05aac_initial_migration.py +130 -0
  18. wormhole_token_service-0.1.0/alembic/versions/0e1ef5458f74_remove_unique_constraint_on_duid.py +31 -0
  19. wormhole_token_service-0.1.0/alembic/versions/237acb29e460_add_session_marker.py +32 -0
  20. wormhole_token_service-0.1.0/alembic/versions/445b74e0a999_add_admin_role.py +40 -0
  21. wormhole_token_service-0.1.0/alembic/versions/450dd1ce1ff1_update_token_unique_constraint_for_.py +35 -0
  22. wormhole_token_service-0.1.0/alembic/versions/50db14aea8e8_add_user_uid_unique_constraint_column_.py +32 -0
  23. wormhole_token_service-0.1.0/alembic/versions/8823466cec2e_add_admin_token_table_and_add_admin_.py +46 -0
  24. wormhole_token_service-0.1.0/alembic/versions/bc91b45c54bf_add_rotatable_attribute_to_token.py +32 -0
  25. wormhole_token_service-0.1.0/alembic/versions/db5ff1ca50e2_add_duid_to_user.py +34 -0
  26. wormhole_token_service-0.1.0/alembic/versions/fb5b063e37a1_add_subtoken_fields.py +37 -0
  27. wormhole_token_service-0.1.0/helm/token-service/.helmignore +23 -0
  28. wormhole_token_service-0.1.0/helm/token-service/Chart.yaml +6 -0
  29. wormhole_token_service-0.1.0/helm/token-service/DB_TAG +1 -0
  30. wormhole_token_service-0.1.0/helm/token-service/templates/_helpers.tpl +69 -0
  31. wormhole_token_service-0.1.0/helm/token-service/templates/app-config-map.yaml +57 -0
  32. wormhole_token_service-0.1.0/helm/token-service/templates/app-deployment.yaml +68 -0
  33. wormhole_token_service-0.1.0/helm/token-service/templates/app-service.yaml +15 -0
  34. wormhole_token_service-0.1.0/helm/token-service/templates/db-pvc.yaml +17 -0
  35. wormhole_token_service-0.1.0/helm/token-service/templates/db-service.yaml +14 -0
  36. wormhole_token_service-0.1.0/helm/token-service/templates/db-statefulset.yaml +51 -0
  37. wormhole_token_service-0.1.0/helm/token-service/templates/ingress.yaml +60 -0
  38. wormhole_token_service-0.1.0/helm/token-service/templates/serviceaccount.yaml +9 -0
  39. wormhole_token_service-0.1.0/helm/token-service/values.yaml +121 -0
  40. wormhole_token_service-0.1.0/pyproject.toml +178 -0
  41. wormhole_token_service-0.1.0/scripts/migrate-db +18 -0
  42. wormhole_token_service-0.1.0/setup.cfg +4 -0
  43. wormhole_token_service-0.1.0/tests/__init__.py +0 -0
  44. wormhole_token_service-0.1.0/tests/conftest.py +184 -0
  45. wormhole_token_service-0.1.0/tests/e2e/__init__.py +0 -0
  46. wormhole_token_service-0.1.0/tests/e2e/conftest.py +81 -0
  47. wormhole_token_service-0.1.0/tests/e2e/test_server.py +1134 -0
  48. wormhole_token_service-0.1.0/tests/helpers/__init__.py +0 -0
  49. wormhole_token_service-0.1.0/tests/helpers/fake_deps.py +62 -0
  50. wormhole_token_service-0.1.0/tests/integration/__init__.py +0 -0
  51. wormhole_token_service-0.1.0/tests/integration/conftest.py +74 -0
  52. wormhole_token_service-0.1.0/tests/integration/test_dependencies.py +101 -0
  53. wormhole_token_service-0.1.0/tests/integration/test_services.py +654 -0
  54. wormhole_token_service-0.1.0/tests/integration/test_uow.py +242 -0
  55. wormhole_token_service-0.1.0/token_service/__init__.py +3 -0
  56. wormhole_token_service-0.1.0/token_service/adapter.py +83 -0
  57. wormhole_token_service-0.1.0/token_service/command.py +132 -0
  58. wormhole_token_service-0.1.0/token_service/config/settings.toml +52 -0
  59. wormhole_token_service-0.1.0/token_service/config.py +14 -0
  60. wormhole_token_service-0.1.0/token_service/dependencies.py +351 -0
  61. wormhole_token_service-0.1.0/token_service/internal/__init__.py +0 -0
  62. wormhole_token_service-0.1.0/token_service/internal/groups.py +79 -0
  63. wormhole_token_service-0.1.0/token_service/internal/tokens.py +120 -0
  64. wormhole_token_service-0.1.0/token_service/internal/users.py +90 -0
  65. wormhole_token_service-0.1.0/token_service/models.py +186 -0
  66. wormhole_token_service-0.1.0/token_service/pydantic_models.py +56 -0
  67. wormhole_token_service-0.1.0/token_service/routers/__init__.py +0 -0
  68. wormhole_token_service-0.1.0/token_service/routers/mfa.py +58 -0
  69. wormhole_token_service-0.1.0/token_service/routers/tokens.py +154 -0
  70. wormhole_token_service-0.1.0/token_service/routers/well_known.py +21 -0
  71. wormhole_token_service-0.1.0/token_service/server.py +150 -0
  72. wormhole_token_service-0.1.0/token_service/service/__init__.py +0 -0
  73. wormhole_token_service-0.1.0/token_service/service/uow.py +101 -0
  74. wormhole_token_service-0.1.0/token_service/services.py +600 -0
  75. wormhole_token_service-0.1.0/token_service/store/__init__.py +0 -0
  76. wormhole_token_service-0.1.0/token_service/store/orm.py +265 -0
  77. wormhole_token_service-0.1.0/token_service/store/repository.py +248 -0
  78. wormhole_token_service-0.1.0/token_service/ui/package-lock.json +3767 -0
  79. wormhole_token_service-0.1.0/token_service/ui/package.json +29 -0
  80. wormhole_token_service-0.1.0/token_service/ui/postcss.config.js +7 -0
  81. wormhole_token_service-0.1.0/token_service/ui/public/index.html +13 -0
  82. wormhole_token_service-0.1.0/token_service/ui/src/index.js +7 -0
  83. wormhole_token_service-0.1.0/token_service/ui/src/styles/index.css +8 -0
  84. wormhole_token_service-0.1.0/token_service/ui/src/views/Hello.js +11 -0
  85. wormhole_token_service-0.1.0/token_service/ui/tailwind.config.js +9 -0
  86. wormhole_token_service-0.1.0/token_service/ui/webpack.config.js +27 -0
  87. wormhole_token_service-0.1.0/token_service/utils.py +25 -0
  88. wormhole_token_service-0.1.0/uv.lock +2132 -0
  89. wormhole_token_service-0.1.0/wormhole_token_service.egg-info/PKG-INFO +568 -0
  90. wormhole_token_service-0.1.0/wormhole_token_service.egg-info/SOURCES.txt +92 -0
  91. wormhole_token_service-0.1.0/wormhole_token_service.egg-info/dependency_links.txt +1 -0
  92. wormhole_token_service-0.1.0/wormhole_token_service.egg-info/entry_points.txt +2 -0
  93. wormhole_token_service-0.1.0/wormhole_token_service.egg-info/requires.txt +16 -0
  94. wormhole_token_service-0.1.0/wormhole_token_service.egg-info/top_level.txt +1 -0
@@ -0,0 +1,24 @@
1
+ # http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 4
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+ charset = utf-8
11
+ end_of_line = lf
12
+
13
+ [*.bat]
14
+ indent_style = tab
15
+ end_of_line = crlf
16
+
17
+ [LICENSE]
18
+ insert_final_newline = false
19
+
20
+ [Makefile]
21
+ indent_style = tab
22
+
23
+ [*.{yml, yaml}]
24
+ indent_size = 2
@@ -0,0 +1,3 @@
1
+ Repo:
2
+ dest_org: web-services/wormhole
3
+ dest_name: wormhole-token-service
@@ -0,0 +1,57 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ build:
10
+ if: startsWith(github.ref, 'refs/tags/v')
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ # https://github.com/actions/checkout/commit/3d3c42e5aac5ba805825da76410c181273ba90b1
14
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
15
+
16
+ # https://github.com/actions/setup-python/commit/5fda3b95a4ea91299a34e894583c3862153e4b97
17
+ - name: Set up Python 3.11
18
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
19
+ with:
20
+ python-version: "3.11"
21
+
22
+ # https://github.com/astral-sh/setup-uv/commit/c771a70e6277c0a99b617c7a806ffedaca235ff9
23
+ - name: Install UV
24
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9
25
+ with:
26
+ version: "latest"
27
+ - name: Install dependencies
28
+ run: uv sync -p 3.11
29
+ - name: Build Wheels
30
+ run: uv tool run hatch build
31
+
32
+ # https://github.com/actions/upload-artifact/commit/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
33
+ - name: Upload wheels
34
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
35
+ with:
36
+ name: wheels
37
+ path: dist
38
+
39
+ pypi-publish:
40
+ runs-on: ubuntu-latest
41
+ environment:
42
+ name: Release
43
+ needs:
44
+ - build
45
+ permissions:
46
+ id-token: write
47
+ steps:
48
+ # https://github.com/actions/download-artifact/commit/3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
49
+ - name: Retrieve release distributions
50
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
51
+ with:
52
+ name: wheels
53
+ path: dist
54
+
55
+ # https://github.com/pypa/gh-action-pypi-publish/commit/ba38be9e461d3875417946c167d0b5f3d385a247
56
+ - name: Publish release distributions to PyPI
57
+ uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247
@@ -0,0 +1,140 @@
1
+ # tests
2
+ test.db
3
+
4
+ # vim
5
+ *.sw*
6
+
7
+ # direnv
8
+ .envrc
9
+
10
+ # macOS
11
+ .DS_Store
12
+ .AppleDouble
13
+ .LSOverride
14
+
15
+ # Byte-compiled / optimized / DLL files
16
+ __pycache__/
17
+ *.py[cod]
18
+ *$py.class
19
+
20
+ # C extensions
21
+ *.so
22
+
23
+ # Distribution / packaging
24
+ .Python
25
+ env/
26
+ build/
27
+ develop-eggs/
28
+ dist/
29
+ downloads/
30
+ eggs/
31
+ .eggs/
32
+ lib/
33
+ lib64/
34
+ parts/
35
+ sdist/
36
+ var/
37
+ wheels/
38
+ *.egg-info/
39
+ .installed.cfg
40
+ *.egg
41
+ .tmp/
42
+
43
+ # PyInstaller
44
+ # Usually these files are written by a python script from a template
45
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
46
+ *.manifest
47
+ *.spec
48
+
49
+ # Installer logs
50
+ pip-log.txt
51
+ pip-delete-this-directory.txt
52
+
53
+ # Unit test / coverage reports
54
+ htmlcov/
55
+ .tox/
56
+ .coverage
57
+ .coverage.*
58
+ .cache
59
+ nosetests.xml
60
+ coverage.xml
61
+ *.cover
62
+ .hypothesis/
63
+ .pytest_cache/
64
+
65
+ # Translations
66
+ *.mo
67
+ *.pot
68
+
69
+ # Django stuff:
70
+ *.log
71
+ local_settings.py
72
+
73
+ # Flask stuff:
74
+ instance/
75
+ .webassets-cache
76
+
77
+ # Scrapy stuff:
78
+ .scrapy
79
+
80
+ # Sphinx documentation
81
+ docs/_build/
82
+
83
+ # PyBuilder
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # pyenv
90
+ .python-version
91
+
92
+ # celery beat schedule file
93
+ celerybeat-schedule
94
+
95
+ # SageMath parsed files
96
+ *.sage.py
97
+
98
+ # dotenv
99
+ .env
100
+
101
+ # virtualenv
102
+ .venv
103
+ venv/
104
+ venvs/
105
+ ENV/
106
+
107
+ # Spyder project settings
108
+ .spyderproject
109
+ .spyproject
110
+
111
+ # Rope project settings
112
+ .ropeproject
113
+
114
+ # mkdocs documentation
115
+ /site
116
+
117
+ # mypy
118
+ .mypy_cache/
119
+
120
+ # IDE settings
121
+ .vscode/
122
+ .idea/
123
+
124
+ # mkdocs build dir
125
+ site/
126
+
127
+ # node
128
+ node_modules/
129
+
130
+ # Ignore dynaconf secret files
131
+ .secrets.*
132
+
133
+ # Ignore jwks dir for local dev
134
+ jwks/
135
+
136
+ # Ignore settings.local.toml
137
+ settings.local.toml
138
+
139
+ # Ignore the openapi.json we create
140
+ openapi.json
@@ -0,0 +1,16 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v4.6.0
4
+ hooks:
5
+ - id: end-of-file-fixer
6
+ - id: trailing-whitespace
7
+ - repo: https://github.com/astral-sh/ruff-pre-commit
8
+ rev: v0.15.15
9
+ hooks:
10
+ - id: ruff-check
11
+ types:
12
+ - python
13
+ args: ["--fix", "--show-fixes"]
14
+ - id: ruff-format
15
+ types:
16
+ - python
@@ -0,0 +1 @@
1
+ 3.11.11
@@ -0,0 +1,41 @@
1
+ ### Our Pledge
2
+
3
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
4
+
5
+ ### Our Standards
6
+
7
+ Examples of behavior that contributes to creating a positive environment include:
8
+
9
+ * Using welcoming and inclusive language
10
+ * Being respectful of differing viewpoints and experiences
11
+ * Gracefully accepting constructive criticism
12
+ * Focusing on what is best for the community
13
+ * Showing empathy towards other community members
14
+
15
+ Examples of unacceptable behavior by participants include:
16
+
17
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
18
+ * Trolling, insulting/derogatory comments, and personal or political attacks
19
+ * Public or private harassment
20
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
21
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
22
+
23
+ ### Our Responsibilities
24
+
25
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
26
+
27
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
28
+
29
+ ### Scope
30
+
31
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the Wormhole project or its community. Examples of representing the project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of the project may be further defined and clarified by Wormhole maintainers.
32
+
33
+ ### Enforcement
34
+
35
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Wormhole project team or the LLNL GitHub Admins at [github-admin@llnl.gov](mailto:github-admin@llnl.gov) . The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
36
+
37
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project or organization's leadership.
38
+
39
+ ### Attribution
40
+
41
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/) ([version 1.4](http://contributor-covenant.org/version/1/4)).
@@ -0,0 +1,11 @@
1
+ Wormhole is an open source project composed of several component applications. We welcome contributions via pull requests as well as questions, feature requests, or bug reports via issues. Contact our team at wormhole-dev@llnl.gov with any questions.
2
+
3
+ If you aren't a Wormhole developer, you won't have permission to push new branches to the repository. First, you should create a fork of the Wormhole component repo you want to make changes to. This will create your copy of the repository and ensure you can push your changes up to GitHub and create PRs. Wormhole projects use a combination Gitlab CI and GitHub Actions for continuous integration tests. Tests are automatically run against every new PR, and passing all tests is a requirement for merging your PR.
4
+
5
+ * Create your branches off the `main` branch.
6
+ * Clearly name your branches, commits, and PRs as this will help us manage queued work in a timely manner.
7
+ * Articulate your commit messages in the imperative (e.g., `Adds new privacy policy link to README`).
8
+ * Commit your work in logically organized commits, and group commits together logically in a PR.
9
+ * Title each PR clearly and give it an unambiguous description.
10
+ * Review existing issues before opening a new one. Your issue might already be under development or discussed by others. Feel free to add to any outstanding issue/bug.
11
+ * Be explicit when opening issues and reporting bugs. What behavior are you expecting? What is your justification or use case for the new feature/enhancement? How can the bug be recreated? What are any environment variables to consider?
@@ -0,0 +1,29 @@
1
+ FROM python:3.11-slim-bookworm
2
+
3
+ WORKDIR /app
4
+
5
+ ARG index_url
6
+ ARG project_version
7
+
8
+ COPY pyproject.toml pyproject.toml
9
+ COPY alembic alembic
10
+ COPY scripts scripts
11
+ COPY token_service/config/settings.toml settings.local.toml
12
+
13
+ RUN chgrp -R 0 /app && chmod -R g=u /app
14
+
15
+ # Install system dependencies for psycopg2
16
+ RUN apt-get update && apt-get install -y \
17
+ gcc \
18
+ libpq-dev \
19
+ dnsutils \
20
+ curl \
21
+ && rm -rf /var/lib/apt/lists/*
22
+
23
+ RUN pip install wormhole-token-service==$project_version \
24
+ && pip install opentelemetry-distro opentelemetry-exporter-otlp \
25
+ # The opentelemetry-bootstrap -a install command reads through
26
+ # active site-packages folder, and installs the corresponding instrumentation
27
+ && opentelemetry-bootstrap -a install
28
+
29
+ ENTRYPOINT ["opentelemetry-instrument", "wormhole_token_service", "run"]
@@ -0,0 +1,207 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026, Lawrence Livermore National Security, LLC
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+ ---- LLVM Exceptions to the Apache 2.0 License ----
204
+
205
+ As an exception, if, as a result of your compiling your source code, portions of this Software are embedded into an Object form of such source code, you may redistribute such embedded portions in such Object form without complying with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
206
+
207
+ In addition, if you combine or link compiled forms of this Software with software that is licensed under the GPLv2 ("Combined Software") and if a court of competent jurisdiction determines that the patent provision (Section 3), the indemnity provision (Section 9) or other Section of the License conflicts with the conditions of the GPLv2, you may retroactively and prospectively choose to deem waived or otherwise exclude such Section(s) of the License, but only in their entirety and only with respect to the Combined Software.
@@ -0,0 +1,16 @@
1
+ This work was produced under the auspices of the U.S. Department of Energy by
2
+ Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.
3
+
4
+ This work was prepared as an account of work sponsored by an agency of the
5
+ United States Government. Neither the United States Government nor Lawrence
6
+ Livermore National Security, LLC, nor any of their employees makes any warranty,
7
+ expressed or implied, or assumes any legal liability or responsibility for the
8
+ accuracy, completeness, or usefulness of any information, apparatus, product, or
9
+ process disclosed, or represents that its use would not infringe privately owned
10
+ rights. Reference herein to any specific commercial product, process, or service
11
+ by trade name, trademark, manufacturer, or otherwise does not necessarily
12
+ constitute or imply its endorsement, recommendation, or favoring by the United
13
+ States Government or Lawrence Livermore National Security, LLC. The views and
14
+ opinions of authors expressed herein do not necessarily state or reflect those
15
+ of the United States Government or Lawrence Livermore National Security, LLC,
16
+ and shall not be used for advertising or product endorsement purposes.