From 915cb427e4874dc53b4699c3c5ec961ef3b7a739 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:07:53 +0200 Subject: [PATCH 01/16] Add basic env var provider Signed-off-by: christian.lutnik --- .github/workflows/build.yml | 1 + .release-please-manifest.json | 3 +- .../.python-version | 1 + .../openfeature-provider-env-var/LICENSE | 201 ++++++++++++++++++ .../openfeature-provider-env-var/README.md | 30 +++ .../pyproject.toml | 39 ++++ .../contrib/provider/envvar/__init__.py | 3 + .../contrib/provider/envvar/provider.py | 62 ++++++ .../contrib/provider/envvar/py.typed | 0 .../tests/__init__.py | 0 .../tests/test_provider.py | 23 ++ .../openfeature-provider-env-var/uv.lock | 179 ++++++++++++++++ release-please-config.json | 9 + 13 files changed, 550 insertions(+), 1 deletion(-) create mode 100644 providers/openfeature-provider-env-var/.python-version create mode 100644 providers/openfeature-provider-env-var/LICENSE create mode 100644 providers/openfeature-provider-env-var/README.md create mode 100644 providers/openfeature-provider-env-var/pyproject.toml create mode 100644 providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/__init__.py create mode 100644 providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py create mode 100644 providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/py.typed create mode 100644 providers/openfeature-provider-env-var/tests/__init__.py create mode 100644 providers/openfeature-provider-env-var/tests/test_provider.py create mode 100644 providers/openfeature-provider-env-var/uv.lock diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a07bbcd..d7fa7400 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,7 @@ jobs: - "hooks/openfeature-hooks-opentelemetry" - "providers/openfeature-provider-flagd" - "providers/openfeature-provider-ofrep" + - "providers/openfeature-provider-env-var" steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 85fb017d..745bea23 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -2,5 +2,6 @@ "hooks/openfeature-hooks-opentelemetry": "0.2.0", "providers/openfeature-provider-flagd": "0.2.4", "providers/openfeature-provider-ofrep": "0.1.1", - "providers/openfeature-provider-flipt": "0.1.3" + "providers/openfeature-provider-flipt": "0.1.3", + "providers/openfeature-provider-env-var": "0.1.0" } diff --git a/providers/openfeature-provider-env-var/.python-version b/providers/openfeature-provider-env-var/.python-version new file mode 100644 index 00000000..e4fba218 --- /dev/null +++ b/providers/openfeature-provider-env-var/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/providers/openfeature-provider-env-var/LICENSE b/providers/openfeature-provider-env-var/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/providers/openfeature-provider-env-var/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/providers/openfeature-provider-env-var/README.md b/providers/openfeature-provider-env-var/README.md new file mode 100644 index 00000000..a7ff8863 --- /dev/null +++ b/providers/openfeature-provider-env-var/README.md @@ -0,0 +1,30 @@ +# A OpenFeature Python Environment Variable Provider + +This provider loads flag values from environment variables. +If a flag with some key is evaluated when no env var named after this key exists, it will throw a `FlagNotFoundError`. +Otherwise it will attempt to parse the string value of the env var to the appropriate type (`str`,`int`,`float`, or object). +Errors during this parsing are forwarded to the user. + +## Build setup + +This provider uses uv as build tool. + +### Building + +```shell +uv build +``` + +### Executing tests + +```shell +uv run pytest +``` + +#### pre commit hooks + +Install the pre commit hooks that ensure proper formatting: + +```shell +uvx pre-commit install +``` \ No newline at end of file diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml new file mode 100644 index 00000000..0d1b37b9 --- /dev/null +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -0,0 +1,39 @@ +[project] +name = "openfeature-provider-env-var" +version = "0.1.0" +description = "OpenFeature Python Environment Variable Provider" +readme = "README.md" +requires-python = ">=3.12" +dependencies = [ + "openfeature-sdk>=0.6.0", +] +authors = [{ name = "OpenFeature", email = "openfeature-core@groups.io" }] + + +[build-system] +requires = ["hatchling", "uv-dynamic-versioning"] +build-backend = "hatchling.build" + +[tool.ruff.lint] +extend-select = ["B"] + +[dependency-groups] +dev = [ + "pytest>=8.3.5", + "pytest-cov>=6.1.1", + "ruff>=0.11.7", +] + +[tool.hatch.build.targets.wheel] +packages = ["."] + +[tool.hatch.version] +source = "uv-dynamic-versioning" + +[tool.uv-dynamic-versioning] +fallback-version = "0.0.0" + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = "test_*.py" +python_functions = "test_*" diff --git a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/__init__.py b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/__init__.py new file mode 100644 index 00000000..195e6b42 --- /dev/null +++ b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/__init__.py @@ -0,0 +1,3 @@ +from .provider import EnvVarProvider + +__all__ = ["EnvVarProvider"] diff --git a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py new file mode 100644 index 00000000..87d4608d --- /dev/null +++ b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py @@ -0,0 +1,62 @@ +import json +import typing +import os + +from openfeature.evaluation_context import EvaluationContext +from openfeature.exception import FlagNotFoundError +from openfeature.flag_evaluation import FlagResolutionDetails, Reason +from openfeature.provider import AbstractProvider, Metadata + + +def _load_and_parse_env_var( + flag_key: str, parse: typing.Callable[[str], typing.Any] +) -> FlagResolutionDetails: + value = os.environ.get(flag_key) + if value is None: + raise FlagNotFoundError() + return FlagResolutionDetails(parse(value), None, None, Reason.DEFAULT, None, {}) + + +class EnvVarProvider(AbstractProvider): + def get_metadata(self) -> Metadata: + return Metadata(name="EnvVarProvider") + + def resolve_boolean_details( + self, + flag_key: str, + default_value: bool, + evaluation_context: typing.Optional[EvaluationContext] = None, + ) -> FlagResolutionDetails[bool]: + return _load_and_parse_env_var(flag_key, lambda v: bool(v)) + + def resolve_string_details( + self, + flag_key: str, + default_value: str, + evaluation_context: typing.Optional[EvaluationContext] = None, + ) -> FlagResolutionDetails[str]: + return _load_and_parse_env_var(flag_key, lambda v: v) + + def resolve_integer_details( + self, + flag_key: str, + default_value: int, + evaluation_context: typing.Optional[EvaluationContext] = None, + ) -> FlagResolutionDetails[int]: + return _load_and_parse_env_var(flag_key, lambda v: int(v)) + + def resolve_float_details( + self, + flag_key: str, + default_value: float, + evaluation_context: typing.Optional[EvaluationContext] = None, + ) -> FlagResolutionDetails[float]: + return _load_and_parse_env_var(flag_key, lambda v: float(v)) + + def resolve_object_details( + self, + flag_key: str, + default_value: typing.Union[dict, list], + evaluation_context: typing.Optional[EvaluationContext] = None, + ) -> FlagResolutionDetails[typing.Union[dict, list]]: + return _load_and_parse_env_var(flag_key, lambda v: json.loads(v)) diff --git a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/py.typed b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/providers/openfeature-provider-env-var/tests/__init__.py b/providers/openfeature-provider-env-var/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/providers/openfeature-provider-env-var/tests/test_provider.py b/providers/openfeature-provider-env-var/tests/test_provider.py new file mode 100644 index 00000000..161b77c4 --- /dev/null +++ b/providers/openfeature-provider-env-var/tests/test_provider.py @@ -0,0 +1,23 @@ +import os + +import pytest +from openfeature.exception import FlagNotFoundError + +from src.openfeature.contrib.provider.envvar import EnvVarProvider + + +def test_unknown_flag_key_throws_flag_not_found_error(): + provider = EnvVarProvider() + with pytest.raises(FlagNotFoundError): + provider.resolve_boolean_details("unknown_flag_key", True, None) + + +def test_known_flag_key_evaluates_the_flag(): + key = "test-flag-key" + value = "test-value" + os.environ[key] = value + + provider = EnvVarProvider() + result = provider.resolve_string_details(key, True, None) + + assert result.value == value diff --git a/providers/openfeature-provider-env-var/uv.lock b/providers/openfeature-provider-env-var/uv.lock new file mode 100644 index 00000000..ad09a626 --- /dev/null +++ b/providers/openfeature-provider-env-var/uv.lock @@ -0,0 +1,179 @@ +version = 1 +revision = 1 +requires-python = ">=3.12" + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, +] + +[[package]] +name = "coverage" +version = "7.9.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/04/b7/c0465ca253df10a9e8dae0692a4ae6e9726d245390aaef92360e1d6d3832/coverage-7.9.2.tar.gz", hash = "sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b", size = 813556 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/53/d7/7deefc6fd4f0f1d4c58051f4004e366afc9e7ab60217ac393f247a1de70a/coverage-7.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ae9eb07f1cfacd9cfe8eaee6f4ff4b8a289a668c39c165cd0c8548484920ffc0", size = 212344 }, + { url = "https://files.pythonhosted.org/packages/95/0c/ee03c95d32be4d519e6a02e601267769ce2e9a91fc8faa1b540e3626c680/coverage-7.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ce85551f9a1119f02adc46d3014b5ee3f765deac166acf20dbb851ceb79b6f3", size = 212580 }, + { url = "https://files.pythonhosted.org/packages/8b/9f/826fa4b544b27620086211b87a52ca67592622e1f3af9e0a62c87aea153a/coverage-7.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8f6389ac977c5fb322e0e38885fbbf901743f79d47f50db706e7644dcdcb6e1", size = 246383 }, + { url = "https://files.pythonhosted.org/packages/7f/b3/4477aafe2a546427b58b9c540665feff874f4db651f4d3cb21b308b3a6d2/coverage-7.9.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ff0d9eae8cdfcd58fe7893b88993723583a6ce4dfbfd9f29e001922544f95615", size = 243400 }, + { url = "https://files.pythonhosted.org/packages/f8/c2/efffa43778490c226d9d434827702f2dfbc8041d79101a795f11cbb2cf1e/coverage-7.9.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fae939811e14e53ed8a9818dad51d434a41ee09df9305663735f2e2d2d7d959b", size = 245591 }, + { url = "https://files.pythonhosted.org/packages/c6/e7/a59888e882c9a5f0192d8627a30ae57910d5d449c80229b55e7643c078c4/coverage-7.9.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:31991156251ec202c798501e0a42bbdf2169dcb0f137b1f5c0f4267f3fc68ef9", size = 245402 }, + { url = "https://files.pythonhosted.org/packages/92/a5/72fcd653ae3d214927edc100ce67440ed8a0a1e3576b8d5e6d066ed239db/coverage-7.9.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:d0d67963f9cbfc7c7f96d4ac74ed60ecbebd2ea6eeb51887af0f8dce205e545f", size = 243583 }, + { url = "https://files.pythonhosted.org/packages/5c/f5/84e70e4df28f4a131d580d7d510aa1ffd95037293da66fd20d446090a13b/coverage-7.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:49b752a2858b10580969ec6af6f090a9a440a64a301ac1528d7ca5f7ed497f4d", size = 244815 }, + { url = "https://files.pythonhosted.org/packages/39/e7/d73d7cbdbd09fdcf4642655ae843ad403d9cbda55d725721965f3580a314/coverage-7.9.2-cp312-cp312-win32.whl", hash = "sha256:88d7598b8ee130f32f8a43198ee02edd16d7f77692fa056cb779616bbea1b355", size = 214719 }, + { url = "https://files.pythonhosted.org/packages/9f/d6/7486dcc3474e2e6ad26a2af2db7e7c162ccd889c4c68fa14ea8ec189c9e9/coverage-7.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:9dfb070f830739ee49d7c83e4941cc767e503e4394fdecb3b54bfdac1d7662c0", size = 215509 }, + { url = "https://files.pythonhosted.org/packages/b7/34/0439f1ae2593b0346164d907cdf96a529b40b7721a45fdcf8b03c95fcd90/coverage-7.9.2-cp312-cp312-win_arm64.whl", hash = "sha256:4e2c058aef613e79df00e86b6d42a641c877211384ce5bd07585ed7ba71ab31b", size = 213910 }, + { url = "https://files.pythonhosted.org/packages/94/9d/7a8edf7acbcaa5e5c489a646226bed9591ee1c5e6a84733c0140e9ce1ae1/coverage-7.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:985abe7f242e0d7bba228ab01070fde1d6c8fa12f142e43debe9ed1dde686038", size = 212367 }, + { url = "https://files.pythonhosted.org/packages/e8/9e/5cd6f130150712301f7e40fb5865c1bc27b97689ec57297e568d972eec3c/coverage-7.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82c3939264a76d44fde7f213924021ed31f55ef28111a19649fec90c0f109e6d", size = 212632 }, + { url = "https://files.pythonhosted.org/packages/a8/de/6287a2c2036f9fd991c61cefa8c64e57390e30c894ad3aa52fac4c1e14a8/coverage-7.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae5d563e970dbe04382f736ec214ef48103d1b875967c89d83c6e3f21706d5b3", size = 245793 }, + { url = "https://files.pythonhosted.org/packages/06/cc/9b5a9961d8160e3cb0b558c71f8051fe08aa2dd4b502ee937225da564ed1/coverage-7.9.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bdd612e59baed2a93c8843c9a7cb902260f181370f1d772f4842987535071d14", size = 243006 }, + { url = "https://files.pythonhosted.org/packages/49/d9/4616b787d9f597d6443f5588619c1c9f659e1f5fc9eebf63699eb6d34b78/coverage-7.9.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:256ea87cb2a1ed992bcdfc349d8042dcea1b80436f4ddf6e246d6bee4b5d73b6", size = 244990 }, + { url = "https://files.pythonhosted.org/packages/48/83/801cdc10f137b2d02b005a761661649ffa60eb173dcdaeb77f571e4dc192/coverage-7.9.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f44ae036b63c8ea432f610534a2668b0c3aee810e7037ab9d8ff6883de480f5b", size = 245157 }, + { url = "https://files.pythonhosted.org/packages/c8/a4/41911ed7e9d3ceb0ffb019e7635468df7499f5cc3edca5f7dfc078e9c5ec/coverage-7.9.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:82d76ad87c932935417a19b10cfe7abb15fd3f923cfe47dbdaa74ef4e503752d", size = 243128 }, + { url = "https://files.pythonhosted.org/packages/10/41/344543b71d31ac9cb00a664d5d0c9ef134a0fe87cb7d8430003b20fa0b7d/coverage-7.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:619317bb86de4193debc712b9e59d5cffd91dc1d178627ab2a77b9870deb2868", size = 244511 }, + { url = "https://files.pythonhosted.org/packages/d5/81/3b68c77e4812105e2a060f6946ba9e6f898ddcdc0d2bfc8b4b152a9ae522/coverage-7.9.2-cp313-cp313-win32.whl", hash = "sha256:0a07757de9feb1dfafd16ab651e0f628fd7ce551604d1bf23e47e1ddca93f08a", size = 214765 }, + { url = "https://files.pythonhosted.org/packages/06/a2/7fac400f6a346bb1a4004eb2a76fbff0e242cd48926a2ce37a22a6a1d917/coverage-7.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:115db3d1f4d3f35f5bb021e270edd85011934ff97c8797216b62f461dd69374b", size = 215536 }, + { url = "https://files.pythonhosted.org/packages/08/47/2c6c215452b4f90d87017e61ea0fd9e0486bb734cb515e3de56e2c32075f/coverage-7.9.2-cp313-cp313-win_arm64.whl", hash = "sha256:48f82f889c80af8b2a7bb6e158d95a3fbec6a3453a1004d04e4f3b5945a02694", size = 213943 }, + { url = "https://files.pythonhosted.org/packages/a3/46/e211e942b22d6af5e0f323faa8a9bc7c447a1cf1923b64c47523f36ed488/coverage-7.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:55a28954545f9d2f96870b40f6c3386a59ba8ed50caf2d949676dac3ecab99f5", size = 213088 }, + { url = "https://files.pythonhosted.org/packages/d2/2f/762551f97e124442eccd907bf8b0de54348635b8866a73567eb4e6417acf/coverage-7.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cdef6504637731a63c133bb2e6f0f0214e2748495ec15fe42d1e219d1b133f0b", size = 213298 }, + { url = "https://files.pythonhosted.org/packages/7a/b7/76d2d132b7baf7360ed69be0bcab968f151fa31abe6d067f0384439d9edb/coverage-7.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcd5ebe66c7a97273d5d2ddd4ad0ed2e706b39630ed4b53e713d360626c3dbb3", size = 256541 }, + { url = "https://files.pythonhosted.org/packages/a0/17/392b219837d7ad47d8e5974ce5f8dc3deb9f99a53b3bd4d123602f960c81/coverage-7.9.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9303aed20872d7a3c9cb39c5d2b9bdbe44e3a9a1aecb52920f7e7495410dfab8", size = 252761 }, + { url = "https://files.pythonhosted.org/packages/d5/77/4256d3577fe1b0daa8d3836a1ebe68eaa07dd2cbaf20cf5ab1115d6949d4/coverage-7.9.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc18ea9e417a04d1920a9a76fe9ebd2f43ca505b81994598482f938d5c315f46", size = 254917 }, + { url = "https://files.pythonhosted.org/packages/53/99/fc1a008eef1805e1ddb123cf17af864743354479ea5129a8f838c433cc2c/coverage-7.9.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6406cff19880aaaadc932152242523e892faff224da29e241ce2fca329866584", size = 256147 }, + { url = "https://files.pythonhosted.org/packages/92/c0/f63bf667e18b7f88c2bdb3160870e277c4874ced87e21426128d70aa741f/coverage-7.9.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2d0d4f6ecdf37fcc19c88fec3e2277d5dee740fb51ffdd69b9579b8c31e4232e", size = 254261 }, + { url = "https://files.pythonhosted.org/packages/8c/32/37dd1c42ce3016ff8ec9e4b607650d2e34845c0585d3518b2a93b4830c1a/coverage-7.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c33624f50cf8de418ab2b4d6ca9eda96dc45b2c4231336bac91454520e8d1fac", size = 255099 }, + { url = "https://files.pythonhosted.org/packages/da/2e/af6b86f7c95441ce82f035b3affe1cd147f727bbd92f563be35e2d585683/coverage-7.9.2-cp313-cp313t-win32.whl", hash = "sha256:1df6b76e737c6a92210eebcb2390af59a141f9e9430210595251fbaf02d46926", size = 215440 }, + { url = "https://files.pythonhosted.org/packages/4d/bb/8a785d91b308867f6b2e36e41c569b367c00b70c17f54b13ac29bcd2d8c8/coverage-7.9.2-cp313-cp313t-win_amd64.whl", hash = "sha256:f5fd54310b92741ebe00d9c0d1d7b2b27463952c022da6d47c175d246a98d1bd", size = 216537 }, + { url = "https://files.pythonhosted.org/packages/1d/a0/a6bffb5e0f41a47279fd45a8f3155bf193f77990ae1c30f9c224b61cacb0/coverage-7.9.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c48c2375287108c887ee87d13b4070a381c6537d30e8487b24ec721bf2a781cb", size = 214398 }, + { url = "https://files.pythonhosted.org/packages/3c/38/bbe2e63902847cf79036ecc75550d0698af31c91c7575352eb25190d0fb3/coverage-7.9.2-py3-none-any.whl", hash = "sha256:e425cd5b00f6fc0ed7cdbd766c70be8baab4b7839e4d4fe5fac48581dd968ea4", size = 204005 }, +] + +[[package]] +name = "iniconfig" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050 }, +] + +[[package]] +name = "openfeature-provider-env-var" +version = "0.1.0" +source = { editable = "." } +dependencies = [ + { name = "openfeature-sdk" }, +] + +[package.dev-dependencies] +dev = [ + { name = "pytest" }, + { name = "pytest-cov" }, + { name = "ruff" }, +] + +[package.metadata] +requires-dist = [{ name = "openfeature-sdk", specifier = ">=0.6.0" }] + +[package.metadata.requires-dev] +dev = [ + { name = "pytest", specifier = ">=8.3.5" }, + { name = "pytest-cov", specifier = ">=6.1.1" }, + { name = "ruff", specifier = ">=0.11.7" }, +] + +[[package]] +name = "openfeature-sdk" +version = "0.7.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/28/39/4c991564c013c2f2a3d65c757b1e70a9bda360d84442d9f2b260407d4718/openfeature_sdk-0.7.4.tar.gz", hash = "sha256:e5db541167526104785a458395134b2eb926b1d1cd53b6c3f9505f28f5180acd", size = 51013 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/e8/a6606544eb8780271f1adffa32c254a989d622e17e00d50f46bb3f50662a/openfeature_sdk-0.7.4-py3-none-any.whl", hash = "sha256:3a1f62a0407f05c47e28202cf90d9cbd03aba39c8f05506601aac60a2e7303c6", size = 33465 }, +] + +[[package]] +name = "packaging" +version = "25.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469 }, +] + +[[package]] +name = "pluggy" +version = "1.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538 }, +] + +[[package]] +name = "pygments" +version = "2.19.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217 }, +] + +[[package]] +name = "pytest" +version = "8.4.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/08/ba/45911d754e8eba3d5a841a5ce61a65a685ff1798421ac054f85aa8747dfb/pytest-8.4.1.tar.gz", hash = "sha256:7c67fd69174877359ed9371ec3af8a3d2b04741818c51e5e99cc1742251fa93c", size = 1517714 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/29/16/c8a903f4c4dffe7a12843191437d7cd8e32751d5de349d45d3fe69544e87/pytest-8.4.1-py3-none-any.whl", hash = "sha256:539c70ba6fcead8e78eebbf1115e8b589e7565830d7d006a8723f19ac8a0afb7", size = 365474 }, +] + +[[package]] +name = "pytest-cov" +version = "6.2.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "coverage" }, + { name = "pluggy" }, + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/18/99/668cade231f434aaa59bbfbf49469068d2ddd945000621d3d165d2e7dd7b/pytest_cov-6.2.1.tar.gz", hash = "sha256:25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2", size = 69432 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/16/4ea354101abb1287856baa4af2732be351c7bee728065aed451b678153fd/pytest_cov-6.2.1-py3-none-any.whl", hash = "sha256:f5bc4c23f42f1cdd23c70b1dab1bbaef4fc505ba950d53e0081d0730dd7e86d5", size = 24644 }, +] + +[[package]] +name = "ruff" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/97/38/796a101608a90494440856ccfb52b1edae90de0b817e76bfade66b12d320/ruff-0.12.1.tar.gz", hash = "sha256:806bbc17f1104fd57451a98a58df35388ee3ab422e029e8f5cf30aa4af2c138c", size = 4413426 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/06/bf/3dba52c1d12ab5e78d75bd78ad52fb85a6a1f29cc447c2423037b82bed0d/ruff-0.12.1-py3-none-linux_armv6l.whl", hash = "sha256:6013a46d865111e2edb71ad692fbb8262e6c172587a57c0669332a449384a36b", size = 10305649 }, + { url = "https://files.pythonhosted.org/packages/8c/65/dab1ba90269bc8c81ce1d499a6517e28fe6f87b2119ec449257d0983cceb/ruff-0.12.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b3f75a19e03a4b0757d1412edb7f27cffb0c700365e9d6b60bc1b68d35bc89e0", size = 11120201 }, + { url = "https://files.pythonhosted.org/packages/3f/3e/2d819ffda01defe857fa2dd4cba4d19109713df4034cc36f06bbf582d62a/ruff-0.12.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:9a256522893cb7e92bb1e1153283927f842dea2e48619c803243dccc8437b8be", size = 10466769 }, + { url = "https://files.pythonhosted.org/packages/63/37/bde4cf84dbd7821c8de56ec4ccc2816bce8125684f7b9e22fe4ad92364de/ruff-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:069052605fe74c765a5b4272eb89880e0ff7a31e6c0dbf8767203c1fbd31c7ff", size = 10660902 }, + { url = "https://files.pythonhosted.org/packages/0e/3a/390782a9ed1358c95e78ccc745eed1a9d657a537e5c4c4812fce06c8d1a0/ruff-0.12.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a684f125a4fec2d5a6501a466be3841113ba6847827be4573fddf8308b83477d", size = 10167002 }, + { url = "https://files.pythonhosted.org/packages/6d/05/f2d4c965009634830e97ffe733201ec59e4addc5b1c0efa035645baa9e5f/ruff-0.12.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bdecdef753bf1e95797593007569d8e1697a54fca843d78f6862f7dc279e23bd", size = 11751522 }, + { url = "https://files.pythonhosted.org/packages/35/4e/4bfc519b5fcd462233f82fc20ef8b1e5ecce476c283b355af92c0935d5d9/ruff-0.12.1-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:70d52a058c0e7b88b602f575d23596e89bd7d8196437a4148381a3f73fcd5010", size = 12520264 }, + { url = "https://files.pythonhosted.org/packages/85/b2/7756a6925da236b3a31f234b4167397c3e5f91edb861028a631546bad719/ruff-0.12.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84d0a69d1e8d716dfeab22d8d5e7c786b73f2106429a933cee51d7b09f861d4e", size = 12133882 }, + { url = "https://files.pythonhosted.org/packages/dd/00/40da9c66d4a4d51291e619be6757fa65c91b92456ff4f01101593f3a1170/ruff-0.12.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6cc32e863adcf9e71690248607ccdf25252eeeab5193768e6873b901fd441fed", size = 11608941 }, + { url = "https://files.pythonhosted.org/packages/91/e7/f898391cc026a77fbe68dfea5940f8213622474cb848eb30215538a2dadf/ruff-0.12.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7fd49a4619f90d5afc65cf42e07b6ae98bb454fd5029d03b306bd9e2273d44cc", size = 11602887 }, + { url = "https://files.pythonhosted.org/packages/f6/02/0891872fc6aab8678084f4cf8826f85c5d2d24aa9114092139a38123f94b/ruff-0.12.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:ed5af6aaaea20710e77698e2055b9ff9b3494891e1b24d26c07055459bb717e9", size = 10521742 }, + { url = "https://files.pythonhosted.org/packages/2a/98/d6534322c74a7d47b0f33b036b2498ccac99d8d8c40edadb552c038cecf1/ruff-0.12.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:801d626de15e6bf988fbe7ce59b303a914ff9c616d5866f8c79eb5012720ae13", size = 10149909 }, + { url = "https://files.pythonhosted.org/packages/34/5c/9b7ba8c19a31e2b6bd5e31aa1e65b533208a30512f118805371dbbbdf6a9/ruff-0.12.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:2be9d32a147f98a1972c1e4df9a6956d612ca5f5578536814372113d09a27a6c", size = 11136005 }, + { url = "https://files.pythonhosted.org/packages/dc/34/9bbefa4d0ff2c000e4e533f591499f6b834346025e11da97f4ded21cb23e/ruff-0.12.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:49b7ce354eed2a322fbaea80168c902de9504e6e174fd501e9447cad0232f9e6", size = 11648579 }, + { url = "https://files.pythonhosted.org/packages/6f/1c/20cdb593783f8f411839ce749ec9ae9e4298c2b2079b40295c3e6e2089e1/ruff-0.12.1-py3-none-win32.whl", hash = "sha256:d973fa626d4c8267848755bd0414211a456e99e125dcab147f24daa9e991a245", size = 10519495 }, + { url = "https://files.pythonhosted.org/packages/cf/56/7158bd8d3cf16394928f47c637d39a7d532268cd45220bdb6cd622985760/ruff-0.12.1-py3-none-win_amd64.whl", hash = "sha256:9e1123b1c033f77bd2590e4c1fe7e8ea72ef990a85d2484351d408224d603013", size = 11547485 }, + { url = "https://files.pythonhosted.org/packages/91/d0/6902c0d017259439d6fd2fd9393cea1cfe30169940118b007d5e0ea7e954/ruff-0.12.1-py3-none-win_arm64.whl", hash = "sha256:78ad09a022c64c13cc6077707f036bab0fac8cd7088772dcd1e5be21c5002efc", size = 10691209 }, +] diff --git a/release-please-config.json b/release-please-config.json index 7a4358d3..25c4372d 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -35,6 +35,15 @@ "README.md" ] }, + "providers/openfeature-provider-env-var": { + "package-name": "openfeature-provider-env-var", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "versioning": "default", + "extra-files": [ + "README.md" + ] + }, "hooks/openfeature-hooks-opentelemetry": { "package-name": "openfeature-hooks-opentelemetry", "bump-minor-pre-major": true, From 8b121454653bca935b0af088cf2941d9bb3bcddf Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:16:37 +0200 Subject: [PATCH 02/16] Add basic env var provider Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/pyproject.toml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index 0d1b37b9..6bf95c8f 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -9,9 +9,8 @@ dependencies = [ ] authors = [{ name = "OpenFeature", email = "openfeature-core@groups.io" }] - [build-system] -requires = ["hatchling", "uv-dynamic-versioning"] +requires = ["hatchling"] build-backend = "hatchling.build" [tool.ruff.lint] @@ -27,12 +26,6 @@ dev = [ [tool.hatch.build.targets.wheel] packages = ["."] -[tool.hatch.version] -source = "uv-dynamic-versioning" - -[tool.uv-dynamic-versioning] -fallback-version = "0.0.0" - [tool.pytest.ini_options] testpaths = ["tests"] python_files = "test_*.py" From 1179f5df991a12541c450e0b540c59171de55477 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:30:45 +0200 Subject: [PATCH 03/16] Add basic env var provider Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index 6bf95c8f..430a44ad 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -30,3 +30,8 @@ packages = ["."] testpaths = ["tests"] python_files = "test_*.py" python_functions = "test_*" + +[tool.hatch] + +[tool.hatch.envs.mypy] +dependencies = ["mypy"] From abec4f64c249a0568843ed904bc2ea54b3ea4194 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:34:00 +0200 Subject: [PATCH 04/16] Add basic env var provider Signed-off-by: christian.lutnik --- .../openfeature-provider-env-var/pyproject.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index 430a44ad..cb0b935d 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -24,7 +24,7 @@ dev = [ ] [tool.hatch.build.targets.wheel] -packages = ["."] +packages = ["src/openfeature"] [tool.pytest.ini_options] testpaths = ["tests"] @@ -33,5 +33,16 @@ python_functions = "test_*" [tool.hatch] +pre-install-commands = [ + "hatch build", +] + +[tool.hatch.envs.mypy.scripts] +run = "mypy" + [tool.hatch.envs.mypy] dependencies = ["mypy"] + +[tool.mypy] +mypy_path = "src" +files = "src" \ No newline at end of file From 3fb84e88ecc63e5fe519a67f162341a5cdbbb25e Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:40:31 +0200 Subject: [PATCH 05/16] Add basic env var provider Signed-off-by: christian.lutnik --- .../pyproject.toml | 25 +++++++++---- .../tests/test_provider.py | 35 ++++++++++++++++++- 2 files changed, 53 insertions(+), 7 deletions(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index cb0b935d..dc39c126 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -26,11 +26,6 @@ dev = [ [tool.hatch.build.targets.wheel] packages = ["src/openfeature"] -[tool.pytest.ini_options] -testpaths = ["tests"] -python_files = "test_*.py" -python_functions = "test_*" - [tool.hatch] pre-install-commands = [ @@ -45,4 +40,22 @@ dependencies = ["mypy"] [tool.mypy] mypy_path = "src" -files = "src" \ No newline at end of file +files = "src" + +[tool.hatch.envs.hatch-test] +dependencies = [ + "pytest>=8.3.5", + "pytest-cov>=6.1.1", + "pytest", +] + +[tool.coverage.run] +omit = [ + "tests/**", +] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = "test_*.py" +python_functions = "test_*" +addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" \ No newline at end of file diff --git a/providers/openfeature-provider-env-var/tests/test_provider.py b/providers/openfeature-provider-env-var/tests/test_provider.py index 161b77c4..7dfd256e 100644 --- a/providers/openfeature-provider-env-var/tests/test_provider.py +++ b/providers/openfeature-provider-env-var/tests/test_provider.py @@ -12,7 +12,7 @@ def test_unknown_flag_key_throws_flag_not_found_error(): provider.resolve_boolean_details("unknown_flag_key", True, None) -def test_known_flag_key_evaluates_the_flag(): +def test_string_flag_key_evaluates_the_flag(): key = "test-flag-key" value = "test-value" os.environ[key] = value @@ -21,3 +21,36 @@ def test_known_flag_key_evaluates_the_flag(): result = provider.resolve_string_details(key, True, None) assert result.value == value + + +def test_int_flag_key_evaluates_the_flag(): + key = "test-flag-key" + value = 324 + os.environ[key] = str(value) + + provider = EnvVarProvider() + result = provider.resolve_integer_details(key, True, None) + + assert result.value == value + + +def test_float_flag_key_evaluates_the_flag(): + key = "test-flag-key" + value = 324.34 + os.environ[key] = str(value) + + provider = EnvVarProvider() + result = provider.resolve_float_details(key, True, None) + + assert result.value == value + + +def test_boolean_flag_key_evaluates_the_flag(): + key = "test-flag-key" + value = True + os.environ[key] = str(value) + + provider = EnvVarProvider() + result = provider.resolve_boolean_details(key, True, None) + + assert result.value == value From 01702aadd86d340431b0d24d788d311f95beae12 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:45:58 +0200 Subject: [PATCH 06/16] Add basic env var provider Signed-off-by: christian.lutnik --- .gitignore | 3 +++ .../openfeature-provider-env-var/pyproject.toml | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 90587d41..d044a0e0 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ docs/_build/ # vscode .vscode/ + +# test coverage +/providers/openfeature-provider-env-var/tests-results.xml diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index dc39c126..cdda123d 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -58,4 +58,18 @@ omit = [ testpaths = ["tests"] python_files = "test_*.py" python_functions = "test_*" -addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" \ No newline at end of file +addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" + +[tool.hatch.envs.hatch-test.scripts] +run = "uv run pytest" +run-cov = "uv run pytest --cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" +cov-combine = "coverage combine" +cov-report = [ + "coverage xml", + "coverage html", + "coverage report", +] +cov = [ + "coverage.xml", + "tests-results.xml", +] \ No newline at end of file From ef0f6ac36b8d5061301652bd0fc985fce3c54adc Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:47:47 +0200 Subject: [PATCH 07/16] Add basic env var provider Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index cdda123d..fe1fea57 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -63,7 +63,6 @@ addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xm [tool.hatch.envs.hatch-test.scripts] run = "uv run pytest" run-cov = "uv run pytest --cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" -cov-combine = "coverage combine" cov-report = [ "coverage xml", "coverage html", From b3e1c6d12960d0713db2438c98558a86ffc519f7 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:53:36 +0200 Subject: [PATCH 08/16] Add basic env var provider Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index fe1fea57..f9ba33b4 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -63,12 +63,13 @@ addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xm [tool.hatch.envs.hatch-test.scripts] run = "uv run pytest" run-cov = "uv run pytest --cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" +cov-combine = "coverage combine" cov-report = [ "coverage xml", "coverage html", "coverage report", ] cov = [ - "coverage.xml", + ".coverage", "tests-results.xml", ] \ No newline at end of file From a5f5be90de91bcc236a450cc3caaf1e2fa28cd45 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:56:09 +0200 Subject: [PATCH 09/16] Add basic env var provider Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index f9ba33b4..bbcc5010 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -63,7 +63,7 @@ addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xm [tool.hatch.envs.hatch-test.scripts] run = "uv run pytest" run-cov = "uv run pytest --cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" -cov-combine = "coverage combine" +cov-combine = "." cov-report = [ "coverage xml", "coverage html", From b5113ffe717d673071994dad2d25eff4d542c6a5 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 11:59:58 +0200 Subject: [PATCH 10/16] Add basic env var provider Signed-off-by: christian.lutnik --- .../tests/test_provider.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/providers/openfeature-provider-env-var/tests/test_provider.py b/providers/openfeature-provider-env-var/tests/test_provider.py index 7dfd256e..8ae3c9cb 100644 --- a/providers/openfeature-provider-env-var/tests/test_provider.py +++ b/providers/openfeature-provider-env-var/tests/test_provider.py @@ -1,3 +1,4 @@ +import json import os import pytest @@ -54,3 +55,21 @@ def test_boolean_flag_key_evaluates_the_flag(): result = provider.resolve_boolean_details(key, True, None) assert result.value == value + + +def test_object_flag_key_evaluates_the_flag(): + key = "test-flag-key" + value = {"a": 23} + os.environ[key] = str(json.dumps(value)) + + provider = EnvVarProvider() + result = provider.resolve_object_details(key, True, None) + + assert result.value == value + + +def test_provider_returns_correct_metadata(): + provider = EnvVarProvider() + metadata = provider.get_metadata() + assert metadata is not None + assert metadata.name == "EnvVarProvider" From 9a9928be80267be2555cf6f6dcd1a187d6878dd9 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 4 Jul 2025 12:06:16 +0200 Subject: [PATCH 11/16] Add basic env var provider Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/pyproject.toml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index bbcc5010..13795e24 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -54,12 +54,6 @@ omit = [ "tests/**", ] -[tool.pytest.ini_options] -testpaths = ["tests"] -python_files = "test_*.py" -python_functions = "test_*" -addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" - [tool.hatch.envs.hatch-test.scripts] run = "uv run pytest" run-cov = "uv run pytest --cov --cov-report xml --cov-report html --junit-xml=tests-results.xml" From 86020539bfeb2bca8290dc3315bcc1296d35431d Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Mon, 7 Jul 2025 12:50:06 +0200 Subject: [PATCH 12/16] Improve object mapping Signed-off-by: christian.lutnik --- .../contrib/provider/envvar/provider.py | 11 +++++++++- .../tests/test_provider.py | 21 ++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py index 87d4608d..4bdd9ace 100644 --- a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py +++ b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py @@ -59,4 +59,13 @@ def resolve_object_details( default_value: typing.Union[dict, list], evaluation_context: typing.Optional[EvaluationContext] = None, ) -> FlagResolutionDetails[typing.Union[dict, list]]: - return _load_and_parse_env_var(flag_key, lambda v: json.loads(v)) + def parse(value: str) -> typing.Union[dict, list]: + result = json.loads(value) + if isinstance(result, dict) or isinstance(result, list): + return result + else: + raise TypeError( + f'Value for feature flag with key "${flag_key}" does not resolve to a JSON object or list' + ) + + return _load_and_parse_env_var(flag_key, parse) diff --git a/providers/openfeature-provider-env-var/tests/test_provider.py b/providers/openfeature-provider-env-var/tests/test_provider.py index 8ae3c9cb..52e214d8 100644 --- a/providers/openfeature-provider-env-var/tests/test_provider.py +++ b/providers/openfeature-provider-env-var/tests/test_provider.py @@ -13,7 +13,7 @@ def test_unknown_flag_key_throws_flag_not_found_error(): provider.resolve_boolean_details("unknown_flag_key", True, None) -def test_string_flag_key_evaluates_the_flag(): +def test_string_flag_evaluates_the_flag(): key = "test-flag-key" value = "test-value" os.environ[key] = value @@ -24,7 +24,7 @@ def test_string_flag_key_evaluates_the_flag(): assert result.value == value -def test_int_flag_key_evaluates_the_flag(): +def test_int_flag_evaluates_the_flag(): key = "test-flag-key" value = 324 os.environ[key] = str(value) @@ -35,7 +35,7 @@ def test_int_flag_key_evaluates_the_flag(): assert result.value == value -def test_float_flag_key_evaluates_the_flag(): +def test_float_flag_evaluates_the_flag(): key = "test-flag-key" value = 324.34 os.environ[key] = str(value) @@ -46,7 +46,7 @@ def test_float_flag_key_evaluates_the_flag(): assert result.value == value -def test_boolean_flag_key_evaluates_the_flag(): +def test_boolean_flag_evaluates_the_flag(): key = "test-flag-key" value = True os.environ[key] = str(value) @@ -57,7 +57,7 @@ def test_boolean_flag_key_evaluates_the_flag(): assert result.value == value -def test_object_flag_key_evaluates_the_flag(): +def test_object_flag_evaluates_the_flag(): key = "test-flag-key" value = {"a": 23} os.environ[key] = str(json.dumps(value)) @@ -68,6 +68,17 @@ def test_object_flag_key_evaluates_the_flag(): assert result.value == value +def test_object_flag_with_invalid_json_object_raises_an_error(): + key = "test-flag-key" + value = 23 + os.environ[key] = str(json.dumps(value)) + + provider = EnvVarProvider() + + with pytest.raises(TypeError): + provider.resolve_object_details(key, True, None) + + def test_provider_returns_correct_metadata(): provider = EnvVarProvider() metadata = provider.get_metadata() From d11db9886d33997d4b3f07bb67575eb3290e50b4 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Mon, 7 Jul 2025 14:52:50 +0200 Subject: [PATCH 13/16] update readme Signed-off-by: christian.lutnik --- .../openfeature-provider-env-var/README.md | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/providers/openfeature-provider-env-var/README.md b/providers/openfeature-provider-env-var/README.md index a7ff8863..c5fdaa9c 100644 --- a/providers/openfeature-provider-env-var/README.md +++ b/providers/openfeature-provider-env-var/README.md @@ -5,6 +5,37 @@ If a flag with some key is evaluated when no env var named after this key exists Otherwise it will attempt to parse the string value of the env var to the appropriate type (`str`,`int`,`float`, or object). Errors during this parsing are forwarded to the user. +## Installation + +```console +pip install openfeature-provider-env-var +``` + +## Usage + +Create a new instance of the `EnvVarProvider`: + +```Python +provider = EnvVarProvider() +``` + +Configure the OpenFeature API to use the `EnvVarProvider` and retrieve the client: + +```Python +from openfeature import api +from openfeature.contrib.provider.envvar import EnvVarProvider + +api.set_provider(EnvVarProvider()) +client = api.get_client() +result = client.get_boolean_value("", True) +``` + +The `EnvVarProvider` will attempt to read values from the present environment variables. +If no values is present for a flag key, it will throw a `FlagNotFoundError`. +Otherwise, it will attempt to parse the value associated with the key to the requested type (e.g. `float` in the case of +`provider.resolve_float_details(key, 0.0, None)`) and forward any error that is raised during parsing to the user. +Note that any such errors will be caught by the OpenFeature API and translated into appropriate error codes. + ## Build setup This provider uses uv as build tool. @@ -27,4 +58,8 @@ Install the pre commit hooks that ensure proper formatting: ```shell uvx pre-commit install -``` \ No newline at end of file +``` + +## License + +Apache 2.0 - See [LICENSE](./LICENSE) for more information. From 2a15dd5805dd2b7092f811a2088cdaa1acc75bfd Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Wed, 9 Jul 2025 08:40:29 +0200 Subject: [PATCH 14/16] improve error handling Signed-off-by: christian.lutnik --- .../.python-version | 2 +- .../pyproject.toml | 5 +---- .../contrib/provider/envvar/provider.py | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/providers/openfeature-provider-env-var/.python-version b/providers/openfeature-provider-env-var/.python-version index e4fba218..bd28b9c5 100644 --- a/providers/openfeature-provider-env-var/.python-version +++ b/providers/openfeature-provider-env-var/.python-version @@ -1 +1 @@ -3.12 +3.9 diff --git a/providers/openfeature-provider-env-var/pyproject.toml b/providers/openfeature-provider-env-var/pyproject.toml index 13795e24..f3e421ce 100644 --- a/providers/openfeature-provider-env-var/pyproject.toml +++ b/providers/openfeature-provider-env-var/pyproject.toml @@ -3,7 +3,7 @@ name = "openfeature-provider-env-var" version = "0.1.0" description = "OpenFeature Python Environment Variable Provider" readme = "README.md" -requires-python = ">=3.12" +requires-python = ">=3.9" dependencies = [ "openfeature-sdk>=0.6.0", ] @@ -13,9 +13,6 @@ authors = [{ name = "OpenFeature", email = "openfeature-core@groups.io" }] requires = ["hatchling"] build-backend = "hatchling.build" -[tool.ruff.lint] -extend-select = ["B"] - [dependency-groups] dev = [ "pytest>=8.3.5", diff --git a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py index 4bdd9ace..a66d8899 100644 --- a/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py +++ b/providers/openfeature-provider-env-var/src/openfeature/contrib/provider/envvar/provider.py @@ -1,9 +1,9 @@ import json -import typing import os +import typing from openfeature.evaluation_context import EvaluationContext -from openfeature.exception import FlagNotFoundError +from openfeature.exception import FlagNotFoundError, ParseError from openfeature.flag_evaluation import FlagResolutionDetails, Reason from openfeature.provider import AbstractProvider, Metadata @@ -14,7 +14,15 @@ def _load_and_parse_env_var( value = os.environ.get(flag_key) if value is None: raise FlagNotFoundError() - return FlagResolutionDetails(parse(value), None, None, Reason.DEFAULT, None, {}) + + try: + parsed = parse(value) + except ValueError as error: + raise ParseError( + f'Error decoding object for flag with key "${flag_key}"' + ) from error + + return FlagResolutionDetails(parsed, None, None, Reason.DEFAULT, None, {}) class EnvVarProvider(AbstractProvider): @@ -61,10 +69,11 @@ def resolve_object_details( ) -> FlagResolutionDetails[typing.Union[dict, list]]: def parse(value: str) -> typing.Union[dict, list]: result = json.loads(value) - if isinstance(result, dict) or isinstance(result, list): + + if isinstance(result, (dict, list)): return result else: - raise TypeError( + raise ParseError( f'Value for feature flag with key "${flag_key}" does not resolve to a JSON object or list' ) From f153ce72388ccf0f8dd8cb28b833161caa96be46 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Wed, 9 Jul 2025 10:37:33 +0200 Subject: [PATCH 15/16] formating Signed-off-by: christian.lutnik --- providers/openfeature-provider-env-var/tests/test_provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/openfeature-provider-env-var/tests/test_provider.py b/providers/openfeature-provider-env-var/tests/test_provider.py index 52e214d8..b290c79d 100644 --- a/providers/openfeature-provider-env-var/tests/test_provider.py +++ b/providers/openfeature-provider-env-var/tests/test_provider.py @@ -2,10 +2,10 @@ import os import pytest -from openfeature.exception import FlagNotFoundError - from src.openfeature.contrib.provider.envvar import EnvVarProvider +from openfeature.exception import FlagNotFoundError + def test_unknown_flag_key_throws_flag_not_found_error(): provider = EnvVarProvider() From aa130c1d309b62d73d5ea336a4b0e2953e39957a Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Wed, 9 Jul 2025 13:42:23 +0200 Subject: [PATCH 16/16] add and fix tests Signed-off-by: christian.lutnik --- .../tests/test_provider.py | 15 ++- .../openfeature-provider-env-var/uv.lock | 103 +++++++++++++++++- 2 files changed, 114 insertions(+), 4 deletions(-) diff --git a/providers/openfeature-provider-env-var/tests/test_provider.py b/providers/openfeature-provider-env-var/tests/test_provider.py index b290c79d..c5b4ee8d 100644 --- a/providers/openfeature-provider-env-var/tests/test_provider.py +++ b/providers/openfeature-provider-env-var/tests/test_provider.py @@ -4,7 +4,7 @@ import pytest from src.openfeature.contrib.provider.envvar import EnvVarProvider -from openfeature.exception import FlagNotFoundError +from openfeature.exception import FlagNotFoundError, ParseError def test_unknown_flag_key_throws_flag_not_found_error(): @@ -68,6 +68,17 @@ def test_object_flag_evaluates_the_flag(): assert result.value == value +def test_int_flag_with_invalid_format_raises_exception(): + key = "test-flag-key" + value = "23.23" + os.environ[key] = str(value) + + provider = EnvVarProvider() + + with pytest.raises(ParseError): + provider.resolve_integer_details(key, True, None) + + def test_object_flag_with_invalid_json_object_raises_an_error(): key = "test-flag-key" value = 23 @@ -75,7 +86,7 @@ def test_object_flag_with_invalid_json_object_raises_an_error(): provider = EnvVarProvider() - with pytest.raises(TypeError): + with pytest.raises(ParseError): provider.resolve_object_details(key, True, None) diff --git a/providers/openfeature-provider-env-var/uv.lock b/providers/openfeature-provider-env-var/uv.lock index ad09a626..0d5dd239 100644 --- a/providers/openfeature-provider-env-var/uv.lock +++ b/providers/openfeature-provider-env-var/uv.lock @@ -1,6 +1,6 @@ version = 1 revision = 1 -requires-python = ">=3.12" +requires-python = ">=3.9" [[package]] name = "colorama" @@ -17,6 +17,27 @@ version = "7.9.2" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/04/b7/c0465ca253df10a9e8dae0692a4ae6e9726d245390aaef92360e1d6d3832/coverage-7.9.2.tar.gz", hash = "sha256:997024fa51e3290264ffd7492ec97d0690293ccd2b45a6cd7d82d945a4a80c8b", size = 813556 } wheels = [ + { url = "https://files.pythonhosted.org/packages/a1/0d/5c2114fd776c207bd55068ae8dc1bef63ecd1b767b3389984a8e58f2b926/coverage-7.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:66283a192a14a3854b2e7f3418d7db05cdf411012ab7ff5db98ff3b181e1f912", size = 212039 }, + { url = "https://files.pythonhosted.org/packages/cf/ad/dc51f40492dc2d5fcd31bb44577bc0cc8920757d6bc5d3e4293146524ef9/coverage-7.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4e01d138540ef34fcf35c1aa24d06c3de2a4cffa349e29a10056544f35cca15f", size = 212428 }, + { url = "https://files.pythonhosted.org/packages/a2/a3/55cb3ff1b36f00df04439c3993d8529193cdf165a2467bf1402539070f16/coverage-7.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f22627c1fe2745ee98d3ab87679ca73a97e75ca75eb5faee48660d060875465f", size = 241534 }, + { url = "https://files.pythonhosted.org/packages/eb/c9/a8410b91b6be4f6e9c2e9f0dce93749b6b40b751d7065b4410bf89cb654b/coverage-7.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b1c2d8363247b46bd51f393f86c94096e64a1cf6906803fa8d5a9d03784bdbf", size = 239408 }, + { url = "https://files.pythonhosted.org/packages/ff/c4/6f3e56d467c612b9070ae71d5d3b114c0b899b5788e1ca3c93068ccb7018/coverage-7.9.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c10c882b114faf82dbd33e876d0cbd5e1d1ebc0d2a74ceef642c6152f3f4d547", size = 240552 }, + { url = "https://files.pythonhosted.org/packages/fd/20/04eda789d15af1ce79bce5cc5fd64057c3a0ac08fd0576377a3096c24663/coverage-7.9.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:de3c0378bdf7066c3988d66cd5232d161e933b87103b014ab1b0b4676098fa45", size = 240464 }, + { url = "https://files.pythonhosted.org/packages/a9/5a/217b32c94cc1a0b90f253514815332d08ec0812194a1ce9cca97dda1cd20/coverage-7.9.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:1e2f097eae0e5991e7623958a24ced3282676c93c013dde41399ff63e230fcf2", size = 239134 }, + { url = "https://files.pythonhosted.org/packages/34/73/1d019c48f413465eb5d3b6898b6279e87141c80049f7dbf73fd020138549/coverage-7.9.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:28dc1f67e83a14e7079b6cea4d314bc8b24d1aed42d3582ff89c0295f09b181e", size = 239405 }, + { url = "https://files.pythonhosted.org/packages/49/6c/a2beca7aa2595dad0c0d3f350382c381c92400efe5261e2631f734a0e3fe/coverage-7.9.2-cp310-cp310-win32.whl", hash = "sha256:bf7d773da6af9e10dbddacbf4e5cab13d06d0ed93561d44dae0188a42c65be7e", size = 214519 }, + { url = "https://files.pythonhosted.org/packages/fc/c8/91e5e4a21f9a51e2c7cdd86e587ae01a4fcff06fc3fa8cde4d6f7cf68df4/coverage-7.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:0c0378ba787681ab1897f7c89b415bd56b0b2d9a47e5a3d8dc0ea55aac118d6c", size = 215400 }, + { url = "https://files.pythonhosted.org/packages/39/40/916786453bcfafa4c788abee4ccd6f592b5b5eca0cd61a32a4e5a7ef6e02/coverage-7.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a7a56a2964a9687b6aba5b5ced6971af308ef6f79a91043c05dd4ee3ebc3e9ba", size = 212152 }, + { url = "https://files.pythonhosted.org/packages/9f/66/cc13bae303284b546a030762957322bbbff1ee6b6cb8dc70a40f8a78512f/coverage-7.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:123d589f32c11d9be7fe2e66d823a236fe759b0096f5db3fb1b75b2fa414a4fa", size = 212540 }, + { url = "https://files.pythonhosted.org/packages/0f/3c/d56a764b2e5a3d43257c36af4a62c379df44636817bb5f89265de4bf8bd7/coverage-7.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:333b2e0ca576a7dbd66e85ab402e35c03b0b22f525eed82681c4b866e2e2653a", size = 245097 }, + { url = "https://files.pythonhosted.org/packages/b1/46/bd064ea8b3c94eb4ca5d90e34d15b806cba091ffb2b8e89a0d7066c45791/coverage-7.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:326802760da234baf9f2f85a39e4a4b5861b94f6c8d95251f699e4f73b1835dc", size = 242812 }, + { url = "https://files.pythonhosted.org/packages/43/02/d91992c2b29bc7afb729463bc918ebe5f361be7f1daae93375a5759d1e28/coverage-7.9.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19e7be4cfec248df38ce40968c95d3952fbffd57b400d4b9bb580f28179556d2", size = 244617 }, + { url = "https://files.pythonhosted.org/packages/b7/4f/8fadff6bf56595a16d2d6e33415841b0163ac660873ed9a4e9046194f779/coverage-7.9.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0b4a4cb73b9f2b891c1788711408ef9707666501ba23684387277ededab1097c", size = 244263 }, + { url = "https://files.pythonhosted.org/packages/9b/d2/e0be7446a2bba11739edb9f9ba4eff30b30d8257370e237418eb44a14d11/coverage-7.9.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:2c8937fa16c8c9fbbd9f118588756e7bcdc7e16a470766a9aef912dd3f117dbd", size = 242314 }, + { url = "https://files.pythonhosted.org/packages/9d/7d/dcbac9345000121b8b57a3094c2dfcf1ccc52d8a14a40c1d4bc89f936f80/coverage-7.9.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:42da2280c4d30c57a9b578bafd1d4494fa6c056d4c419d9689e66d775539be74", size = 242904 }, + { url = "https://files.pythonhosted.org/packages/41/58/11e8db0a0c0510cf31bbbdc8caf5d74a358b696302a45948d7c768dfd1cf/coverage-7.9.2-cp311-cp311-win32.whl", hash = "sha256:14fa8d3da147f5fdf9d298cacc18791818f3f1a9f542c8958b80c228320e90c6", size = 214553 }, + { url = "https://files.pythonhosted.org/packages/3a/7d/751794ec8907a15e257136e48dc1021b1f671220ecccfd6c4eaf30802714/coverage-7.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:549cab4892fc82004f9739963163fd3aac7a7b0df430669b75b86d293d2df2a7", size = 215441 }, + { url = "https://files.pythonhosted.org/packages/62/5b/34abcedf7b946c1c9e15b44f326cb5b0da852885312b30e916f674913428/coverage-7.9.2-cp311-cp311-win_arm64.whl", hash = "sha256:c2667a2b913e307f06aa4e5677f01a9746cd08e4b35e14ebcde6420a9ebb4c62", size = 213873 }, { url = "https://files.pythonhosted.org/packages/53/d7/7deefc6fd4f0f1d4c58051f4004e366afc9e7ab60217ac393f247a1de70a/coverage-7.9.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ae9eb07f1cfacd9cfe8eaee6f4ff4b8a289a668c39c165cd0c8548484920ffc0", size = 212344 }, { url = "https://files.pythonhosted.org/packages/95/0c/ee03c95d32be4d519e6a02e601267769ce2e9a91fc8faa1b540e3626c680/coverage-7.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ce85551f9a1119f02adc46d3014b5ee3f765deac166acf20dbb851ceb79b6f3", size = 212580 }, { url = "https://files.pythonhosted.org/packages/8b/9f/826fa4b544b27620086211b87a52ca67592622e1f3af9e0a62c87aea153a/coverage-7.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8f6389ac977c5fb322e0e38885fbbf901743f79d47f50db706e7644dcdcb6e1", size = 246383 }, @@ -50,9 +71,37 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/da/2e/af6b86f7c95441ce82f035b3affe1cd147f727bbd92f563be35e2d585683/coverage-7.9.2-cp313-cp313t-win32.whl", hash = "sha256:1df6b76e737c6a92210eebcb2390af59a141f9e9430210595251fbaf02d46926", size = 215440 }, { url = "https://files.pythonhosted.org/packages/4d/bb/8a785d91b308867f6b2e36e41c569b367c00b70c17f54b13ac29bcd2d8c8/coverage-7.9.2-cp313-cp313t-win_amd64.whl", hash = "sha256:f5fd54310b92741ebe00d9c0d1d7b2b27463952c022da6d47c175d246a98d1bd", size = 216537 }, { url = "https://files.pythonhosted.org/packages/1d/a0/a6bffb5e0f41a47279fd45a8f3155bf193f77990ae1c30f9c224b61cacb0/coverage-7.9.2-cp313-cp313t-win_arm64.whl", hash = "sha256:c48c2375287108c887ee87d13b4070a381c6537d30e8487b24ec721bf2a781cb", size = 214398 }, + { url = "https://files.pythonhosted.org/packages/62/ab/b4b06662ccaa00ca7bbee967b7035a33a58b41efb92d8c89a6c523a2ccd5/coverage-7.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ddc39510ac922a5c4c27849b739f875d3e1d9e590d1e7b64c98dadf037a16cce", size = 212037 }, + { url = "https://files.pythonhosted.org/packages/bb/5e/04619995657acc898d15bfad42b510344b3a74d4d5bc34f2e279d46c781c/coverage-7.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a535c0c7364acd55229749c2b3e5eebf141865de3a8f697076a3291985f02d30", size = 212412 }, + { url = "https://files.pythonhosted.org/packages/14/e7/1465710224dc6d31c534e7714cbd907210622a044adc81c810e72eea873f/coverage-7.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df0f9ef28e0f20c767ccdccfc5ae5f83a6f4a2fbdfbcbcc8487a8a78771168c8", size = 241164 }, + { url = "https://files.pythonhosted.org/packages/ab/f2/44c6fbd2794afeb9ab6c0a14d3c088ab1dae3dff3df2624609981237bbb4/coverage-7.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2f3da12e0ccbcb348969221d29441ac714bbddc4d74e13923d3d5a7a0bebef7a", size = 239032 }, + { url = "https://files.pythonhosted.org/packages/6a/d2/7a79845429c0aa2e6788bc45c26a2e3052fa91082c9ea1dea56fb531952c/coverage-7.9.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a17eaf46f56ae0f870f14a3cbc2e4632fe3771eab7f687eda1ee59b73d09fe4", size = 240148 }, + { url = "https://files.pythonhosted.org/packages/9c/7d/2731d1b4c9c672d82d30d218224dfc62939cf3800bc8aba0258fefb191f5/coverage-7.9.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:669135a9d25df55d1ed56a11bf555f37c922cf08d80799d4f65d77d7d6123fcf", size = 239875 }, + { url = "https://files.pythonhosted.org/packages/1b/83/685958715429a9da09cf172c15750ca5c795dd7259466f2645403696557b/coverage-7.9.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:9d3a700304d01a627df9db4322dc082a0ce1e8fc74ac238e2af39ced4c083193", size = 238127 }, + { url = "https://files.pythonhosted.org/packages/34/ff/161a4313308b3783126790adfae1970adbe4886fda8788792e435249910a/coverage-7.9.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:71ae8b53855644a0b1579d4041304ddc9995c7b21c8a1f16753c4d8903b4dfed", size = 239064 }, + { url = "https://files.pythonhosted.org/packages/17/14/fe33f41b2e80811021de059621f44c01ebe4d6b08bdb82d54a514488e933/coverage-7.9.2-cp39-cp39-win32.whl", hash = "sha256:dd7a57b33b5cf27acb491e890720af45db05589a80c1ffc798462a765be6d4d7", size = 214522 }, + { url = "https://files.pythonhosted.org/packages/6e/30/63d850ec31b5c6f6a7b4e853016375b846258300320eda29376e2786ceeb/coverage-7.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:f65bb452e579d5540c8b37ec105dd54d8b9307b07bcaa186818c104ffda22441", size = 215419 }, + { url = "https://files.pythonhosted.org/packages/d7/85/f8bbefac27d286386961c25515431482a425967e23d3698b75a250872924/coverage-7.9.2-pp39.pp310.pp311-none-any.whl", hash = "sha256:8a1166db2fb62473285bcb092f586e081e92656c7dfa8e9f62b4d39d7e6b5050", size = 204013 }, { url = "https://files.pythonhosted.org/packages/3c/38/bbe2e63902847cf79036ecc75550d0698af31c91c7575352eb25190d0fb3/coverage-7.9.2-py3-none-any.whl", hash = "sha256:e425cd5b00f6fc0ed7cdbd766c70be8baab4b7839e4d4fe5fac48581dd968ea4", size = 204005 }, ] +[package.optional-dependencies] +toml = [ + { name = "tomli", marker = "python_full_version <= '3.11'" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0b/9f/a65090624ecf468cdca03533906e7c69ed7588582240cfe7cc9e770b50eb/exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88", size = 29749 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/36/f4/c6e662dade71f56cd2f3735141b265c3c79293c109549c1e6933b0651ffc/exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10", size = 16674 }, +] + [[package]] name = "iniconfig" version = "2.1.0" @@ -129,10 +178,12 @@ version = "8.4.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, { name = "iniconfig" }, { name = "packaging" }, { name = "pluggy" }, { name = "pygments" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/08/ba/45911d754e8eba3d5a841a5ce61a65a685ff1798421ac054f85aa8747dfb/pytest-8.4.1.tar.gz", hash = "sha256:7c67fd69174877359ed9371ec3af8a3d2b04741818c51e5e99cc1742251fa93c", size = 1517714 } wheels = [ @@ -144,7 +195,7 @@ name = "pytest-cov" version = "6.2.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "coverage" }, + { name = "coverage", extra = ["toml"] }, { name = "pluggy" }, { name = "pytest" }, ] @@ -177,3 +228,51 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/cf/56/7158bd8d3cf16394928f47c637d39a7d532268cd45220bdb6cd622985760/ruff-0.12.1-py3-none-win_amd64.whl", hash = "sha256:9e1123b1c033f77bd2590e4c1fe7e8ea72ef990a85d2484351d408224d603013", size = 11547485 }, { url = "https://files.pythonhosted.org/packages/91/d0/6902c0d017259439d6fd2fd9393cea1cfe30169940118b007d5e0ea7e954/ruff-0.12.1-py3-none-win_arm64.whl", hash = "sha256:78ad09a022c64c13cc6077707f036bab0fac8cd7088772dcd1e5be21c5002efc", size = 10691209 }, ] + +[[package]] +name = "tomli" +version = "2.2.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077 }, + { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429 }, + { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067 }, + { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030 }, + { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898 }, + { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894 }, + { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319 }, + { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273 }, + { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310 }, + { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309 }, + { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762 }, + { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453 }, + { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486 }, + { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349 }, + { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159 }, + { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243 }, + { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645 }, + { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584 }, + { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875 }, + { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418 }, + { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 }, + { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 }, + { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 }, + { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 }, + { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 }, + { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 }, + { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 }, + { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 }, + { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 }, + { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 }, + { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 }, +] + +[[package]] +name = "typing-extensions" +version = "4.14.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/98/5a/da40306b885cc8c09109dc2e1abd358d5684b1425678151cdaed4731c822/typing_extensions-4.14.1.tar.gz", hash = "sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36", size = 107673 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b5/00/d631e67a838026495268c2f6884f3711a15a9a2a96cd244fdaea53b823fb/typing_extensions-4.14.1-py3-none-any.whl", hash = "sha256:d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76", size = 43906 }, +]