From 0945d61b1a0c51a02d728dab26bf70c362fb2fda Mon Sep 17 00:00:00 2001 From: ds Date: Fri, 20 Nov 2026 14:16:31 +0100 Subject: [PATCH] chore:format and migrate to uv --- .flake8 | 39 - .github/workflows/code-quality.yaml | 72 +- .github/workflows/release.yaml | 88 +- .gitignore | 6 +- .pre-commit-config.yaml | 24 + MANIFEST.in | 4 - README.md | 41 +- dev-requirements.txt | 10 - docs/REVIEW.md | 14 +- fbclient/__init__.py | 4 +- fbclient/category.py | 8 +- fbclient/client.py | 199 ++- fbclient/common_types.py | 180 +-- fbclient/config.py | 191 +-- fbclient/data_storage.py | 33 +- fbclient/evaluator.py | 286 ++-- fbclient/event_processor.py | 97 +- fbclient/event_types.py | 52 +- fbclient/flag_change_notification.py | 88 +- fbclient/interfaces.py | 29 +- fbclient/notice_broadcaster.py | 30 +- fbclient/status.py | 37 +- fbclient/status_types.py | 30 +- fbclient/streaming.py | 249 ++-- fbclient/update_processor.py | 9 +- fbclient/utils/__init__.py | 73 +- .../exponential_backoff_jitter_strategy.py | 22 +- fbclient/utils/http_client.py | 82 +- fbclient/utils/repeatable_task.py | 18 +- fbclient/utils/rwlock.py | 14 +- .../utils/variation_splitting_algorithm.py | 10 +- pyproject.toml | 62 +- release/package.json | 3 - requirements.txt | 4 - scripts/live_integration_check.py | 43 +- scripts/resource_audit.py | 36 +- scripts/wheel_smoke.py | 15 +- setup.py | 57 - tests/test_data_storage.py | 14 +- tests/test_data_update_status_provider.py | 27 +- tests/test_evaluator.py | 20 +- tests/test_event_processor.py | 47 +- tests/test_fbclient.py | 148 ++- tests/test_flag_change_notification.py | 19 +- tests/test_insights_enabled.py | 131 +- tests/test_runtime_safety.py | 196 +-- uv.lock | 1155 +++++++++++++++++ 47 files changed, 2862 insertions(+), 1154 deletions(-) delete mode 100644 .flake8 create mode 100644 .pre-commit-config.yaml delete mode 100644 MANIFEST.in delete mode 100644 dev-requirements.txt delete mode 100644 release/package.json delete mode 100644 requirements.txt delete mode 100644 setup.py create mode 100644 uv.lock diff --git a/.flake8 b/.flake8 deleted file mode 100644 index c7078b8..0000000 --- a/.flake8 +++ /dev/null @@ -1,39 +0,0 @@ -[flake8] - -################### FILE PATTERNS ########################## - -# Provide a comma-separated list of glob patterns to exclude from checks. -exclude = - # git folder - .git, - # python cache - __pycache__, - # pytest cache - .pytest_cache, - # mypy cache - .mypy_cache, - build, - dist -# Provide a comma-separate list of glob patterns to include for checks. -filename = *.py - -########## Options ########## - -# Report all errors, even if it is on the same line as a `# NOQA` comment. -disable-noqa = False - -# Set the maximum length that any line (with some exceptions) may be. -max-line-length = 199 -# Set the maximum allowed McCabe complexity value for a block of code. -max-complexity = 10 - -########## Rules ########## -ignore = - E133, - E203, - W503, - C901, - E722 - -per-file-ignores = - __init__.py:F401,F403 \ No newline at end of file diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index dfe119a..52773cb 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -17,45 +17,39 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v7 + - name: Install uv and set Python ${{ matrix.python-version }} + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: + version: "0.13.9" python-version: ${{ matrix.python-version }} - # You can test your matrix by printing the current Python version - - name: Display Python version - run: python -c "import sys; print(sys.version)" - name: Install dependencies + run: uv sync --locked + - name: Check lint and formatting with Ruff run: | - python -m pip install --upgrade pip - python -m pip install flake8 pytest pytest-mock build - if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi - python -m pip install --no-deps . - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors - python -m flake8 . + uv run --no-sync ruff check . + uv run --no-sync ruff format --check . - name: Test with pytest - run: | - python -m pytest + run: uv run --no-sync python -m pytest - name: Audit concurrency, memory, and thread cleanup if: matrix.python-version == '3.12' || matrix.python-version == '3.14' - run: python scripts/resource_audit.py --evaluations 20000 --workers 8 + run: uv run --no-sync python scripts/resource_audit.py --evaluations 20000 --workers 8 - name: Build production distributions if: matrix.python-version == '3.12' || matrix.python-version == '3.14' - run: python -m build + run: uv build - name: Verify wheel contains production packages only if: matrix.python-version == '3.12' || matrix.python-version == '3.14' - run: python -c "import glob, zipfile; names = zipfile.ZipFile(glob.glob('dist/*.whl')[0]).namelist(); assert not any(name.startswith(('tests/', 'featbit_openfeature/')) for name in names)" + run: uv run --no-sync python -c "import glob, zipfile; names = zipfile.ZipFile(glob.glob('dist/*.whl')[0]).namelist(); assert not any(name.startswith(('tests/', 'featbit_openfeature/')) for name in names)" - name: Install and smoke-test the built wheel if: matrix.python-version == '3.14' run: | - python -m venv "$RUNNER_TEMP/featbit-wheel-test" - "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip install --upgrade pip - "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip install dist/*.whl - "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip check - "$RUNNER_TEMP/featbit-wheel-test/bin/python" scripts/wheel_smoke.py \ + wheel_env="$RUNNER_TEMP/featbit-wheel-test" + uv venv "$wheel_env" + uv pip install --python "$wheel_env/bin/python" dist/*.whl + uv pip check --python "$wheel_env/bin/python" + version="$(uv version --short)" + "$wheel_env/bin/python" scripts/wheel_smoke.py \ --bootstrap tests/fbclient_test_data.json \ - --expected-version-file release/package.json + --expected-version "$version" windows: runs-on: windows-latest @@ -65,39 +59,35 @@ jobs: python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v7 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v7 + - name: Install uv and set Python ${{ matrix.python-version }} + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: + version: "0.13.9" python-version: ${{ matrix.python-version }} - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pytest pytest-mock - python -m pip install -r requirements.txt - python -m pip install --no-deps . + run: uv sync --locked - name: Test with pytest - run: python -m pytest + run: uv run --no-sync python -m pytest minimum-dependencies: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - - name: Set up Python 3.14 - uses: actions/setup-python@v7 + - name: Install uv and set Python 3.14 + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 with: + version: "0.13.9" python-version: "3.14" - name: Install exact minimum dependencies run: | - python -m pip install --upgrade pip - python -m pip install pytest pytest-mock - python -m pip install \ + uv sync --locked + uv pip install \ certifi==2018.4.16 \ urllib3==1.26.5 \ python-dateutil==2.8.2 \ websocket-client==1.0.0 - python -m pip install --no-deps . - python -m pip check + uv pip check - name: Test with pytest - run: python -m pytest + run: uv run --no-sync python -m pytest - name: Audit concurrency, memory, and thread cleanup - run: python scripts/resource_audit.py --evaluations 20000 --workers 8 + run: uv run --no-sync python scripts/resource_audit.py --evaluations 20000 --workers 8 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e43ffe1..ba98aa9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,12 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - name: Upload Python Package on: @@ -16,54 +7,77 @@ on: - main jobs: - deploy: + build: + name: Build and verify distributions permissions: - contents: write + contents: read runs-on: ubuntu-24.04 - environment: py-production + outputs: + version: ${{ steps.version.outputs.value }} steps: - uses: actions/checkout@v7 + - name: Install uv and set Python 3.14 + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 + with: + version: "0.13.9" + python-version: "3.14" - name: Read current version id: version run: | - python3 - <<'PY' >> "$GITHUB_OUTPUT" - import json - with open("release/package.json") as file: - print("value=%s" % json.load(file)["version"]) - PY - - name: Set up Python - uses: actions/setup-python@v7 - with: - python-version: '3.14' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install build twine + version="$(uv version --short)" + printf 'value=%s\n' "$version" >> "$GITHUB_OUTPUT" - name: Build package - run: python -m build + run: uv build - name: Check package metadata - run: python -m twine check dist/* + run: uv run --locked --only-group release twine check dist/* - name: Install and smoke-test the built wheel env: VERSION: ${{ steps.version.outputs.value }} run: | - python -m venv "$RUNNER_TEMP/featbit-wheel-test" - "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip install --upgrade pip - "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip install dist/*.whl - "$RUNNER_TEMP/featbit-wheel-test/bin/python" -m pip check - "$RUNNER_TEMP/featbit-wheel-test/bin/python" scripts/wheel_smoke.py \ + wheel_env="$RUNNER_TEMP/featbit-wheel-test" + uv venv "$wheel_env" + uv pip install --python "$wheel_env/bin/python" dist/*.whl + uv pip check --python "$wheel_env/bin/python" + "$wheel_env/bin/python" scripts/wheel_smoke.py \ --bootstrap tests/fbclient_test_data.json \ --expected-version "$VERSION" + - name: Upload verified distributions + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: python-distributions + path: | + dist/*.whl + dist/*.tar.gz + if-no-files-found: error + + deploy: + name: Publish to PyPI + needs: build + permissions: + contents: write + runs-on: ubuntu-24.04 + # GitHub enforces Required reviewers on the py-production environment. + environment: py-production + steps: + - uses: actions/checkout@v7 + - name: Install uv + uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 + with: + version: "0.13.9" + - name: Download verified distributions + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: python-distributions + path: dist - name: Create GitHub Release env: GH_TOKEN: ${{ github.token }} - VERSION: ${{ steps.version.outputs.value }} + VERSION: ${{ needs.build.outputs.version }} run: | gh release create "v$VERSION" \ --title "v$VERSION" \ --notes-file release/description.md - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.4 - with: - user: __token__ - password: ${{ secrets.PYPI_PASSWORD }} + env: + UV_PUBLISH_TOKEN: ${{ secrets.PYPI_PASSWORD }} + run: uv publish diff --git a/.gitignore b/.gitignore index fa3dc6b..82a043a 100644 --- a/.gitignore +++ b/.gitignore @@ -130,6 +130,10 @@ dmypy.json ### IDEs +#### Zed + +/.zed/debug.json + #### VSCode .vscode/* @@ -220,4 +224,4 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser -intergration_tests/* \ No newline at end of file +intergration_tests/* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1f87a0d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +minimum_pre_commit_version: "4.4.0" +default_stages: [pre-commit] + +repos: + - repo: local + hooks: + - id: ruff-check + name: Ruff lint + entry: uv run --locked ruff check . + language: unsupported + always_run: true + pass_filenames: false + - id: ruff-format + name: Ruff format + entry: uv run --locked ruff format . + language: unsupported + always_run: true + pass_filenames: false + - id: pytest + name: Run all tests + entry: uv run --locked python -m pytest + language: unsupported + always_run: true + pass_filenames: false diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 0feff78..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,4 +0,0 @@ -include requirements.txt -include README.md -include dev-requirements.txt -include release/package.json diff --git a/README.md b/README.md index 0f8109e..1065072 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,19 @@ If you want to use your own data source, see [Offline Mode](#offline-mode). ## Get Started ### Installation -Install the SDK using pip. This version is compatible with Python 3.10 through 3.14. +This version of the SDK is compatible with Python 3.10 through 3.14. CI is configured to test compatibility on Linux and Windows through Python 3.14, including the full unit suite and SDK resource-lifecycle audit. Free-threaded CPython 3.14 builds are not currently tested or supported. +In a uv project, add the SDK with: + +```shell +uv add fb-python-sdk +``` + +To install the published SDK with pip: + ```shell pip install fb-python-sdk ``` @@ -83,7 +91,7 @@ shutdown, public runtime exception isolation, and redundant code. Run the local resource audit with: ```shell -python scripts/resource_audit.py --evaluations 80000 --workers 8 +uv run python scripts/resource_audit.py --evaluations 80000 --workers 8 ``` To verify WebSocket synchronization, remote evaluation, status changes, event @@ -91,7 +99,7 @@ delivery, and clean shutdown against FeatBit Cloud or a self-hosted evaluation service, set `FEATBIT_ENV_SECRET` and run: ```shell -python scripts/live_integration_check.py +uv run python scripts/live_integration_check.py ``` The live script never prints or persists the environment secret. See the @@ -274,6 +282,33 @@ client.track_metric(user, event_name, numeric_value); Make sure `track_metric` is called after the related feature flag is evaluated by simply calling `variation` or `variation_detail` otherwise, the custom event may not be included into the experiment result. +## Development + +From the repository root, use [uv](https://docs.astral.sh/uv/getting-started/installation/) +to sync the locked dependencies and run the project checks: + +```shell +uv sync --locked +uv run ruff check . +uv run ruff format --check . +uv run python -m pytest +uv build +``` + +Apply lint fixes and format the Python files with +`uv run ruff check --fix .` and `uv run ruff format .`. + +Enable the Git hook once per clone with `uv run --locked pre-commit install`. +Before each commit, the hook runs Ruff lint, Ruff format, and the full pytest +suite in that order. If formatting changes a file, stage the changes and +retry the commit. + +Set the release version with `uv version `, which updates +`pyproject.toml` and `uv.lock`. Update `release/description.md` with the release +notes. After a push to `main` or `master`, GitHub Actions builds and checks the +distributions. A required reviewer must approve the `py-production` deployment +in Actions before the workflow creates the GitHub Release and publishes to PyPI. + ## Getting support - If you have a specific question about using this sdk, we encourage you diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index f76c701..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -certifi>=2018.4.16 -urllib3>=1.26.5,<3 -websocket-client>=1.0.0 -python-dateutil>=2.8.2 -flake8 -pytest -pytest-mock -autopep8 -build -twine diff --git a/docs/REVIEW.md b/docs/REVIEW.md index 5906247..fe76a03 100644 --- a/docs/REVIEW.md +++ b/docs/REVIEW.md @@ -43,16 +43,18 @@ usable; runtime evaluation, event, status, and shutdown paths are isolated. Run from the repository root: ```shell -python -m pytest -python -m flake8 . -python scripts/resource_audit.py --evaluations 80000 --workers 8 -python -m build +uv sync --locked +uv run ruff check . +uv run ruff format --check . +uv run python -m pytest +uv run python scripts/resource_audit.py --evaluations 80000 --workers 8 +uv build ``` Result on Python 3.12.13 (2026-08-07): - 83 unit/integration tests passed. -- Flake8 passed. +- The lint check passed. - 80,000 evaluations across 8 workers completed with 0 concurrent errors. - Throughput was 12,490 evaluations/second on the final audit run. - No FeatBit SDK worker threads remained after shutdown. @@ -73,7 +75,7 @@ Use a real environment Server Key without storing it in the repository: ```shell export FEATBIT_ENV_SECRET='' export FEATBIT_FLAG_KEY='python-app-release' -python scripts/live_integration_check.py +uv run python scripts/live_integration_check.py ``` Optional variables are `FEATBIT_STREAMING_URL`, `FEATBIT_EVENT_URL`, and diff --git a/fbclient/__init__.py b/fbclient/__init__.py index 89c9c70..c17945d 100644 --- a/fbclient/__init__.py +++ b/fbclient/__init__.py @@ -1,7 +1,7 @@ from fbclient.client import FBClient from fbclient.config import Config -from fbclient.utils.rwlock import ReadWriteLock from fbclient.utils import log +from fbclient.utils.rwlock import ReadWriteLock """Settings.""" start_wait = 15 @@ -61,7 +61,7 @@ def set_config(config: Config): __lock.write_lock() if __client: __client.stop() - log.info('FB Python SDK: FB Python Client is reinitializing...') + log.info("FB Python SDK: FB Python Client is reinitializing...") __client = FBClient(config, start_wait) finally: __config = config diff --git a/fbclient/category.py b/fbclient/category.py index b944bde..c7a11bb 100644 --- a/fbclient/category.py +++ b/fbclient/category.py @@ -19,11 +19,11 @@ def tag(self): return self._tag -FEATURE_FLAGS = Category('featureFlags', 'ff') +FEATURE_FLAGS = Category("featureFlags", "ff") -SEGMENTS = Category('segments', 'seg') +SEGMENTS = Category("segments", "seg") -DATATEST = Category('datatest', 'test') +DATATEST = Category("datatest", "test") """ An enumeration of all supported types. Applications should not need to reference this object directly. @@ -31,4 +31,4 @@ def tag(self): """ ALL_CATS = [FEATURE_FLAGS, SEGMENTS, DATATEST] -ALL_CAT_NAMES = ['featureFlags', 'segments', 'datatest'] +ALL_CAT_NAMES = ["featureFlags", "segments", "datatest"] diff --git a/fbclient/client.py b/fbclient/client.py index e0e9bc4..05f72a7 100644 --- a/fbclient/client.py +++ b/fbclient/client.py @@ -3,13 +3,16 @@ from typing import Any, Mapping, Optional, Tuple from fbclient.category import FEATURE_FLAGS, SEGMENTS -from fbclient.common_types import (AllFlagStates, EvalDetail, FBUser, - _EvalResult) +from fbclient.common_types import AllFlagStates, EvalDetail, FBUser, _EvalResult from fbclient.config import Config from fbclient.data_storage import NullDataStorage -from fbclient.evaluator import (REASON_CLIENT_NOT_READY, REASON_ERROR, - REASON_FLAG_NOT_FOUND, - REASON_USER_NOT_SPECIFIED, Evaluator) +from fbclient.evaluator import ( + REASON_CLIENT_NOT_READY, + REASON_ERROR, + REASON_FLAG_NOT_FOUND, + REASON_USER_NOT_SPECIFIED, + Evaluator, +) from fbclient.event_processor import DefaultEventProcessor, NullEventProcessor from fbclient.event_types import FlagEvent, Metric, MetricEvent, UserEvent from fbclient.flag_change_notification import FlagTracker @@ -19,8 +22,13 @@ from fbclient.status_types import State from fbclient.streaming import Streaming, _data_to_dict from fbclient.update_processor import NullUpdateProcessor -from fbclient.utils import (cast_variation_by_flag_type, check_uwsgi, log, - simple_type_inference, valide_all_data) +from fbclient.utils import ( + cast_variation_by_flag_type, + check_uwsgi, + log, + simple_type_inference, + valide_all_data, +) from fbclient.utils.http_client import DefaultSender @@ -35,7 +43,7 @@ class FBClient: Client instances are thread-safe. """ - def __init__(self, config: Config, start_wait: float = 15.): + def __init__(self, config: Config, start_wait: float = 15.0): """ Creates a new client to connect to feature flag center with a specified configuration. @@ -88,22 +96,36 @@ def __init__(self, config: Config, start_wait: float = 15.): # data storage self._data_storage = config.data_storage # evaluator - self._evaluator = Evaluator(lambda key: self._data_storage.get(FEATURE_FLAGS, key), - lambda key: self._data_storage.get(SEGMENTS, key)) + self._evaluator = Evaluator( + lambda key: self._data_storage.get(FEATURE_FLAGS, key), + lambda key: self._data_storage.get(SEGMENTS, key), + ) # data updator and status provider self._update_status_provider = DataUpdateStatusProviderImpl(config.data_storage) # update processor update_processor_ready = threading.Event() - self._update_processor = self._build_update_processor(config, self._broadcaster, self._update_status_provider, update_processor_ready) + self._update_processor = self._build_update_processor( + config, + self._broadcaster, + self._update_status_provider, + update_processor_ready, + ) self._update_processor.start() if start_wait > 0: if not isinstance(self._update_processor, NullUpdateProcessor): - log.info("FB Python SDK: Waiting for Client initialization in %s seconds" % str(start_wait)) + log.info( + "FB Python SDK: Waiting for Client initialization in %s seconds" + % str(start_wait) + ) update_processor_ready.wait(start_wait) - if isinstance(self._data_storage, NullDataStorage) or (not self._data_storage.initialized and not self._config.is_offline): - log.warning("FB Python SDK: SDK just returns default variation because of no data found in the given environment") + if isinstance(self._data_storage, NullDataStorage) or ( + not self._data_storage.initialized and not self._config.is_offline + ): + log.warning( + "FB Python SDK: SDK just returns default variation because of no data found in the given environment" + ) if not self._update_processor.initialized: log.warning("FB Python SDK: SDK was not successfully initialized") else: @@ -111,25 +133,49 @@ def __init__(self, config: Config, start_wait: float = 15.): def _build_event_processor(self, config: Config): if config.event_processor_imp: - log.debug("Using user-specified event processor: %s" % str(config.event_processor_imp)) - return config.event_processor_imp(config, DefaultSender('insight', config, max_size=10)) + log.debug( + "Using user-specified event processor: %s" + % str(config.event_processor_imp) + ) + return config.event_processor_imp( + config, DefaultSender("insight", config, max_size=10) + ) if config.is_offline: log.debug("Offline mode, SDK disable event processing") - return NullEventProcessor(config, DefaultSender('insight', config, max_size=10)) - - return DefaultEventProcessor(config, DefaultSender('insight', config, max_size=10)) - - def _build_update_processor(self, config: Config, broadcaster: NoticeBroadcater, update_status_provider, update_processor_event): + return NullEventProcessor( + config, DefaultSender("insight", config, max_size=10) + ) + + return DefaultEventProcessor( + config, DefaultSender("insight", config, max_size=10) + ) + + def _build_update_processor( + self, + config: Config, + broadcaster: NoticeBroadcater, + update_status_provider, + update_processor_event, + ): if config.update_processor_imp: - log.debug("Using user-specified update processor: %s" % str(config.update_processor_imp)) - return config.update_processor_imp(config, update_status_provider, update_processor_event) + log.debug( + "Using user-specified update processor: %s" + % str(config.update_processor_imp) + ) + return config.update_processor_imp( + config, update_status_provider, update_processor_event + ) if config.is_offline: log.debug("Offline mode, SDK disable streaming data updating") - return NullUpdateProcessor(config, update_status_provider, update_processor_event) + return NullUpdateProcessor( + config, update_status_provider, update_processor_event + ) - return Streaming(config, broadcaster, update_status_provider, update_processor_event) + return Streaming( + config, broadcaster, update_status_provider, update_processor_event + ) def _send_event_safely(self, event): try: @@ -140,7 +186,7 @@ def _send_event_safely(self, event): except Exception: # Event delivery must never affect the application request that # produced the event, including when a custom processor is used. - log.exception('FB Python SDK: event processor failed') + log.exception("FB Python SDK: event processor failed") @property def initialize(self) -> bool: @@ -198,14 +244,15 @@ def stop(self): # one extension failure cannot prevent the remaining resources # from being released or escape into application shutdown code. for name, component in ( - ('update processor', self._update_processor), - ('event processor', self._event_processor), - ('notice broadcaster', self._broadcaster), - ('data storage', self._data_storage)): + ("update processor", self._update_processor), + ("event processor", self._event_processor), + ("notice broadcaster", self._broadcaster), + ("data storage", self._data_storage), + ): try: component.stop() except Exception: - log.exception('FB Python SDK: %s failed to stop' % name) + log.exception("FB Python SDK: %s failed to stop" % name) finally: with self._stop_lock: self._stop_owner = None @@ -218,50 +265,70 @@ def __exit__(self, exc_type, exc_value, exc_traceback): self.stop() def is_offline(self) -> bool: - """Returns true if the client is in offline mode. - """ + """Returns true if the client is in offline mode.""" return self._config.is_offline def _get_flag_internal(self, key: str) -> Optional[dict]: return self._data_storage.get(FEATURE_FLAGS, key) - def __handle_default_value(self, key: str, default: Any) -> Tuple[Optional[str], Any]: + def __handle_default_value( + self, key: str, default: Any + ) -> Tuple[Optional[str], Any]: default_value = self._config.get_default_value(key, default) try: default_value_type = simple_type_inference(default_value) if default_value is None: return None, None - elif default_value_type == 'boolean': + elif default_value_type == "boolean": return default_value_type, str(default_value).lower() - elif default_value_type == 'json': + elif default_value_type == "json": return default_value_type, json.dumps(default_value) else: return default_value_type, str(default_value) except Exception: - log.warning('FB Python SDK: unsupported default value; returning it unchanged on evaluation failure') + log.warning( + "FB Python SDK: unsupported default value; returning it unchanged on evaluation failure" + ) return None, default_value - def _evaluate_internal(self, key: str, user: dict, default: Any = None) -> _EvalResult: + def _evaluate_internal( + self, key: str, user: dict, default: Any = None + ) -> _EvalResult: default_value_type, default_value = self.__handle_default_value(key, default) try: if not self.initialize: - log.warning('FB Python SDK: Evaluation called before SDK is initialized for feature flag, well using the default value') - return _EvalResult.error(default_value, REASON_CLIENT_NOT_READY, key, default_value_type) + log.warning( + "FB Python SDK: Evaluation called before SDK is initialized for feature flag, well using the default value" + ) + return _EvalResult.error( + default_value, REASON_CLIENT_NOT_READY, key, default_value_type + ) if not key: - log.warning('FB Python SDK: null feature flag key; returning default value') - return _EvalResult.error(default_value, REASON_FLAG_NOT_FOUND, key, default_value_type) + log.warning( + "FB Python SDK: null feature flag key; returning default value" + ) + return _EvalResult.error( + default_value, REASON_FLAG_NOT_FOUND, key, default_value_type + ) flag = self._get_flag_internal(key) if not flag: - log.warning('FB Python SDK: Unknown feature flag %s; returning default value' % key) - return _EvalResult.error(default_value, REASON_FLAG_NOT_FOUND, key, default_value_type) + log.warning( + "FB Python SDK: Unknown feature flag %s; returning default value" + % key + ) + return _EvalResult.error( + default_value, REASON_FLAG_NOT_FOUND, key, default_value_type + ) try: fb_user = FBUser.from_dict(user) except ValueError as ve: - log.warning('FB Python SDK: %s' % str(ve)) - return _EvalResult.error(default_value, REASON_USER_NOT_SPECIFIED, key, default_value_type) + log.warning("FB Python SDK: %s" % str(ve)) + return _EvalResult.error( + default_value, REASON_USER_NOT_SPECIFIED, key, default_value_type + ) fb_event = FlagEvent(fb_user) er = self._evaluator.evaluate(flag, fb_user, fb_event) @@ -269,8 +336,10 @@ def _evaluate_internal(self, key: str, user: dict, default: Any = None) -> _Eval return er except Exception as e: - log.exception('FB Python SDK: unexpected error in evaluation: %s' % str(e)) - return _EvalResult.error(default_value, REASON_ERROR, key, default_value_type) + log.exception("FB Python SDK: unexpected error in evaluation: %s" % str(e)) + return _EvalResult.error( + default_value, REASON_ERROR, key, default_value_type + ) def variation(self, key: str, user: dict, default: Any = None) -> Any: """Return the variation of a feature flag for a given user. @@ -296,7 +365,7 @@ def variation(self, key: str, user: dict, default: Any = None) -> Any: return cast_variation_by_flag_type(er.flag_type, er.value) def variation_detail(self, key: str, user: dict, default: Any = None) -> EvalDetail: - """"Return the variation of a feature flag for a given user, but also provides additional information + """ "Return the variation of a feature flag for a given user, but also provides additional information about how this value was calculated, in the property `data` of the :class:`fbclient.common_types.EvalDetail`. This method collects an evaluation event if evaluation succeeds and insights are enabled for the flag. @@ -326,7 +395,9 @@ def get_all_latest_flag_variations(self, user: dict) -> AllFlagStates: success = True try: if not self.initialize: - log.warning('FB Python SDK: Evaluation called before Java SDK client initialized for feature flag') + log.warning( + "FB Python SDK: Evaluation called before Java SDK client initialized for feature flag" + ) reason = REASON_CLIENT_NOT_READY success = False else: @@ -338,13 +409,13 @@ def get_all_latest_flag_variations(self, user: dict) -> AllFlagStates: er = self._evaluator.evaluate(flag, fb_user, fb_event) all_flag_details[er.to_evail_detail] = fb_event except ValueError as ve: - log.warning('FB Python SDK: %s' % str(ve)) + log.warning("FB Python SDK: %s" % str(ve)) reason = REASON_USER_NOT_SPECIFIED success = False except: raise except Exception as e: - log.exception('FB Python SDK: unexpected error in evaluation: %s' % str(e)) + log.exception("FB Python SDK: unexpected error in evaluation: %s" % str(e)) reason = REASON_ERROR success = False return AllFlagStates(success, reason, all_flag_details, self._event_handler) @@ -358,11 +429,15 @@ def is_flag_known(self, key: str) -> bool: """ try: if not self.initialize: - log.warning('FB Python SDK: isFlagKnown called before SDK is initialized for feature flag') + log.warning( + "FB Python SDK: isFlagKnown called before SDK is initialized for feature flag" + ) return False return self._get_flag_internal(key) is not None except Exception as e: - log.exception('FB Python SDK: unexpected error in is_flag_known: %s' % str(e)) + log.exception( + "FB Python SDK: unexpected error in is_flag_known: %s" % str(e) + ) return False def flush(self): @@ -377,7 +452,7 @@ def flush(self): if not self._closed: self._event_processor.flush() except Exception: - log.exception('FB Python SDK: event processor flush failed') + log.exception("FB Python SDK: event processor flush failed") def identify(self, user: dict): """register an end user in the feature flag center @@ -387,7 +462,7 @@ def identify(self, user: dict): try: fb_user = FBUser.from_dict(user) except ValueError: - log.warning('FB Python SDK: user invalid') + log.warning("FB Python SDK: user invalid") return self._event_handler(UserEvent(fb_user)) @@ -403,12 +478,12 @@ def track_metric(self, user: dict, event_name: str, metric_value: float = 1.0): :param metric_value: a numeric value used by the experiment, default value is 1.0 """ if not event_name: - log.warning('FB Python SDK: event/metric invalid') + log.warning("FB Python SDK: event/metric invalid") return try: fb_user = FBUser.from_dict(user) except ValueError: - log.warning('FB Python SDK: user invalid') + log.warning("FB Python SDK: user invalid") return metric_event = MetricEvent(fb_user).add(Metric(event_name, metric_value)) @@ -423,12 +498,12 @@ def track_metrics(self, user: dict, metrics: Mapping[str, float]): :param metrics: the pairs of event_name and metric_value """ if not isinstance(metrics, dict): - log.warning('FB Python SDK: metrics invalid') + log.warning("FB Python SDK: metrics invalid") return try: fb_user = FBUser.from_dict(user) except ValueError: - log.warning('FB Python SDK: user invalid') + log.warning("FB Python SDK: user invalid") return metric_event = MetricEvent(fb_user) @@ -447,11 +522,11 @@ def initialize_from_external_json(self, json_str: str) -> bool: if self._config.is_offline: all_data = json.loads(json_str) if valide_all_data(all_data): - version, data = _data_to_dict(all_data['data']) + version, data = _data_to_dict(all_data["data"]) if self._update_status_provider.init(data, version): self._update_status_provider.update_state(State.ok_state()) return True except Exception: - log.exception('FB Python SDK: invalid external bootstrap data') + log.exception("FB Python SDK: invalid external bootstrap data") return False diff --git a/fbclient/common_types.py b/fbclient/common_types.py index cb5ed6c..78bb925 100644 --- a/fbclient/common_types.py +++ b/fbclient/common_types.py @@ -4,21 +4,18 @@ from fbclient.utils import cast_variation_by_flag_type, is_numeric -__BUILTINS_MAPING__ = {'key': 'keyid', - 'name': 'name', - 'keyid': 'keyid'} +__BUILTINS_MAPING__ = {"key": "keyid", "name": "name", "keyid": "keyid"} -__NO_VARIATION__ = 'NE' +__NO_VARIATION__ = "NE" -__FLAG_NOT_FOUND__ = 'flag not found' +__FLAG_NOT_FOUND__ = "flag not found" -__FLAG_KEY_UNKNOWN__ = 'flag key unknown' +__FLAG_KEY_UNKNOWN__ = "flag key unknown" -__FLAG_NAME_UNKNOWN__ = 'flag name unknown' +__FLAG_NAME_UNKNOWN__ = "flag name unknown" class Jsonfy(ABC): - @abstractmethod def to_json_dict(self) -> dict: pass @@ -28,27 +25,32 @@ def to_json_str(self) -> str: class FBUser(Jsonfy): - def __init__(self, key: Optional[str], name: Optional[str], **kwargs): - self._check_argument(key, 'key is not valid') - self._check_argument(name, 'name is not valid') + self._check_argument(key, "key is not valid") + self._check_argument(name, "name is not valid") self._commons = {} - self._commons['keyid'] = key - self._commons['name'] = name + self._commons["keyid"] = key + self._commons["name"] = name self._customs = {} if len(kwargs) > 0: - self._customs \ - .update(dict((k, str(v)) for k, v in kwargs.items() if isinstance(k, str) and k.lower() not in __BUILTINS_MAPING__.keys() - and (isinstance(v, str) or is_numeric(v) or isinstance(v, bool)))) + self._customs.update( + dict( + (k, str(v)) + for k, v in kwargs.items() + if isinstance(k, str) + and k.lower() not in __BUILTINS_MAPING__.keys() + and (isinstance(v, str) or is_numeric(v) or isinstance(v, bool)) + ) + ) @staticmethod def from_dict(user: Dict[str, Any]) -> "FBUser": user_copy = {} if not isinstance(user, dict): - raise ValueError('user is not valid') + raise ValueError("user is not valid") user_copy.update(user) - key = user_copy.pop('key', None) or user_copy.pop('keyid', None) - name = user_copy.pop('name', None) + key = user_copy.pop("key", None) or user_copy.pop("keyid", None) + name = user_copy.pop("name", None) return FBUser(key, name, **user_copy) def _check_argument(self, value, msg) -> bool: @@ -70,9 +72,11 @@ def get(self, prop: str, default=None) -> Optional[str]: def to_json_dict(self) -> dict: json_dict = {} - json_dict['keyId'] = self._commons['keyid'] - json_dict['name'] = self._commons['name'] - json_dict['customizedProperties'] = [{'name': k, 'value': v} for k, v in self._customs.items()] + json_dict["keyId"] = self._commons["keyid"] + json_dict["name"] = self._commons["name"] + json_dict["customizedProperties"] = [ + {"name": k, "value": v} for k, v in self._customs.items() + ] return json_dict @@ -86,12 +90,14 @@ class EvalDetail(Jsonfy): 4: float if the feature flag is a numeric type """ - def __init__(self, - reason: str, - variation: Any, - key_name: Optional[str] = None, - name: Optional[str] = None, - variation_id: Optional[str] = None): + def __init__( + self, + reason: str, + variation: Any, + key_name: Optional[str] = None, + name: Optional[str] = None, + variation_id: Optional[str] = None, + ): """Constructs an instance. :param reason: main factor that influenced the flag evaluation value @@ -108,8 +114,7 @@ def __init__(self, @property def reason(self) -> str: - """A string describing the main factor that influenced the flag evaluation value. - """ + """A string describing the main factor that influenced the flag evaluation value.""" return self._reason @property @@ -121,34 +126,30 @@ def variation(self) -> Any: @property def key_name(self) -> Optional[str]: - """The flag key name - """ + """The flag key name""" return self._key_name @property def name(self) -> Optional[str]: - """The flag name - """ + """The flag name""" return self._name @property def variation_id(self) -> Optional[str]: - """The stable identifier of the resolved variation, if evaluation succeeded. - """ + """The stable identifier of the resolved variation, if evaluation succeeded.""" return self._variation_id def to_json_dict(self) -> dict: json_dict = {} - json_dict['reason'] = self.reason - json_dict['variation'] = self.variation - json_dict['keyName'] = self.key_name - json_dict['name'] = self.name + json_dict["reason"] = self.reason + json_dict["variation"] = self.variation + json_dict["keyName"] = self.key_name + json_dict["name"] = self.name return json_dict class BasicFlagState: - """Abstract class representing flag state after feature flag evaluaion - """ + """Abstract class representing flag state after feature flag evaluaion""" def __init__(self, success: bool, reason: str): """Constructs an instance. @@ -157,18 +158,16 @@ def __init__(self, success: bool, reason: str): :param reason: the state of last evaluation; the value is OK if successful """ self._success = success - self._reason = 'OK' if success else reason + self._reason = "OK" if success else reason @property def success(self) -> bool: - """Returns true if last evaluation was successful - """ + """Returns true if last evaluation was successful""" return self._success @property def reason(self) -> str: - """reason the state of last evaluation; the value is OK if successful - """ + """reason the state of last evaluation; the value is OK if successful""" return self._reason @@ -199,9 +198,11 @@ def data(self) -> EvalDetail: return self._data def to_json_dict(self) -> dict: - return {'success': self.success, - 'reason': self.reason, - 'data': self._data.to_json_dict() if self._data else None} + return { + "success": self.success, + "reason": self.reason, + "data": self._data.to_json_dict() if self._data else None, + } class AllFlagStates(BasicFlagState, Jsonfy): @@ -209,9 +210,13 @@ class AllFlagStates(BasicFlagState, Jsonfy): :func:`get(key_name)` to get the state for a given feature flag key """ - def __init__(self, success: bool, reason: str, - data: Mapping[EvalDetail, "FBEvent"], - event_handler: Callable[["FBEvent"], None]): + def __init__( + self, + success: bool, + reason: str, + data: Mapping[EvalDetail, "FBEvent"], + event_handler: Callable[["FBEvent"], None], + ): """Constructs an instance. :param success: True if successful @@ -220,7 +225,11 @@ def __init__(self, success: bool, reason: str, :event_handler: callback function used to send events to feature flag center """ super().__init__(success, reason) - self._data = dict((ed.key_name, (ed, fb_event)) for ed, fb_event in data.items()) if data else {} + self._data = ( + dict((ed.key_name, (ed, fb_event)) for ed, fb_event in data.items()) + if data + else {} + ) self._event_handler = event_handler def keys(self): @@ -254,15 +263,25 @@ def get(self, key_name: str, default: Any = None) -> EvalDetail: ed, fb_event = self._data.get(key_name, (None, False)) if self._event_handler and fb_event: self._event_handler(fb_event) - return ed if ed is not None else EvalDetail(reason=__FLAG_NOT_FOUND__, - variation=default, - key_name=key_name, - name=__FLAG_NAME_UNKNOWN__) + return ( + ed + if ed is not None + else EvalDetail( + reason=__FLAG_NOT_FOUND__, + variation=default, + key_name=key_name, + name=__FLAG_NAME_UNKNOWN__, + ) + ) def to_json_dict(self) -> dict: - return {'success': self.success, - 'message': self.reason, - 'data': [ed.to_json_dict() for ed, _ in self._data.values()] if self._data else []} + return { + "success": self.success, + "message": self.reason, + "data": [ed.to_json_dict() for ed, _ in self._data.values()] + if self._data + else [], + } class FBEvent(Jsonfy, ABC): @@ -270,7 +289,7 @@ def __init__(self, user: "FBUser"): self._user = user @abstractmethod - def add(self, *elements) -> 'FBEvent': + def add(self, *elements) -> "FBEvent": pass @property @@ -280,14 +299,15 @@ def is_send_event(self) -> bool: class _EvalResult: - - def __init__(self, - id: str, - value: Optional[str], - reason: str, - key_name: Optional[str] = None, - name: Optional[str] = None, - flag_type: Optional[str] = 'string'): + def __init__( + self, + id: str, + value: Optional[str], + reason: str, + key_name: Optional[str] = None, + name: Optional[str] = None, + flag_type: Optional[str] = "string", + ): self.__id = id self.__value = value @@ -297,8 +317,20 @@ def __init__(self, self.__flag_type = flag_type @staticmethod - def error(default_value: Optional[str], reason: str, key_name: Optional[str] = None, flag_type: Optional[str] = 'string'): - return _EvalResult(__NO_VARIATION__, default_value, reason, key_name if key_name else __FLAG_KEY_UNKNOWN__, __FLAG_NAME_UNKNOWN__, flag_type) + def error( + default_value: Optional[str], + reason: str, + key_name: Optional[str] = None, + flag_type: Optional[str] = "string", + ): + return _EvalResult( + __NO_VARIATION__, + default_value, + reason, + key_name if key_name else __FLAG_KEY_UNKNOWN__, + __FLAG_NAME_UNKNOWN__, + flag_type, + ) @property def id(self) -> str: @@ -332,7 +364,9 @@ def is_success(self) -> bool: def to_evail_detail(self) -> "EvalDetail": _value = cast_variation_by_flag_type(self.__flag_type, self.__value) variation_id = self.__id if self.is_success else None - return EvalDetail(self.__reason, _value, self.__key_name, self.__name, variation_id) + return EvalDetail( + self.__reason, _value, self.__key_name, self.__name, variation_id + ) @property def to_flag_state(self) -> "FlagState": diff --git a/fbclient/config.py b/fbclient/config.py index f68d7f7..40fa992 100644 --- a/fbclient/config.py +++ b/fbclient/config.py @@ -3,11 +3,16 @@ from typing import Any, Callable, Dict, Optional, Tuple from fbclient.data_storage import InMemoryDataStorage -from fbclient.interfaces import (DataStorage, DataUpdateStatusProvider, - EventProcessor, Sender, UpdateProcessor) +from fbclient.interfaces import ( + DataStorage, + DataUpdateStatusProvider, + EventProcessor, + Sender, + UpdateProcessor, +) from fbclient.utils import is_ascii, is_url -__all__ = ['Config', 'HTTPConfig', 'WebSocketConfig'] +__all__ = ["Config", "HTTPConfig", "WebSocketConfig"] try: # https://websocket-client.readthedocs.io/en/latest/faq.html#why-is-this-library-slow @@ -16,6 +21,7 @@ def _skip_utf8_validation(): # type: ignore return False except ImportError: + def _skip_utf8_validation(): return True @@ -26,13 +32,15 @@ class WebSocketConfig: FBClient websocket supports ssl connection, please read the details in https://websocket-client.readthedocs.io/en/latest/faq.html#what-else-can-i-do-with-sslopts """ - def __init__(self, - timeout: float = 5.0, - sslopt: Optional[Dict[str, Any]] = None, - proxy_type: Optional[str] = None, - proxy_host: Optional[str] = None, - proxy_port: Optional[str] = None, - proxy_auth: Optional[Tuple[str, str]] = None): + def __init__( + self, + timeout: float = 5.0, + sslopt: Optional[Dict[str, Any]] = None, + proxy_type: Optional[str] = None, + proxy_host: Optional[str] = None, + proxy_port: Optional[str] = None, + proxy_auth: Optional[Tuple[str, str]] = None, + ): # a timeout is triggered if no connection response is received from the server after the timeout interval self.__timeout = 5.0 if timeout is None or timeout <= 0 else min(timeout, 10.0) self.__sslopt = sslopt @@ -71,18 +79,23 @@ def proxy_auth(self) -> Optional[Tuple[str, str]]: class HTTPConfig: - - def __init__(self, - connect_timeout: float = 5.0, - read_timeout: float = 10.0, - http_proxy: Optional[str] = None, - http_proxy_auth: Optional[Tuple[str, str]] = None, - ca_certs: Optional[str] = None, - cert_file: Optional[str] = None, - disable_ssl_verification: bool = False): - - self.__connect_timeout = 5.0 if connect_timeout is None or connect_timeout <= 0 else connect_timeout - self.__read_timeout = 10.0 if read_timeout is None or read_timeout <= 0 else read_timeout + def __init__( + self, + connect_timeout: float = 5.0, + read_timeout: float = 10.0, + http_proxy: Optional[str] = None, + http_proxy_auth: Optional[Tuple[str, str]] = None, + ca_certs: Optional[str] = None, + cert_file: Optional[str] = None, + disable_ssl_verification: bool = False, + ): + + self.__connect_timeout = ( + 5.0 if connect_timeout is None or connect_timeout <= 0 else connect_timeout + ) + self.__read_timeout = ( + 10.0 if read_timeout is None or read_timeout <= 0 else read_timeout + ) self.__http_proxy = http_proxy self.__http_proxy_auth = http_proxy_auth self.__ca_certs = ca_certs @@ -119,69 +132,95 @@ def disable_ssl_verification(self) -> bool: class Config: - - __STREAMING_PATH = '/streaming' - __EVENTS_PATH = '/api/public/insight/track' - - def __init__(self, - env_secret: str, - event_url: str, - streaming_url: str, - streaming_first_retry_delay: float = 1.0, - events_max_in_queue: int = 10000, - events_flush_interval: float = 1.0, - events_retry_interval: float = 0.1, - events_max_retries: int = 1, - offline: bool = False, - data_storage: Optional[DataStorage] = None, - update_processor_imp: Optional[Callable[['Config', DataUpdateStatusProvider, Event], UpdateProcessor]] = None, - event_processor_imp: Optional[Callable[['Config', Sender], EventProcessor]] = None, - http: Optional[HTTPConfig] = None, - websocket: Optional[WebSocketConfig] = None, - defaults: Optional[dict] = None): + __STREAMING_PATH = "/streaming" + __EVENTS_PATH = "/api/public/insight/track" + + def __init__( + self, + env_secret: str, + event_url: str, + streaming_url: str, + streaming_first_retry_delay: float = 1.0, + events_max_in_queue: int = 10000, + events_flush_interval: float = 1.0, + events_retry_interval: float = 0.1, + events_max_retries: int = 1, + offline: bool = False, + data_storage: Optional[DataStorage] = None, + update_processor_imp: Optional[ + Callable[["Config", DataUpdateStatusProvider, Event], UpdateProcessor] + ] = None, + event_processor_imp: Optional[ + Callable[["Config", Sender], EventProcessor] + ] = None, + http: Optional[HTTPConfig] = None, + websocket: Optional[WebSocketConfig] = None, + defaults: Optional[dict] = None, + ): self.__env_secret = env_secret - self.__event_url = event_url.rstrip('/') - self.__streaming_url = streaming_url.rstrip('/') - self.__streaming_first_retry_delay = 1.0 if streaming_first_retry_delay is None or streaming_first_retry_delay <= 0 else min( - streaming_first_retry_delay, 60.0) + self.__event_url = event_url.rstrip("/") + self.__streaming_url = streaming_url.rstrip("/") + self.__streaming_first_retry_delay = ( + 1.0 + if streaming_first_retry_delay is None or streaming_first_retry_delay <= 0 + else min(streaming_first_retry_delay, 60.0) + ) self.__offline = offline - self.__data_storage = data_storage if data_storage is not None else InMemoryDataStorage() + self.__data_storage = ( + data_storage if data_storage is not None else InMemoryDataStorage() + ) self.__event_processor_imp = event_processor_imp self.__update_processor_imp = update_processor_imp - self.__events_max_in_queue = 10000 if events_max_in_queue is None or events_max_in_queue <= 0 else events_max_in_queue - self.__events_flush_interval = 1.0 if events_flush_interval is None or events_flush_interval <= 0 else min( - events_flush_interval, 3.0) - self.__events_retry_interval = 0.1 if events_retry_interval is None or events_retry_interval <= 0 else min( - events_retry_interval, 1) - self.__events_max_retries = 1 if events_max_retries is None or events_max_retries <= 0 else min( - events_max_retries, 3) + self.__events_max_in_queue = ( + 10000 + if events_max_in_queue is None or events_max_in_queue <= 0 + else events_max_in_queue + ) + self.__events_flush_interval = ( + 1.0 + if events_flush_interval is None or events_flush_interval <= 0 + else min(events_flush_interval, 3.0) + ) + self.__events_retry_interval = ( + 0.1 + if events_retry_interval is None or events_retry_interval <= 0 + else min(events_retry_interval, 1) + ) + self.__events_max_retries = ( + 1 + if events_max_retries is None or events_max_retries <= 0 + else min(events_max_retries, 3) + ) # Avoid sharing mutable default configuration objects between SDK # clients created by unrelated applications or tests. self.__http = http if http is not None else HTTPConfig() self.__websocket = websocket if websocket is not None else WebSocketConfig() self.__defaults = deepcopy(defaults) if defaults is not None else {} - def copy_config_in_a_new_env(self, env_secret: str, defaults=None, - data_storage: Optional[DataStorage] = None) -> 'Config': - return Config(env_secret, - event_url=self.__event_url, - streaming_url=self.__streaming_url, - streaming_first_retry_delay=self.__streaming_first_retry_delay, - events_max_in_queue=self.__events_max_in_queue, - events_flush_interval=self.__events_flush_interval, - events_retry_interval=self.__events_retry_interval, - events_max_retries=self.__events_max_retries, - offline=self.__offline, - # Environment data must never leak between clients. A - # caller that intentionally wants a custom store can - # still provide one explicitly. - data_storage=data_storage, - update_processor_imp=self.__update_processor_imp, - event_processor_imp=self.__event_processor_imp, - http=deepcopy(self.__http), - websocket=deepcopy(self.__websocket), - defaults=defaults if defaults is not None else self.__defaults) + def copy_config_in_a_new_env( + self, env_secret: str, defaults=None, data_storage: Optional[DataStorage] = None + ) -> "Config": + return Config( + env_secret, + event_url=self.__event_url, + streaming_url=self.__streaming_url, + streaming_first_retry_delay=self.__streaming_first_retry_delay, + events_max_in_queue=self.__events_max_in_queue, + events_flush_interval=self.__events_flush_interval, + events_retry_interval=self.__events_retry_interval, + events_max_retries=self.__events_max_retries, + offline=self.__offline, + # Environment data must never leak between clients. A + # caller that intentionally wants a custom store can + # still provide one explicitly. + data_storage=data_storage, + update_processor_imp=self.__update_processor_imp, + event_processor_imp=self.__event_processor_imp, + http=deepcopy(self.__http), + websocket=deepcopy(self.__websocket), + defaults=defaults if defaults is not None else self.__defaults, + ) def get_default_value(self, key, default=None) -> Any: return self.__defaults.get(key, default) @@ -244,6 +283,6 @@ def websocket(self) -> WebSocketConfig: def validate(self): if not is_ascii(self.__env_secret): - raise ValueError('env secret is invalid') + raise ValueError("env secret is invalid") elif not is_url(self.__streaming_url) or not is_url(self.__event_url): - raise ValueError('streaming or event url is invalid') + raise ValueError("streaming or event url is invalid") diff --git a/fbclient/data_storage.py b/fbclient/data_storage.py index 28cc6da..e6f2a59 100644 --- a/fbclient/data_storage.py +++ b/fbclient/data_storage.py @@ -7,7 +7,6 @@ class InMemoryDataStorage(DataStorage): - def __init__(self): self.__rw_lock = ReadWriteLock() self.__initialized = False @@ -20,7 +19,7 @@ def get(self, kind: Category, key: str) -> Optional[dict]: self.__rw_lock.read_lock() keyItems = self.__storage.get(kind, {}) item = keyItems.get(key, None) - if (item is None) or item['isArchived']: + if (item is None) or item["isArchived"]: return None return item finally: @@ -30,11 +29,13 @@ def get_all(self, kind: Category) -> Mapping[str, dict]: try: self.__rw_lock.read_lock() keyItems = self.__storage.get(kind, {}) - return dict((k, v) for k, v in keyItems.items() if not v['isArchived']) + return dict((k, v) for k, v in keyItems.items() if not v["isArchived"]) finally: self.__rw_lock.release_read_lock() - def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0) -> bool: + def init( + self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 + ) -> bool: if (not all_data) or not isinstance(version, int) or version < 0: return False snapshot_is_empty = not any(bool(items) for items in all_data.values()) @@ -46,10 +47,11 @@ def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 try: self.__rw_lock.write_lock() if self.__initialized: - if (version == self.__version == 0 - and snapshot_is_empty - and not any(bool(items) - for items in self.__storage.values())): + if ( + version == self.__version == 0 + and snapshot_is_empty + and not any(bool(items) for items in self.__storage.values()) + ): # Empty environments repeatedly send the same version-zero # full snapshot after reconnecting. Treat it as an accepted # no-op instead of forcing another reconnect. @@ -65,7 +67,13 @@ def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 self.__rw_lock.release_write_lock() def upsert(self, kind: Category, key: str, item: dict, version: int = 0) -> bool: - if (not kind) or (not item) or (not key) or not isinstance(version, int) or version <= 0: + if ( + (not kind) + or (not item) + or (not key) + or not isinstance(version, int) + or version <= 0 + ): return False try: self.__rw_lock.write_lock() @@ -74,7 +82,7 @@ def upsert(self, kind: Category, key: str, item: dict, version: int = 0) -> bool # Patches are versioned per entity. Comparing with the global # latest version would incorrectly discard a different flag or # segment that happens to have the same timestamp. - if v is not None and v.get('timestamp', 0) >= version: + if v is not None and v.get("timestamp", 0) >= version: return False keyItems[key] = item self.__version = max(self.__version, version) @@ -105,14 +113,15 @@ def stop(self): class NullDataStorage(DataStorage): - def get(self, kind: Category, key: str) -> Optional[dict]: return None def get_all(self, kind: Category) -> Mapping[str, dict]: return dict() - def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0) -> bool: + def init( + self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 + ) -> bool: return True def upsert(self, kind: Category, key: str, item: dict, version: int = 0) -> bool: diff --git a/fbclient/evaluator.py b/fbclient/evaluator.py index f47bb02..0196234 100644 --- a/fbclient/evaluator.py +++ b/fbclient/evaluator.py @@ -5,85 +5,92 @@ from fbclient.common_types import FBEvent, FBUser, _EvalResult from fbclient.event_types import FlagEventVariation from fbclient.utils import is_numeric, log -from fbclient.utils.variation_splitting_algorithm import \ - VariationSplittingAlgorithm +from fbclient.utils.variation_splitting_algorithm import VariationSplittingAlgorithm -REASON_CLIENT_NOT_READY = 'client not ready' +REASON_CLIENT_NOT_READY = "client not ready" -REASON_FLAG_NOT_FOUND = 'flag not found' +REASON_FLAG_NOT_FOUND = "flag not found" -REASON_ERROR = 'error in evaluation' +REASON_ERROR = "error in evaluation" -REASON_USER_NOT_SPECIFIED = 'user not specified' +REASON_USER_NOT_SPECIFIED = "user not specified" -REASON_WRONG_TYPE = 'wrong type' +REASON_WRONG_TYPE = "wrong type" -REASON_FLAG_OFF = 'flag off' +REASON_FLAG_OFF = "flag off" -REASON_PREREQUISITE_FAILED = 'prerequisite failed' +REASON_PREREQUISITE_FAILED = "prerequisite failed" -REASON_TARGET_MATCH = 'target match' +REASON_TARGET_MATCH = "target match" -REASON_RULE_MATCH = 'rule match' +REASON_RULE_MATCH = "rule match" -REASON_FALLTHROUGH = 'fall through all rules' +REASON_FALLTHROUGH = "fall through all rules" -__THAN_CLAUSE__ = 'Than' +__THAN_CLAUSE__ = "Than" -__GE_CLAUSE__ = 'BiggerEqualThan' +__GE_CLAUSE__ = "BiggerEqualThan" -__GT_CLAUSE__ = 'BiggerThan' +__GT_CLAUSE__ = "BiggerThan" -__LE_CLAUSE__ = 'LessEqualThan' +__LE_CLAUSE__ = "LessEqualThan" -__LT_CLAUSE__ = 'LessThan' +__LT_CLAUSE__ = "LessThan" -__EQ_CLAUSE__ = 'Equal' +__EQ_CLAUSE__ = "Equal" -__NEQ_CLAUSE__ = 'NotEqual' +__NEQ_CLAUSE__ = "NotEqual" -__CONTAINS_CLAUSE__ = 'Contains' +__CONTAINS_CLAUSE__ = "Contains" -__NOT_CONTAIN_CLAUSE__ = 'NotContain' +__NOT_CONTAIN_CLAUSE__ = "NotContain" -__IS_ONE_OF_CLAUSE__ = 'IsOneOf' +__IS_ONE_OF_CLAUSE__ = "IsOneOf" -__NOT_ONE_OF_CLAUSE__ = 'NotOneOf' +__NOT_ONE_OF_CLAUSE__ = "NotOneOf" -__STARTS_WITH_CLAUSE__ = 'StartsWith' +__STARTS_WITH_CLAUSE__ = "StartsWith" -__ENDS_WITH_CLAUSE__ = 'EndsWith' +__ENDS_WITH_CLAUSE__ = "EndsWith" -__IS_TRUE_CLAUSE__ = 'IsTrue' +__IS_TRUE_CLAUSE__ = "IsTrue" -__IS_FALSE_CLAUSE__ = 'IsFalse' +__IS_FALSE_CLAUSE__ = "IsFalse" -__MATCH_REGEX_CLAUSE__ = 'MatchRegex' +__MATCH_REGEX_CLAUSE__ = "MatchRegex" -__NOT_MATCH_REGEX_CLAUSE__ = 'NotMatchRegex' +__NOT_MATCH_REGEX_CLAUSE__ = "NotMatchRegex" -__IS_IN_SEGMENT_CLAUSE__ = 'User is in segment' +__IS_IN_SEGMENT_CLAUSE__ = "User is in segment" -__NOT_IN_SEGMENT_CLAUSE__ = 'User is not in segment' +__NOT_IN_SEGMENT_CLAUSE__ = "User is not in segment" class Evaluator: - def __init__(self, - flag_getter: Callable[[str], Optional[dict]], - segment_getter: Callable[[str], Optional[dict]]): + def __init__( + self, + flag_getter: Callable[[str], Optional[dict]], + segment_getter: Callable[[str], Optional[dict]], + ): self.__flag_getter = flag_getter self.__segment_getter = segment_getter - self.__ops = [self._match_feature_flag_disabled_user_variation, - self._match_targeted_user_variation, - self._match_condition_user_variation, - self._match_default_user_variation] - - def evaluate(self, flag: dict, user: FBUser, fb_event: Optional[FBEvent] = None) -> _EvalResult: + self.__ops = [ + self._match_feature_flag_disabled_user_variation, + self._match_targeted_user_variation, + self._match_condition_user_variation, + self._match_default_user_variation, + ] + + def evaluate( + self, flag: dict, user: FBUser, fb_event: Optional[FBEvent] = None + ) -> _EvalResult: if not flag or not user: - raise ValueError('null flag or empty user') + raise ValueError("null flag or empty user") return self._match_user_variation(flag, user, fb_event) # type: ignore - def _match_user_variation(self, flag: dict, user: FBUser, fb_event: Optional[FBEvent] = None) -> Optional[_EvalResult]: + def _match_user_variation( + self, flag: dict, user: FBUser, fb_event: Optional[FBEvent] = None + ) -> Optional[_EvalResult]: er = None try: for op in self.__ops: @@ -92,64 +99,80 @@ def _match_user_variation(self, flag: dict, user: FBUser, fb_event: Optional[FBE return er finally: if er is not None: - log.info('FB Python SDK: User %s, Feature Flag %s, Flag Value %s' % (user.get('KeyId'), er.key_name, er.value)) + log.info( + "FB Python SDK: User %s, Feature Flag %s, Flag Value %s" + % (user.get("KeyId"), er.key_name, er.value) + ) # Match the server default: only an explicit boolean false # disables insights; evaluation stays unchanged. - if fb_event is not None and flag.get('insightsEnabled') is not False: + if fb_event is not None and flag.get("insightsEnabled") is not False: fb_event.add(FlagEventVariation(er)) # return a value when flag is off - def _match_feature_flag_disabled_user_variation(self, flag: dict, user: FBUser) -> Optional[_EvalResult]: - if not flag['isEnabled']: - return _EvalResult(flag['disabledVariationId'], - flag['variationMap'][flag['disabledVariationId']], - REASON_FLAG_OFF, - flag['key'], - flag['name'], - flag['variationType']) + def _match_feature_flag_disabled_user_variation( + self, flag: dict, user: FBUser + ) -> Optional[_EvalResult]: + if not flag["isEnabled"]: + return _EvalResult( + flag["disabledVariationId"], + flag["variationMap"][flag["disabledVariationId"]], + REASON_FLAG_OFF, + flag["key"], + flag["name"], + flag["variationType"], + ) return None # return the value of target user - def _match_targeted_user_variation(self, flag: dict, user: FBUser) -> Optional[_EvalResult]: - for target in flag['targetUsers']: - if any(key_id == user.get('keyid') for key_id in target['keyIds']): - return _EvalResult(target['variationId'], - flag['variationMap'][target['variationId']], - REASON_TARGET_MATCH, - flag['key'], - flag['name'], - flag['variationType']) + def _match_targeted_user_variation( + self, flag: dict, user: FBUser + ) -> Optional[_EvalResult]: + for target in flag["targetUsers"]: + if any(key_id == user.get("keyid") for key_id in target["keyIds"]): + return _EvalResult( + target["variationId"], + flag["variationMap"][target["variationId"]], + REASON_TARGET_MATCH, + flag["key"], + flag["name"], + flag["variationType"], + ) return None # return the value of matched rule - def _match_condition_user_variation(self, flag: dict, user: FBUser) -> Optional[_EvalResult]: - for rule in flag['rules']: + def _match_condition_user_variation( + self, flag: dict, user: FBUser + ) -> Optional[_EvalResult]: + for rule in flag["rules"]: if self._match_any_rule(user, rule): - return self._get_rollout_variation_option(flag, - rule, - user, - REASON_RULE_MATCH, - flag['key'], - flag['name']) + return self._get_rollout_variation_option( + flag, rule, user, REASON_RULE_MATCH, flag["key"], flag["name"] + ) return None # get value from default rule - def _match_default_user_variation(self, flag: dict, user: FBUser) -> Optional[_EvalResult]: - return self._get_rollout_variation_option(flag, - flag['fallthrough'], - user, - REASON_FALLTHROUGH, - flag['key'], - flag['name']) + def _match_default_user_variation( + self, flag: dict, user: FBUser + ) -> Optional[_EvalResult]: + return self._get_rollout_variation_option( + flag, + flag["fallthrough"], + user, + REASON_FALLTHROUGH, + flag["key"], + flag["name"], + ) def _match_any_rule(self, user: FBUser, rule: dict) -> bool: # conditions cannot be empty - return all(self._process_condition(user, condition) for condition in rule['conditions']) + return all( + self._process_condition(user, condition) for condition in rule["conditions"] + ) def _process_condition(self, user: FBUser, condition: dict) -> bool: - op = condition['op'] + op = condition["op"] # segment hasn't any operation - op = condition['property'] if not op else op + op = condition["property"] if not op else op if __THAN_CLAUSE__ in str(op): return self._than(user, condition) elif op == __EQ_CLAUSE__: @@ -184,11 +207,11 @@ def _process_condition(self, user: FBUser, condition: dict) -> bool: return False def _than(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - if not is_numeric(pv) or not is_numeric(condition['value']): + pv = user.get(condition["property"]) + if not is_numeric(pv) or not is_numeric(condition["value"]): return False - pv_num, cv_num = round(float(pv), 5), round(float(condition['value']), 5) # type: ignore - op = condition['op'] + pv_num, cv_num = round(float(pv), 5), round(float(condition["value"]), 5) # type: ignore + op = condition["op"] if op == __GE_CLAUSE__: return pv_num >= cv_num elif op == __GT_CLAUSE__: @@ -201,79 +224,92 @@ def _than(self, user: FBUser, condition: dict) -> bool: return False def _equals(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - cv = condition['value'] + pv = user.get(condition["property"]) + cv = condition["value"] return pv is not None and cv is not None and str(pv) == str(cv) def _contains(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - cv = condition['value'] + pv = user.get(condition["property"]) + cv = condition["value"] return pv is not None and cv is not None and str(cv) in str(pv) def _one_of(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) + pv = user.get(condition["property"]) try: - cv = json.loads(condition['value']) + cv = json.loads(condition["value"]) return pv is not None and cv is not None and str(pv) in cv except: return False def _starts_with(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - cv = condition['value'] + pv = user.get(condition["property"]) + cv = condition["value"] return pv is not None and cv is not None and str(pv).startswith(str(cv)) def _ends_with(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - cv = condition['value'] + pv = user.get(condition["property"]) + cv = condition["value"] return pv is not None and cv is not None and str(pv).endswith(str(cv)) def _true(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - return pv is not None and str(pv).lower() == 'true' + pv = user.get(condition["property"]) + return pv is not None and str(pv).lower() == "true" def _false(self, user: FBUser, condition: dict) -> bool: - pv = user.get(condition['property']) - return pv is not None and str(pv).lower() == 'false' + pv = user.get(condition["property"]) + return pv is not None and str(pv).lower() == "false" def _match_reg_exp(self, user: FBUser, clause: dict) -> bool: - pv = user.get(clause['property']) - cv = clause['value'] - return pv is not None and cv is not None and re.search(str(cv), str(pv)) is not None + pv = user.get(clause["property"]) + cv = clause["value"] + return ( + pv is not None + and cv is not None + and re.search(str(cv), str(pv)) is not None + ) def _in_segment(self, user: FBUser, condition: dict) -> bool: def match_segment(user: FBUser, segment: Optional[dict]) -> bool: if not user or not segment: return False - user_key = user.get('keyid') - if user_key in segment['excluded']: + user_key = user.get("keyid") + if user_key in segment["excluded"]: return False - if user_key in segment['included']: + if user_key in segment["included"]: return True - return any(self._match_any_rule(user, rule) for rule in segment['rules']) + return any(self._match_any_rule(user, rule) for rule in segment["rules"]) + try: - cv = json.loads(condition['value']) - return cv and any(match_segment(user, self.__segment_getter(sgid)) for sgid in cv) + cv = json.loads(condition["value"]) + return cv and any( + match_segment(user, self.__segment_getter(sgid)) for sgid in cv + ) except: return False - def _get_rollout_variation_option(self, - flag: dict, - rollout_variations: dict, - user: FBUser, - reason: str, - key_name: str, - name: str) -> Optional[_EvalResult]: - - dispatch_key = rollout_variations.get('dispatchKey') - dispatch_key = dispatch_key if dispatch_key else 'keyid' - dispatch_key_value = "".join((flag['key'], user.get(dispatch_key, ""))) # type: ignore - for rollout in rollout_variations['variations']: - if VariationSplittingAlgorithm(dispatch_key_value, rollout['rollout']).is_key_belongs_to_percentage(): # type: ignore - return _EvalResult(rollout['id'], - flag['variationMap'][rollout['id']], - reason, - key_name, - name, - flag['variationType']) + def _get_rollout_variation_option( + self, + flag: dict, + rollout_variations: dict, + user: FBUser, + reason: str, + key_name: str, + name: str, + ) -> Optional[_EvalResult]: + + dispatch_key = rollout_variations.get("dispatchKey") + dispatch_key = dispatch_key if dispatch_key else "keyid" + dispatch_key_value = "".join((flag["key"], user.get(dispatch_key, ""))) # type: ignore + for rollout in rollout_variations["variations"]: + if VariationSplittingAlgorithm( + dispatch_key_value, rollout["rollout"] + ).is_key_belongs_to_percentage(): # type: ignore + return _EvalResult( + rollout["id"], + flag["variationMap"][rollout["id"]], + reason, + key_name, + name, + flag["variationType"], + ) return None diff --git a/fbclient/event_processor.py b/fbclient/event_processor.py index ae6bff2..0a03726 100644 --- a/fbclient/event_processor.py +++ b/fbclient/event_processor.py @@ -6,13 +6,17 @@ from fbclient.common_types import FBEvent from fbclient.config import Config -from fbclient.event_types import (EventMessage, FlagEvent, MessageType, - MetricEvent, UserEvent) +from fbclient.event_types import ( + EventMessage, + FlagEvent, + MessageType, + MetricEvent, + UserEvent, +) from fbclient.interfaces import EventProcessor, Sender from fbclient.utils import log from fbclient.utils.repeatable_task import RepeatableTask - _THREAD_JOIN_TIMEOUT_SECONDS = 5.0 @@ -23,9 +27,11 @@ def __init__(self, config: Config, sender: Sender): self.__lock = Lock() self.__dispatcher = EventDispatcher(config, sender, self.__inbox) self.__dispatcher.start() - self.__flush_task = RepeatableTask('featbit-insight-flush', config.events_flush_interval, self.flush) + self.__flush_task = RepeatableTask( + "featbit-insight-flush", config.events_flush_interval, self.flush + ) self.__flush_task.start() - log.debug('insight processor is ready') + log.debug("insight processor is ready") def __enter__(self): return self @@ -45,18 +51,22 @@ def __put_message_to_inbox(self, message: EventMessage) -> bool: # if it reaches here, it means the application is probably doing tons of flag # evaluations across many threads -- so if we wait for a space in the inbox, we risk a very serious slowdown # of the app. To avoid that, we'll just drop the event or you can increase the capacity of inbox - log.warning('FB Python SDK: Events are being produced faster than they can be processed; some events will be dropped') + log.warning( + "FB Python SDK: Events are being produced faster than they can be processed; some events will be dropped" + ) return False def __put_message_async(self, type: MessageType, event: Optional[FBEvent] = None): message = EventMessage(type, event, False) if self.__put_message_to_inbox(message): - log.trace('put %s message to inbox' % str(type)) # type: ignore + log.trace("put %s message to inbox" % str(type)) # type: ignore - def __put_message_and_wait_terminate(self, type: MessageType, event: Optional[FBEvent] = None): + def __put_message_and_wait_terminate( + self, type: MessageType, event: Optional[FBEvent] = None + ): message = EventMessage(type, event, True) if self.__put_message_to_inbox(message): - log.debug('put %s WaitTermination message to inbox' % str(type)) + log.debug("put %s WaitTermination message to inbox" % str(type)) message.waitForComplete() def send_event(self, event: FBEvent): @@ -69,7 +79,7 @@ def send_event(self, event: FBEvent): elif isinstance(event, UserEvent): self.__put_message_async(MessageType.USER, event) else: - log.debug('ignore unknown event type') + log.debug("ignore unknown event type") def flush(self): with self.__lock: @@ -83,7 +93,7 @@ def stop(self): # Close the producer gate atomically so no application thread can # append an event behind the shutdown marker. self.__closed = True - log.info('FB Python SDK: event processor is stopping') + log.info("FB Python SDK: event processor is stopping") self.__flush_task.stop() if current_thread() is self.__dispatcher: # A synchronous shutdown message cannot be consumed while this @@ -98,23 +108,24 @@ def stop(self): self.__put_message_and_wait_terminate(MessageType.SHUTDOWN) self.__dispatcher.join(_THREAD_JOIN_TIMEOUT_SECONDS) if self.__dispatcher.is_alive(): - log.warning('FB Python SDK: event dispatcher did not stop in time') + log.warning("FB Python SDK: event dispatcher did not stop in time") class EventDispatcher(Thread): - __MAX_FLUSH_WORKERS_NUMBER = 5 __BATCH_SIZE = 50 def __init__(self, config: Config, sender: Sender, inbox: "Queue[EventMessage]"): - super().__init__(name='featbit-event-dispatcher', daemon=True) + super().__init__(name="featbit-event-dispatcher", daemon=True) self.__config = config self.__inbox = inbox self.__closed = False self.__shutdown_requested = Event() self.__sender = sender self.__events_buffer_to_next_flush = [] - self.__flush_workers = ThreadPoolExecutor(max_workers=self.__MAX_FLUSH_WORKERS_NUMBER) + self.__flush_workers = ThreadPoolExecutor( + max_workers=self.__MAX_FLUSH_WORKERS_NUMBER + ) self.__permits = BoundedSemaphore(value=self.__MAX_FLUSH_WORKERS_NUMBER) self.__lock = Condition(Lock()) @@ -123,14 +134,18 @@ def __init__(self, config: Config, sender: Sender, inbox: "Queue[EventMessage]") # 2: try to flush events to featureflag if a flush message arrives # 3: wait for releasing resources if a shutdown arrives def run(self): - log.debug('event dispatcher is working...') + log.debug("event dispatcher is working...") while True: try: msgs = self.__drain_inbox(size=self.__BATCH_SIZE) for msg in msgs: shutdown = False try: - if msg.type == MessageType.FLAGS or msg.type == MessageType.METRICS or msg.type == MessageType.USER: + if ( + msg.type == MessageType.FLAGS + or msg.type == MessageType.METRICS + or msg.type == MessageType.USER + ): self.__put_events_to_buffer(msg.event) # type: ignore elif msg.type == MessageType.FLUSH: self.__trigger_flush() @@ -138,7 +153,10 @@ def run(self): self.__shutdown() shutdown = True except Exception as inner: - log.exception('FB Python SDK: unexpected error in event dispatcher: %s' % str(inner)) + log.exception( + "FB Python SDK: unexpected error in event dispatcher: %s" + % str(inner) + ) finally: # Synchronous callers must never wait forever because a # dispatcher operation failed. @@ -152,7 +170,10 @@ def run(self): self.__shutdown() return except Exception as outer: - log.exception('FB Python SDK: unexpected error in event dispatcher: %s' % str(outer)) + log.exception( + "FB Python SDK: unexpected error in event dispatcher: %s" + % str(outer) + ) def request_shutdown(self): self.__shutdown_requested.set() @@ -170,7 +191,7 @@ def __drain_inbox(self, size=50) -> List[EventMessage]: def __put_events_to_buffer(self, event: FBEvent): if not self.__closed and event.is_send_event: - log.debug('put event to buffer') + log.debug("put event to buffer") self.__events_buffer_to_next_flush.append(event) def __trigger_flush(self): @@ -180,15 +201,15 @@ def flush_payload_done(fn): self.__lock.notify_all() if not self.__closed and len(self.__events_buffer_to_next_flush) > 0: - log.debug('trigger flush') + log.debug("trigger flush") # get all the current events from event buffer if self.__permits.acquire(blocking=False): payloads = [] payloads.extend(self.__events_buffer_to_next_flush) # get an available flush worker to send events - self.__flush_workers \ - .submit(FlushPayloadRunner(self.__config, self.__sender, payloads).run) \ - .add_done_callback(flush_payload_done) + self.__flush_workers.submit( + FlushPayloadRunner(self.__config, self.__sender, payloads).run + ).add_done_callback(flush_payload_done) # clear the buffer for the next flush self.__events_buffer_to_next_flush.clear() # if no available flush worker, keep the events in the buffer @@ -197,7 +218,7 @@ def __shutdown(self): if not self.__closed: try: with self.__lock: - log.debug('event dispatcher is cleaning up thread and conn pool') + log.debug("event dispatcher is cleaning up thread and conn pool") self.__wait_until_flush_playload_worker_down() if self.__events_buffer_to_next_flush: payloads = list(self.__events_buffer_to_next_flush) @@ -208,18 +229,21 @@ def __shutdown(self): FlushPayloadRunner(self.__config, self.__sender, payloads).run() self.__closed = True except Exception as e: - log.exception('FB Python SDK: unexpected error when closing event dispatcher: %s' % str(e)) + log.exception( + "FB Python SDK: unexpected error when closing event dispatcher: %s" + % str(e) + ) finally: try: self.__closed = True - log.debug('flush worker pool is stopping...') + log.debug("flush worker pool is stopping...") self.__flush_workers.shutdown(wait=True) except Exception: - log.exception('FB Python SDK: could not stop event flush workers') + log.exception("FB Python SDK: could not stop event flush workers") try: self.__sender.stop() except Exception: - log.exception('FB Python SDK: could not stop event sender') + log.exception("FB Python SDK: could not stop event sender") def __wait_until_flush_playload_worker_down(self): while self.__permits._value != self.__MAX_FLUSH_WORKERS_NUMBER: @@ -238,15 +262,22 @@ def run(self) -> bool: def partition(lst: List, size: int): for i in range(0, len(lst), size): yield lst[i : i + size] + try: - for payload in list(partition(self.__payloads, self.__MAX_EVENT_SIZE_PER_REQUEST)): + for payload in list( + partition(self.__payloads, self.__MAX_EVENT_SIZE_PER_REQUEST) + ): payload_part = [event.to_json_dict() for event in payload] json_str = json.dumps(payload_part) log.trace(json_str) # type: ignore - self.__sender.postJson(self.__config.events_uri, json_str, fetch_response=False) - log.debug('paload size: %s' % len(payload_part)) + self.__sender.postJson( + self.__config.events_uri, json_str, fetch_response=False + ) + log.debug("paload size: %s" % len(payload_part)) except Exception as e: - log.exception('FB Python SDK: unexpected error in sending payload: %s' % str(e)) + log.exception( + "FB Python SDK: unexpected error in sending payload: %s" % str(e) + ) return False return True diff --git a/fbclient/event_types.py b/fbclient/event_types.py index 50f332a..2737912 100644 --- a/fbclient/event_types.py +++ b/fbclient/event_types.py @@ -3,7 +3,7 @@ from time import time from typing import Optional -from fbclient.common_types import _EvalResult, FBEvent, FBUser +from fbclient.common_types import FBEvent, FBUser, _EvalResult class MessageType(Enum): @@ -16,7 +16,9 @@ class MessageType(Enum): class EventMessage: - def __init__(self, type: MessageType, event: Optional[FBEvent], await_termination: bool): + def __init__( + self, type: MessageType, event: Optional[FBEvent], await_termination: bool + ): self.__type = type self.__event = event self.__wait_lock = Event() if await_termination else None @@ -56,9 +58,9 @@ class Metric: def __init__(self, event_name: str, value: float): self.__event_name = event_name self.__value = value - self.__route = 'index/metric' - self.__type = 'CustomEvent' - self.__app_type = 'pythonserverside' + self.__route = "index/metric" + self.__type = "CustomEvent" + self.__app_type = "pythonserverside" self.__timestamp = int(round(time() * 1000)) @property @@ -98,7 +100,7 @@ def is_send_event(self) -> bool: return self._user is not None def to_json_dict(self) -> dict: - return {'user': self._user.to_json_dict()} + return {"user": self._user.to_json_dict()} class FlagEvent(FBEvent): @@ -117,18 +119,20 @@ def is_send_event(self) -> bool: return self._user and len(self.__variations) > 0 def to_json_dict(self) -> dict: - json_dict = {'user': self._user.to_json_dict()} + json_dict = {"user": self._user.to_json_dict()} arr = [] for variation in self.__variations: - flag_json_dict = {'featureFlagKey': variation.variation.key_name, - 'timestamp': variation.timestamp, - 'variation': { - 'id': variation.variation.id, - 'value': variation.variation.value, - 'reason': variation.variation.reason - }} + flag_json_dict = { + "featureFlagKey": variation.variation.key_name, + "timestamp": variation.timestamp, + "variation": { + "id": variation.variation.id, + "value": variation.variation.value, + "reason": variation.variation.reason, + }, + } arr.append(flag_json_dict) - json_dict['variations'] = arr # type: ignore + json_dict["variations"] = arr # type: ignore return json_dict @@ -148,15 +152,17 @@ def is_send_event(self) -> bool: return self._user and len(self.__metrics) > 0 def to_json_dict(self) -> dict: - json_dict = {'user': self._user.to_json_dict()} + json_dict = {"user": self._user.to_json_dict()} arr = [] for metric in self.__metrics: - metric_json_dict = {'eventName': metric.event_name, - 'numericValue': metric.value, - 'route': metric.route, - 'type': metric.type, - 'appType': metric.app_type, - 'timestamp': metric.timestamp} + metric_json_dict = { + "eventName": metric.event_name, + "numericValue": metric.value, + "route": metric.route, + "type": metric.type, + "appType": metric.app_type, + "timestamp": metric.timestamp, + } arr.append(metric_json_dict) - json_dict['metrics'] = arr # type: ignore + json_dict["metrics"] = arr # type: ignore return json_dict diff --git a/fbclient/flag_change_notification.py b/fbclient/flag_change_notification.py index 731cb0c..68e5c7a 100644 --- a/fbclient/flag_change_notification.py +++ b/fbclient/flag_change_notification.py @@ -1,11 +1,11 @@ - from abc import ABC, abstractmethod from typing import Any, Callable + from fbclient.common_types import FBUser from fbclient.interfaces import Notice from fbclient.notice_broadcaster import NoticeBroadcater -FLAG_CHANGE_NOTICE_TYPE = 'flag_change_notice' +FLAG_CHANGE_NOTICE_TYPE = "flag_change_notice" class FlagChangedNotice(Notice): @@ -28,23 +28,28 @@ class FlagChangedListener(ABC): This is an abstract class. You need to implement your own listener by overriding the :func:`on_flag_change` method. """ + @abstractmethod def on_flag_change(self, notice: FlagChangedNotice): pass class FlagValueChangedListener(FlagChangedListener): - def __init__(self, - flag_key: str, - user: dict, - evaluate_fn: Callable[[str, dict, Any], Any], - flag_value_changed_fn: Callable[[str, Any, Any], None]): + def __init__( + self, + flag_key: str, + user: dict, + evaluate_fn: Callable[[str, dict, Any], Any], + flag_value_changed_fn: Callable[[str, Any, Any], None], + ): self.__flag_key = flag_key self.__user = user self.__evaluate_fn = evaluate_fn self.__fn = flag_value_changed_fn # record the flag value when the listener is created - self.__prvious_flag_value = self.__evaluate_fn(self.__flag_key, self.__user, None) + self.__prvious_flag_value = self.__evaluate_fn( + self.__flag_key, self.__user, None + ) def on_flag_change(self, notice: FlagChangedNotice): if notice.flag_key == self.__flag_key: @@ -56,11 +61,13 @@ def on_flag_change(self, notice: FlagChangedNotice): class FlagValueMaybeChangedListener(FlagChangedListener): - def __init__(self, - flag_key: str, - user: dict, - evaluate_fn: Callable[[str, dict, Any], Any], - flag_value_maybe_changed_fn: Callable[[str, Any], None]): + def __init__( + self, + flag_key: str, + user: dict, + evaluate_fn: Callable[[str, dict, Any], Any], + flag_value_maybe_changed_fn: Callable[[str, Any], None], + ): self.__flag_key = flag_key self.__user = user self.__evaluate_fn = evaluate_fn @@ -82,9 +89,11 @@ class FlagTracker: Application code never needs to initialize or extend this class directly. """ - def __init__(self, - flag_change_broadcaster: NoticeBroadcater, - evaluate_fn: Callable[[str, dict, Any], Any]): + def __init__( + self, + flag_change_broadcaster: NoticeBroadcater, + evaluate_fn: Callable[[str, dict, Any], Any], + ): """ :param flag_change_broadcaster: The broadcaster that broadcasts the flag change notices :param evaluate_fn: The function to evaluate the flag value @@ -92,10 +101,12 @@ def __init__(self, self.__broadcater = flag_change_broadcaster self.__evaluate_fn = evaluate_fn - def add_flag_value_changed_listener(self, - flag_key: str, - user: dict, - flag_value_changed_fn: Callable[[str, Any, Any], None]) -> FlagValueChangedListener: + def add_flag_value_changed_listener( + self, + flag_key: str, + user: dict, + flag_value_changed_fn: Callable[[str, Any, Any], None], + ) -> FlagValueChangedListener: """ Registers a listener to be notified of a change in a specific feature flag's value for a specific FeatBit user. @@ -118,21 +129,25 @@ def add_flag_value_changed_listener(self, # check flag key if not isinstance(flag_key, str) or not flag_key: - raise ValueError('flag_key must be a non-empty string') + raise ValueError("flag_key must be a non-empty string") # check user FBUser.from_dict(user) # check flag_value_changed_fn if not isinstance(flag_value_changed_fn, Callable) or not flag_value_changed_fn: - raise ValueError('flag_value_changed_fn must be a callable function') + raise ValueError("flag_value_changed_fn must be a callable function") - listener = FlagValueChangedListener(flag_key, user, self.__evaluate_fn, flag_value_changed_fn) + listener = FlagValueChangedListener( + flag_key, user, self.__evaluate_fn, flag_value_changed_fn + ) self.add_flag_changed_listener(listener) return listener - def add_flag_value_maybe_changed_listener(self, - flag_key: str, - user: dict, - flag_value_maybe_changed_fn: Callable[[str, Any], None]) -> FlagValueMaybeChangedListener: + def add_flag_value_maybe_changed_listener( + self, + flag_key: str, + user: dict, + flag_value_maybe_changed_fn: Callable[[str, Any], None], + ) -> FlagValueMaybeChangedListener: """ Registers a listener to be notified of a change in a specific feature flag's value for a specific FeatBit user. @@ -156,14 +171,19 @@ def add_flag_value_maybe_changed_listener(self, # check flag key if not isinstance(flag_key, str) or not flag_key: - raise ValueError('flag_key must be a non-empty string') + raise ValueError("flag_key must be a non-empty string") # check user FBUser.from_dict(user) # check flag_value_changed_fn - if not isinstance(flag_value_maybe_changed_fn, Callable) or not flag_value_maybe_changed_fn: - raise ValueError('flag_value_changed_fn must be a callable function') - - listener = FlagValueMaybeChangedListener(flag_key, user, self.__evaluate_fn, flag_value_maybe_changed_fn) + if ( + not isinstance(flag_value_maybe_changed_fn, Callable) + or not flag_value_maybe_changed_fn + ): + raise ValueError("flag_value_changed_fn must be a callable function") + + listener = FlagValueMaybeChangedListener( + flag_key, user, self.__evaluate_fn, flag_value_maybe_changed_fn + ) self.add_flag_changed_listener(listener) return listener @@ -184,4 +204,6 @@ def remove_flag_change_notifier(self, listener: FlagChangedListener): :param listener: The listener to be unregistered. The listener must be the same object that was passed to :func:`add_flag_changed_listner` or :func:`add_flag_value_changed_listerner` """ - self.__broadcater.remove_listener(FLAG_CHANGE_NOTICE_TYPE, listener.on_flag_change) # type: ignore + self.__broadcater.remove_listener( + FLAG_CHANGE_NOTICE_TYPE, listener.on_flag_change + ) # type: ignore diff --git a/fbclient/interfaces.py b/fbclient/interfaces.py index 7b6b135..d2c62f6 100644 --- a/fbclient/interfaces.py +++ b/fbclient/interfaces.py @@ -7,24 +7,24 @@ class UpdateProcessor(ABC): - ''' + """ Interface for the component that obtains feature flag data in some way and passes it to a :class:`DataStorage`. The built-in imp now of this is streaming, we will provide the polling update and file update soon - ''' + """ @abstractmethod def start(self): - ''' + """ Starts an operation in the background. - ''' + """ pass @abstractmethod def stop(self): - ''' + """ Stops an operation running in the background. - ''' + """ pass @property @@ -37,13 +37,15 @@ def initialized(self) -> bool: class DataUpdateStatusProvider(ABC): - ''' + """ Interface for manipulating the data updates in :class: `DataStorage` and maintain the status of :class: `UpdateProcessor`. The implementation should be called in :class: `UpdateProcessor`. - ''' + """ @abstractmethod - def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0) -> bool: + def init( + self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 + ) -> bool: """ Manipulate the init operation in data storage. If the underlying data storage throws an error during this operation, the SDK will catch it, log it, and set the state of update process to INTERRUPTED. It will not rethrow the error to other level, but will simply return falseto indicate that the operation failed. @@ -179,7 +181,9 @@ def get_all(self, kind: Category) -> Mapping[str, dict]: pass @abstractmethod - def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0) -> bool: + def init( + self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 + ) -> bool: """ Init (or re-init by data update process) the storage with the specified set of data. Any existing entries will be removed if the new data set's version is greater than the current version @@ -266,7 +270,9 @@ class Sender(ABC): """ @abstractmethod - def postJson(self, url: str, json_str: str, fetch_response: bool = True) -> Optional[str]: + def postJson( + self, url: str, json_str: str, fetch_response: bool = True + ) -> Optional[str]: """ Sends a json object via HTTP POST to the given URL @@ -290,6 +296,7 @@ class Notice(ABC): This is not an insight event to be sent to FeatBit Flag Center; it is a notice to notify the SDK that something has happened, such as flag values updated """ + @property @abstractmethod def notice_type(self) -> str: diff --git a/fbclient/notice_broadcaster.py b/fbclient/notice_broadcaster.py index 35f9042..6ff1a26 100644 --- a/fbclient/notice_broadcaster.py +++ b/fbclient/notice_broadcaster.py @@ -1,9 +1,8 @@ - from queue import Queue from threading import Lock, Thread, current_thread from typing import Callable -from fbclient.interfaces import Notice +from fbclient.interfaces import Notice from fbclient.utils import log @@ -14,15 +13,19 @@ def __init__(self): self.__listeners = {} self.__lock = Lock() self.__stop_notice = object() - self.__thread = Thread(name='featbit-notice-broadcaster', - daemon=True, - target=self.__run) - log.debug('notice broadcaster starting...') + self.__thread = Thread( + name="featbit-notice-broadcaster", daemon=True, target=self.__run + ) + log.debug("notice broadcaster starting...") self.__thread.start() def add_listener(self, notice_type: str, listener: Callable[[Notice], None]): - if isinstance(notice_type, str) and notice_type.strip() and listener is not None: - log.debug('add a listener for notice type %s' % notice_type) + if ( + isinstance(notice_type, str) + and notice_type.strip() + and listener is not None + ): + log.debug("add a listener for notice type %s" % notice_type) with self.__lock: if self.__closed: return @@ -36,7 +39,7 @@ def add_listener(self, notice_type: str, listener: Callable[[Notice], None]): def remove_listener(self, notice_type: str, listener: Callable[[Notice], None]): if listener is None: return - log.debug('remove a listener for notice type %s' % notice_type) + log.debug("remove a listener for notice type %s" % notice_type) with self.__lock: notifiers = self.__listeners.get(notice_type) if not notifiers: @@ -57,7 +60,7 @@ def broadcast(self, notice: Notice): self.__notice_queue.put(notice) def stop(self): - log.debug('notice broadcaster stopping...') + log.debug("notice broadcaster stopping...") with self.__lock: if self.__closed: return @@ -66,7 +69,7 @@ def stop(self): if current_thread() is not self.__thread: self.__thread.join(5.0) if self.__thread.is_alive(): - log.warning('FB Python SDK: notice broadcaster did not stop in time') + log.warning("FB Python SDK: notice broadcaster did not stop in time") def __run(self): while True: @@ -82,4 +85,7 @@ def __notice_process(self, notice: Notice): try: listener(notice) except Exception as e: - log.exception('FB Python SDK: unexpected error in handle notice %s: %s' % (notice.notice_type, str(e))) + log.exception( + "FB Python SDK: unexpected error in handle notice %s: %s" + % (notice.notice_type, str(e)) + ) diff --git a/fbclient/status.py b/fbclient/status.py index 3853a82..986d02e 100644 --- a/fbclient/status.py +++ b/fbclient/status.py @@ -5,13 +5,16 @@ from fbclient.category import Category from fbclient.interfaces import DataStorage, DataUpdateStatusProvider -from fbclient.status_types import (DATA_STORAGE_INIT_ERROR, - DATA_STORAGE_UPDATE_ERROR, State, StateType) +from fbclient.status_types import ( + DATA_STORAGE_INIT_ERROR, + DATA_STORAGE_UPDATE_ERROR, + State, + StateType, +) from fbclient.utils import log class DataUpdateStatusProviderImpl(DataUpdateStatusProvider): - def __init__(self, storage: DataStorage): self.__storage = storage self.__current_state = State.intializing_state() @@ -22,7 +25,9 @@ def __init__(self, storage: DataStorage): ] = deque() self.__is_publishing_notifications = False - def init(self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0) -> bool: + def init( + self, all_data: Mapping[Category, Mapping[str, dict]], version: int = 0 + ) -> bool: try: result = self.__storage.init(all_data, version) except Exception as e: @@ -42,7 +47,10 @@ def upsert(self, kind: Category, key: str, item: dict, version: int = 0) -> bool return result is not False def __handle_exception(self, error: Exception, error_type: str, message: str): - log.exception('FB Python SDK: Data Storage error: %s, UpdateProcessor will attempt to receive the data' % str(error)) + log.exception( + "FB Python SDK: Data Storage error: %s, UpdateProcessor will attempt to receive the data" + % str(error) + ) self.update_state(State.interrupted_state(error_type, message)) def get_all(self, kind: Category) -> Mapping[str, dict]: @@ -71,12 +79,19 @@ def update_state(self, new_state: State): error = new_state.error_track # special case: if ``new_state`` is INTERRUPTED, but the previous state was INITIALIZING, the state will remain at INITIALIZING # INTERRUPTED is only meaningful after a successful startup - if new_state_type == StateType.INTERRUPTED and old_state_type == StateType.INITIALIZING: + if ( + new_state_type == StateType.INTERRUPTED + and old_state_type == StateType.INITIALIZING + ): new_state_type = StateType.INITIALIZING # normal case if new_state_type != old_state_type or error is not None: - state_since = time() if new_state_type != old_state_type else self.__current_state.state_since + state_since = ( + time() + if new_state_type != old_state_type + else self.__current_state.state_since + ) self.__current_state = State(new_state_type, state_since, error) # wakes up all threads waiting for the ok state to check the new state self.__lock.notify_all() @@ -102,7 +117,7 @@ def __publish_pending_notifications(self): try: listener(state) except Exception: - log.exception('FB Python SDK: Update status listener failed') + log.exception("FB Python SDK: Update status listener failed") def add_listener(self, listener: Callable[[State], None]): if not callable(listener): @@ -112,7 +127,7 @@ def add_listener(self, listener: Callable[[State], None]): if listener not in self.__listeners: self.__listeners.append(listener) except Exception: - log.exception('FB Python SDK: Could not add update status listener') + log.exception("FB Python SDK: Could not add update status listener") def remove_listener(self, listener: Callable[[State], None]): with self.__lock: @@ -121,7 +136,7 @@ def remove_listener(self, listener: Callable[[State], None]): except ValueError: pass except Exception: - log.exception('FB Python SDK: Could not remove update status listener') + log.exception("FB Python SDK: Could not remove update status listener") def wait_for_OKState(self, timeout: float = 0) -> bool: _timeout = 0 if timeout is None or timeout <= 0 else timeout @@ -133,7 +148,7 @@ def wait_for_OKState(self, timeout: float = 0) -> bool: elif StateType.OFF == self.__current_state.state_type: return False else: - if (_timeout == 0): + if _timeout == 0: self.__lock.wait() else: now = time() diff --git a/fbclient/status_types.py b/fbclient/status_types.py index 4fbe435..3db8021 100644 --- a/fbclient/status_types.py +++ b/fbclient/status_types.py @@ -2,27 +2,27 @@ from time import time from typing import Optional -DATA_STORAGE_INIT_ERROR = 'Data Storage init error' +DATA_STORAGE_INIT_ERROR = "Data Storage init error" -DATA_STORAGE_UPDATE_ERROR = 'Data Storage update error' +DATA_STORAGE_UPDATE_ERROR = "Data Storage update error" -REQUEST_INVALID_ERROR = 'Request invalid' +REQUEST_INVALID_ERROR = "Request invalid" -DATA_INVALID_ERROR = 'Received Data invalid' +DATA_INVALID_ERROR = "Received Data invalid" -NETWORK_ERROR = 'Network error' +NETWORK_ERROR = "Network error" -RUNTIME_ERROR = 'Runtime error' +RUNTIME_ERROR = "Runtime error" -WEBSOCKET_ERROR = 'WebSocket error' +WEBSOCKET_ERROR = "WebSocket error" -UNKNOWN_ERROR = 'Unknown error' +UNKNOWN_ERROR = "Unknown error" -UNKNOWN_CLOSE_CODE = 'Unknown close code' +UNKNOWN_CLOSE_CODE = "Unknown close code" -SYSTEM_ERROR = 'System error' +SYSTEM_ERROR = "System error" -SYSTEM_QUIT = 'System quit' +SYSTEM_QUIT = "System quit" class StateType(Enum): @@ -31,6 +31,7 @@ class StateType(Enum): If it encounters an error that requires it to retry initialization, the state will remain at INITIALIZING until it either succeeds and becomes OK, or permanently fails and becomes OFF. """ + INITIALIZING = 1 """ Indicates that the update processing is currently operational and has not had any problems since the @@ -68,7 +69,12 @@ def message(self) -> str: class State: - def __init__(self, state_type: "StateType", state_since: float, error_track: Optional["ErrorTrack"] = None): + def __init__( + self, + state_type: "StateType", + state_since: float, + error_track: Optional["ErrorTrack"] = None, + ): self.__state_type = state_type self.__state_since = state_since self.__error_track = error_track diff --git a/fbclient/streaming.py b/fbclient/streaming.py index 443ae48..36a78a6 100644 --- a/fbclient/streaming.py +++ b/fbclient/streaming.py @@ -11,14 +11,24 @@ from fbclient.interfaces import UpdateProcessor from fbclient.notice_broadcaster import NoticeBroadcater from fbclient.status import DataUpdateStatusProviderImpl -from fbclient.status_types import (NETWORK_ERROR, - REQUEST_INVALID_ERROR, RUNTIME_ERROR, - SYSTEM_QUIT, UNKNOWN_CLOSE_CODE, - UNKNOWN_ERROR, WEBSOCKET_ERROR, State) -from fbclient.utils import (build_headers, build_token, - from_str_datetime_to_millis, log, valide_all_data) -from fbclient.utils.exponential_backoff_jitter_strategy import \ - BackoffAndJitterStrategy +from fbclient.status_types import ( + NETWORK_ERROR, + REQUEST_INVALID_ERROR, + RUNTIME_ERROR, + SYSTEM_QUIT, + UNKNOWN_CLOSE_CODE, + UNKNOWN_ERROR, + WEBSOCKET_ERROR, + State, +) +from fbclient.utils import ( + build_headers, + build_token, + from_str_datetime_to_millis, + log, + valide_all_data, +) +from fbclient.utils.exponential_backoff_jitter_strategy import BackoffAndJitterStrategy from fbclient.utils.repeatable_task import RepeatableTask WS_NORMAL_CLOSE = 1000 @@ -34,10 +44,12 @@ class _SelfClosed: - def __init__(self, - is_self_close: bool = False, - is_reconn: bool = False, - state: Optional[State] = None): + def __init__( + self, + is_self_close: bool = False, + is_reconn: bool = False, + state: Optional[State] = None, + ): self.is_self_close = is_self_close self.is_reconn = is_reconn self.state = state @@ -53,19 +65,29 @@ def _data_to_dict(data: dict) -> Tuple[int, dict]: segments = {} all_data[FEATURE_FLAGS] = flags all_data[SEGMENTS] = segments - for flag in data['featureFlags']: - flag['timestamp'] = from_str_datetime_to_millis(flag['updatedAt']) - flag['variationMap'] = dict((var['id'], var['value']) for var in flag['variations']) - flag['_id'] = flag['id'] - flag['id'] = flag['key'] - flag['cat'] = FEATURE_FLAGS - flags[flag['id']] = {'id': flag['id'], 'timestamp': flag['timestamp'], 'isArchived': True} if flag['isArchived'] else flag - version = max(version, flag['timestamp']) - for segment in data['segments']: - segment['timestamp'] = from_str_datetime_to_millis(segment['updatedAt']) - segment['cat'] = SEGMENTS - segments[segment['id']] = {'id': segment['id'], 'timestamp': segment['timestamp'], 'isArchived': True} if segment['isArchived'] else segment - version = max(version, segment['timestamp']) + for flag in data["featureFlags"]: + flag["timestamp"] = from_str_datetime_to_millis(flag["updatedAt"]) + flag["variationMap"] = dict( + (var["id"], var["value"]) for var in flag["variations"] + ) + flag["_id"] = flag["id"] + flag["id"] = flag["key"] + flag["cat"] = FEATURE_FLAGS + flags[flag["id"]] = ( + {"id": flag["id"], "timestamp": flag["timestamp"], "isArchived": True} + if flag["isArchived"] + else flag + ) + version = max(version, flag["timestamp"]) + for segment in data["segments"]: + segment["timestamp"] = from_str_datetime_to_millis(segment["updatedAt"]) + segment["cat"] = SEGMENTS + segments[segment["id"]] = ( + {"id": segment["id"], "timestamp": segment["timestamp"], "isArchived": True} + if segment["isArchived"] + else segment + ) + version = max(version, segment["timestamp"]) return version, all_data @@ -84,8 +106,14 @@ def _handle_ws_error(error: BaseException) -> Tuple[bool, bool, State]: class Streaming(Thread, UpdateProcessor): __ping_interval = 10.0 - def __init__(self, config: Config, broadcaster: NoticeBroadcater, dataUpdateStatusProvider: DataUpdateStatusProviderImpl, ready: Event): - super().__init__(name='featbit-streaming', daemon=True) + def __init__( + self, + config: Config, + broadcaster: NoticeBroadcater, + dataUpdateStatusProvider: DataUpdateStatusProviderImpl, + ready: Event, + ): + super().__init__(name="featbit-streaming", daemon=True) self.__config = config self.__broadcaster = broadcaster self.__storage = dataUpdateStatusProvider @@ -102,25 +130,29 @@ def __init__(self, config: Config, broadcaster: NoticeBroadcater, dataUpdateStat self.__previous_websocket_timeout = None self.__has_network = not config.is_offline if self.__has_network: - self.__ping_task = RepeatableTask('featbit-streaming-ping', self.__ping_interval, self._on_ping) + self.__ping_task = RepeatableTask( + "featbit-streaming-ping", self.__ping_interval, self._on_ping + ) self.__ping_task.start() def _init_wsapp(self): # authenfication and headers token = build_token(self.__config.env_secret) - params = '?token=%s&type=server' % token + params = "?token=%s&type=server" % token url = self.__config.streaming_uri + params headers = build_headers(self.__config.env_secret) # init web socket app - self.__wsapp = websocket.WebSocketApp(url, - header=headers, - on_open=self._on_open, - on_message=self._on_message, - on_close=self._on_close, - on_error=self._on_error) - log.debug('Streaming WebSocket is connecting...') + self.__wsapp = websocket.WebSocketApp( + url, + header=headers, + on_open=self._on_open, + on_message=self._on_message, + on_close=self._on_close, + on_error=self._on_error, + ) + log.debug("Streaming WebSocket is connecting...") def __prepare_connection_timeout(self): # websocket-client exposes connection timeout as process-global state. @@ -128,9 +160,11 @@ def __prepare_connection_timeout(self): # environment's stalled connection attempt; in that case the second # client proceeds with the timeout value already in effect. if not _WEBSOCKET_TIMEOUT_LOCK.acquire(blocking=False): - log.warning('FB Python SDK: another WebSocket connection is ' - 'configuring the process timeout; using the current ' - 'timeout value') + log.warning( + "FB Python SDK: another WebSocket connection is " + "configuring the process timeout; using the current " + "timeout value" + ) return False with self.__timeout_state_lock: self.__timeout_lock_held = True @@ -155,16 +189,18 @@ def __restore_connection_timeout(self): _WEBSOCKET_TIMEOUT_LOCK.release() def run(self): - while (not self.__force_close and self.__running and self.__has_network): + while not self.__force_close and self.__running and self.__has_network: try: self.__prepare_connection_timeout() self._init_wsapp() - self.__wsapp.run_forever(sslopt=self.__config.websocket.sslopt, # type: ignore - http_proxy_host=self.__config.websocket.proxy_host, - http_proxy_port=self.__config.websocket.proxy_port, - http_proxy_auth=self.__config.websocket.proxy_auth, - proxy_type=self.__config.websocket.proxy_type, - skip_utf8_validation=self.__config.websocket.skip_utf8_validation) + self.__wsapp.run_forever( + sslopt=self.__config.websocket.sslopt, # type: ignore + http_proxy_host=self.__config.websocket.proxy_host, + http_proxy_port=self.__config.websocket.proxy_port, + http_proxy_auth=self.__config.websocket.proxy_auth, + proxy_type=self.__config.websocket.proxy_type, + skip_utf8_validation=self.__config.websocket.skip_utf8_validation, + ) self.__restore_connection_timeout() if self.__running: # calculate the delay for reconn @@ -173,11 +209,15 @@ def run(self): # exponential-backoff delay immediately. self.__stop_event.wait(delay) except Exception as e: - log.exception('FB Python SDK: Streaming unexpected error: %s', str(e)) + log.exception("FB Python SDK: Streaming unexpected error: %s", str(e)) try: - self.__storage.update_state(State.interrupted_state(UNKNOWN_ERROR, str(e))) + self.__storage.update_state( + State.interrupted_state(UNKNOWN_ERROR, str(e)) + ) except Exception: - log.exception('FB Python SDK: could not publish streaming error state') + log.exception( + "FB Python SDK: could not publish streaming error state" + ) if self.__running and not self.__force_close: # Constructor failures occur outside websocket-client's # callback path, so they need the same backoff as normal @@ -189,7 +229,7 @@ def run(self): self.__wsapp = None self.__self_closed = _SelfClosed() self.__closed_by_error = False - log.debug('Streaming WebSocket process is over') + log.debug("Streaming WebSocket process is over") if not self.__ready.is_set(): # if an error like data format invalid occurs in the first attempt, set ready to make client not to wait self.__ready.set() @@ -197,8 +237,8 @@ def run(self): # handle websocket auto close issue def _on_ping(self): if self.__wsapp and self.__wsapp.sock and self.__wsapp.sock.connected: - log.trace('ping') # type: ignore - self.__wsapp.send(json.dumps({'messageType': 'ping', 'data': None})) + log.trace("ping") # type: ignore + self.__wsapp.send(json.dumps({"messageType": "ping", "data": None})) def _on_close(self, wsapp, close_code, close_msg): self.__restore_connection_timeout() @@ -206,20 +246,20 @@ def _on_close(self, wsapp, close_code, close_msg): # close by client self.__running = self.__self_closed.is_reconn state = self.__self_closed.state - log.debug('Streaming WebSocket close reason: self close') + log.debug("Streaming WebSocket close reason: self close") elif self.__closed_by_error: return elif close_code == WS_INVALID_REQUEST_CLOSE: # close by server with code 4003 self.__running = False state = State.error_off_state(REQUEST_INVALID_ERROR, REQUEST_INVALID_ERROR) - log.debug('Streaming WebSocket close reason: %s' % REQUEST_INVALID_ERROR) + log.debug("Streaming WebSocket close reason: %s" % REQUEST_INVALID_ERROR) else: # close by server with an unknown close code, restart immediately self.__running = True msg = close_msg if close_msg else UNKNOWN_CLOSE_CODE state = State.interrupted_state(UNKNOWN_CLOSE_CODE, msg) - log.debug('Streaming WebSocket close reason: %s' % close_code) + log.debug("Streaming WebSocket close reason: %s" % close_code) if state: self.__storage.update_state(state) @@ -227,9 +267,11 @@ def _on_close(self, wsapp, close_code, close_msg): def _on_error(self, wsapp: websocket.WebSocketApp, error): self.__restore_connection_timeout() is_reconn, is_close_ws, state = _handle_ws_error(error) - log.warning('FB Python SDK: Streaming WebSocket Failure: %s' % str(error)) + log.warning("FB Python SDK: Streaming WebSocket Failure: %s" % str(error)) if is_close_ws: - self.__self_closed = _SelfClosed(is_self_close=True, is_reconn=is_reconn, state=state) + self.__self_closed = _SelfClosed( + is_self_close=True, is_reconn=is_reconn, state=state + ) wsapp.close(status=WS_GOING_AWAY_CLOSE) else: self.__running = is_reconn @@ -239,9 +281,11 @@ def _on_error(self, wsapp: websocket.WebSocketApp, error): def _on_open(self, wsapp: websocket.WebSocketApp): self.__restore_connection_timeout() self.__strategy.set_good_run() - log.debug('Asking Data updating on WebSocket') - version = self.__storage.latest_version if self.__storage.latest_version > 0 else 0 - data_sync_msg = {'messageType': 'data-sync', 'data': {'timestamp': version}} + log.debug("Asking Data updating on WebSocket") + version = ( + self.__storage.latest_version if self.__storage.latest_version > 0 else 0 + ) + data_sync_msg = {"messageType": "data-sync", "data": {"timestamp": version}} json_str = json.dumps(data_sync_msg) wsapp.send(json_str) @@ -250,41 +294,48 @@ def _on_process_data(self, data): def get_feature_flag_keys_from_segment(flags, segment_id): flag_keys = [] for flag in flags.values(): - for rule in flag['rules']: # type: ignore - for condition in rule['conditions']: # type: ignore - op = condition['op'] # type: ignore + for rule in flag["rules"]: # type: ignore + for condition in rule["conditions"]: # type: ignore + op = condition["op"] # type: ignore if not op: try: - segment_ids = json.loads(condition['value']) # type: ignore + segment_ids = json.loads(condition["value"]) # type: ignore if segment_id in segment_ids: # type: ignore - flag_keys.append(flag['id']) # type: ignore + flag_keys.append(flag["id"]) # type: ignore except: pass return set(flag_keys) def broacasting(): flags = self.__storage.get_all(FEATURE_FLAGS) - for items in all_data.values() : - for item in sorted(items.values(), key=lambda x: x['timestamp']): - if item['cat'] == FEATURE_FLAGS: + for items in all_data.values(): + for item in sorted(items.values(), key=lambda x: x["timestamp"]): + if item["cat"] == FEATURE_FLAGS: # listen flag changes - if item['id'] not in broacasting_ingnored_flag_keys: - broacasting_ingnored_flag_keys.append(item['id']) - self.__broadcaster.broadcast(FlagChangedNotice(item['id'])) - elif item['cat'] == SEGMENTS: + if item["id"] not in broacasting_ingnored_flag_keys: + broacasting_ingnored_flag_keys.append(item["id"]) + self.__broadcaster.broadcast(FlagChangedNotice(item["id"])) + elif item["cat"] == SEGMENTS: # listen segment changes - flag_keys = get_feature_flag_keys_from_segment(flags, item['id']) + flag_keys = get_feature_flag_keys_from_segment( + flags, item["id"] + ) for flag_key in flag_keys: if flag_key not in broacasting_ingnored_flag_keys: broacasting_ingnored_flag_keys.append(flag_key) - self.__broadcaster.broadcast(FlagChangedNotice(flag_key)) + self.__broadcaster.broadcast( + FlagChangedNotice(flag_key) + ) - log.debug('Streaming WebSocket is processing data') + log.debug("Streaming WebSocket is processing data") version, all_data = _data_to_dict(data) op_ok = False - if 'patch' == data['eventType']: - op_ok = all(self.__storage.upsert(cat, item['id'], item, item['timestamp']) - for cat, items in all_data.items() for item in sorted(items.values(), key=lambda x: x['timestamp'])) + if "patch" == data["eventType"]: + op_ok = all( + self.__storage.upsert(cat, item["id"], item, item["timestamp"]) + for cat, items in all_data.items() + for item in sorted(items.values(), key=lambda x: x["timestamp"]) + ) else: op_ok = self.__storage.init(all_data, version) if op_ok: @@ -299,51 +350,63 @@ def broacasting(): return op_ok def _on_message(self, wsapp: websocket.WebSocketApp, msg): - log.trace('Streaming WebSocket data: %s' % msg) # type: ignore + log.trace("Streaming WebSocket data: %s" % msg) # type: ignore try: all_data = json.loads(msg) except Exception: - log.exception('FB Python SDK: could not parse data-sync message; skipping message: %r', msg) + log.exception( + "FB Python SDK: could not parse data-sync message; skipping message: %r", + msg, + ) return - if isinstance(all_data, dict) and all_data.get('messageType') == 'data-sync': + if isinstance(all_data, dict) and all_data.get("messageType") == "data-sync": try: self._handle_data_sync_message(wsapp, all_data) except Exception: - log.exception('FB Python SDK: could not process data-sync message; skipping message: %r', all_data) + log.exception( + "FB Python SDK: could not process data-sync message; skipping message: %r", + all_data, + ) def _handle_data_sync_message(self, wsapp: websocket.WebSocketApp, all_data): if not valide_all_data(all_data): - log.error('FB Python SDK: invalid data-sync message; skipping message: %r', all_data) + log.error( + "FB Python SDK: invalid data-sync message; skipping message: %r", + all_data, + ) return - if not self._on_process_data(all_data['data']): - log.error('FB Python SDK: could not apply data-sync message; skipping message: %r', all_data) + if not self._on_process_data(all_data["data"]): + log.error( + "FB Python SDK: could not apply data-sync message; skipping message: %r", + all_data, + ) def stop(self): - log.info('FB Python SDK: Streaming is stopping...') + log.info("FB Python SDK: Streaming is stopping...") self.__force_close = True self.__running = False self.__stop_event.set() try: self.__storage.update_state(State.normal_off_state()) except Exception: - log.exception('FB Python SDK: could not publish streaming shutdown state') + log.exception("FB Python SDK: could not publish streaming shutdown state") try: if self.__wsapp: - self.__self_closed = _SelfClosed(is_self_close=True, - is_reconn=False, - state=State.normal_off_state()) + self.__self_closed = _SelfClosed( + is_self_close=True, is_reconn=False, state=State.normal_off_state() + ) self.__wsapp.close(status=WS_NORMAL_CLOSE) except Exception: - log.exception('FB Python SDK: could not close the WebSocket connection') + log.exception("FB Python SDK: could not close the WebSocket connection") if self.__has_network: try: self.__ping_task.stop() except Exception: - log.exception('FB Python SDK: could not stop the streaming ping task') + log.exception("FB Python SDK: could not stop the streaming ping task") if current_thread() is not self and self.is_alive(): self.join(self.__config.websocket.timeout + 1.0) if self.is_alive(): - log.warning('FB Python SDK: streaming thread did not stop in time') + log.warning("FB Python SDK: streaming thread did not stop in time") @property def initialized(self) -> bool: diff --git a/fbclient/update_processor.py b/fbclient/update_processor.py index 73309a7..b256ed1 100644 --- a/fbclient/update_processor.py +++ b/fbclient/update_processor.py @@ -1,12 +1,17 @@ from threading import Event + from fbclient.config import Config from fbclient.interfaces import DataUpdateStatusProvider, UpdateProcessor from fbclient.status_types import State class NullUpdateProcessor(UpdateProcessor): - - def __init__(self, config: Config, dataUpdateStatusProvider: DataUpdateStatusProvider, ready: Event): + def __init__( + self, + config: Config, + dataUpdateStatusProvider: DataUpdateStatusProvider, + ready: Event, + ): self.__ready = ready self.__store = dataUpdateStatusProvider self.__offline = config.is_offline diff --git a/fbclient/utils/__init__.py b/fbclient/utils/__init__.py index d058e94..4709ac1 100644 --- a/fbclient/utils/__init__.py +++ b/fbclient/utils/__init__.py @@ -11,7 +11,7 @@ TRACE_LEVEL = logging.DEBUG - 5 -logging.addLevelName(TRACE_LEVEL, 'TRACE') +logging.addLevelName(TRACE_LEVEL, "TRACE") class _MyLogger(logging.getLoggerClass()): @@ -26,16 +26,27 @@ def trace(self, msg, *args, **kwargs): log = logging.getLogger(sys.modules[__name__].__name__) -ALPHABETS = {"0": "Q", "1": "B", "2": "W", "3": "S", "4": "P", "5": "H", "6": "D", "7": "X", "8": "Z", "9": "U"} +ALPHABETS = { + "0": "Q", + "1": "B", + "2": "W", + "3": "S", + "4": "P", + "5": "H", + "6": "D", + "7": "X", + "8": "Z", + "9": "U", +} def build_headers(env_secret: str, extra_headers=None): def build_default_headers(): return { - 'Authorization': env_secret, - 'User-Agent': 'fb-python-server-sdk', - 'Content-Type': 'application/json' + "Authorization": env_secret, + "User-Agent": "fb-python-server-sdk", + "Content-Type": "application/json", } headers = build_default_headers() @@ -47,7 +58,7 @@ def build_token(env_secret: str) -> str: def encodeNumber(num, length): s = "000000000000" + str(num) - return ''.join(list(map(lambda ch: ALPHABETS[ch], s[len(s) - length:]))) + return "".join(list(map(lambda ch: ALPHABETS[ch], s[len(s) - length :]))) text = env_secret.rstrip("=") now = unix_timestamp_in_milliseconds() @@ -58,7 +69,7 @@ def encodeNumber(num, length): part3 = text[0:start] part4 = timestampCode part5 = text[start:] - return '%s%s%s%s%s' % (part1, part2, part3, part4, part5) + return "%s%s%s%s%s" % (part1, part2, part3, part4, part5) def unix_timestamp_in_milliseconds(): @@ -66,13 +77,18 @@ def unix_timestamp_in_milliseconds(): def valide_all_data(all_data=None) -> bool: - return isinstance(all_data, dict) \ - and all_data.get('messageType') == 'data-sync' \ - and 'data' in all_data and isinstance(all_data['data'], dict) \ - and all(k in all_data['data'] for k in ('eventType', 'featureFlags', 'segments')) \ - and any(k == all_data['data']['eventType'] for k in ('full', 'patch')) \ - and isinstance(all_data['data']['featureFlags'], Iterable) \ - and isinstance(all_data['data']['segments'], Iterable) + return ( + isinstance(all_data, dict) + and all_data.get("messageType") == "data-sync" + and "data" in all_data + and isinstance(all_data["data"], dict) + and all( + k in all_data["data"] for k in ("eventType", "featureFlags", "segments") + ) + and any(k == all_data["data"]["eventType"] for k in ("full", "patch")) + and isinstance(all_data["data"]["featureFlags"], Iterable) + and isinstance(all_data["data"]["segments"], Iterable) + ) def is_ascii(value: str) -> bool: @@ -90,18 +106,21 @@ def is_url(value: str) -> bool: def check_uwsgi(): - if 'uwsgi' in sys.modules: + if "uwsgi" in sys.modules: # noinspection PyPackageRequirements,PyUnresolvedReferences import uwsgi - if not hasattr(uwsgi, 'opt'): + + if not hasattr(uwsgi, "opt"): # means that we are not running under uwsgi return - if uwsgi.opt.get('enable-threads'): + if uwsgi.opt.get("enable-threads"): return - if uwsgi.opt.get('threads') is not None and int(uwsgi.opt.get('threads')) > 1: + if uwsgi.opt.get("threads") is not None and int(uwsgi.opt.get("threads")) > 1: return - raise ValueError("The Python Server SDK requires the 'enable-threads' or 'threads' option be passed to uWSGI.") + raise ValueError( + "The Python Server SDK requires the 'enable-threads' or 'threads' option be passed to uWSGI." + ) def is_numeric(value) -> bool: @@ -119,11 +138,13 @@ def from_str_datetime_to_millis(value: str) -> int: return 0 -def cast_variation_by_flag_type(flag_type: Optional[str], variation: Optional[str]) -> Any: +def cast_variation_by_flag_type( + flag_type: Optional[str], variation: Optional[str] +) -> Any: try: - if 'boolean' == flag_type or 'json' == flag_type: + if "boolean" == flag_type or "json" == flag_type: return json.loads(variation) # type: ignore - elif 'number' == flag_type: + elif "number" == flag_type: float_value = float(variation) # type: ignore return int(float_value) if float_value.is_integer() else float_value else: @@ -134,13 +155,13 @@ def cast_variation_by_flag_type(flag_type: Optional[str], variation: Optional[st def simple_type_inference(value: Any) -> Optional[str]: if isinstance(value, bool): - return 'boolean' + return "boolean" elif isinstance(value, str): - return 'string' + return "string" elif isinstance(value, Iterable) or isinstance(value, Mapping): - return 'json' + return "json" elif is_numeric(value): - return 'number' + return "number" elif value is None: return None else: diff --git a/fbclient/utils/exponential_backoff_jitter_strategy.py b/fbclient/utils/exponential_backoff_jitter_strategy.py index 0d051ac..eea6300 100644 --- a/fbclient/utils/exponential_backoff_jitter_strategy.py +++ b/fbclient/utils/exponential_backoff_jitter_strategy.py @@ -5,16 +5,18 @@ import random from time import time + from fbclient.utils import log class BackoffAndJitterStrategy: - - def __init__(self, - first_delay_in_seconds: float = 1.0, - max_delay_in_seconds: float = 60.0, - reset_interval_in_seconds: float = 60, - jitter_ratio: float = 0.5): + def __init__( + self, + first_delay_in_seconds: float = 1.0, + max_delay_in_seconds: float = 60.0, + reset_interval_in_seconds: float = 60, + jitter_ratio: float = 0.5, + ): self.__retry_times = 0 self.__first_delay = first_delay_in_seconds self.__reset_interval = reset_interval_in_seconds @@ -37,7 +39,11 @@ def __count_backoff_time(self) -> float: def next_delay(self, force_to_restart_in_max_delay=False): current_time = time() - if self.__latest_good_run > 0 and self.__reset_interval > 0 and current_time - self.__latest_good_run > self.__reset_interval: + if ( + self.__latest_good_run > 0 + and self.__reset_interval > 0 + and current_time - self.__latest_good_run > self.__reset_interval + ): self.__retry_times = 0 if force_to_restart_in_max_delay: self.__retry_times = 0 @@ -47,5 +53,5 @@ def next_delay(self, force_to_restart_in_max_delay=False): delay = self.__count_jitter_time(backoff) + backoff / 2 self.__retry_times += 1 self.__latest_good_run = 0 - log.debug('next delay is %s' % str(delay)) + log.debug("next delay is %s" % str(delay)) return delay diff --git a/fbclient/utils/http_client.py b/fbclient/utils/http_client.py index 39bef2c..9ae58ba 100644 --- a/fbclient/utils/http_client.py +++ b/fbclient/utils/http_client.py @@ -6,26 +6,29 @@ import certifi import urllib3 + from fbclient.config import Config, HTTPConfig from fbclient.interfaces import Sender from fbclient.utils import build_headers, log def build_http_factory(config: Config, headers=None): - return HTTPFactory(build_headers(config.env_secret, - headers if headers is not None else {}), - config.http) + return HTTPFactory( + build_headers(config.env_secret, headers if headers is not None else {}), + config.http, + ) class HTTPFactory: - def __init__(self, headers, http_config: HTTPConfig): """ :param override_read_timeout override default read timeout at streaming update """ self.__headers = headers self.__http_config = http_config - self.__timeout = urllib3.Timeout(connect=http_config.connect_timeout, read=http_config.read_timeout) + self.__timeout = urllib3.Timeout( + connect=http_config.connect_timeout, read=http_config.read_timeout + ) @property def headers(self) -> Mapping[str, str]: @@ -39,69 +42,78 @@ def http_config(self) -> HTTPConfig: def timeout(self) -> urllib3.Timeout: return self.__timeout - def create_http_client(self, num_pools=1, max_size=10) -> Union[urllib3.PoolManager, urllib3.ProxyManager]: + def create_http_client( + self, num_pools=1, max_size=10 + ) -> Union[urllib3.PoolManager, urllib3.ProxyManager]: proxy_url = self.__http_config.http_proxy if self.__http_config.disable_ssl_verification: - cert_reqs = 'CERT_NONE' + cert_reqs = "CERT_NONE" ca_certs = None else: - cert_reqs = 'CERT_REQUIRED' + cert_reqs = "CERT_REQUIRED" ca_certs = self.__http_config.ca_certs or certifi.where() if not proxy_url: - return urllib3.PoolManager(num_pools=num_pools, - maxsize=max_size, - headers=self.__headers, - timeout=self.__timeout, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=self.__http_config.cert_file) + return urllib3.PoolManager( + num_pools=num_pools, + maxsize=max_size, + headers=self.__headers, + timeout=self.__timeout, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=self.__http_config.cert_file, + ) else: url = urllib3.util.parse_url(proxy_url) if url.auth: proxy_headers = urllib3.util.make_headers(proxy_basic_auth=url.auth) elif self.__http_config.http_proxy_auth: auth = self.__http_config.http_proxy_auth - proxy_headers = urllib3.util.make_headers(proxy_basic_auth=f"{auth[0]}:{auth[1]}") + proxy_headers = urllib3.util.make_headers( + proxy_basic_auth=f"{auth[0]}:{auth[1]}" + ) else: proxy_headers = None - return urllib3.ProxyManager(proxy_url, - num_pools=num_pools, - maxsize=max_size, - headers=self.__headers, - proxy_headers=proxy_headers, - timeout=self.__timeout, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=self.__http_config.cert_file) + return urllib3.ProxyManager( + proxy_url, + num_pools=num_pools, + maxsize=max_size, + headers=self.__headers, + proxy_headers=proxy_headers, + timeout=self.__timeout, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=self.__http_config.cert_file, + ) class DefaultSender(Sender): - def __init__(self, name: str, config: Config, num_pools=1, max_size=10): self.__http = build_http_factory(config).create_http_client(num_pools, max_size) self.__retry_interval = config.events_retry_interval self.__max_retries = config.events_max_retries self.__name = name - def postJson(self, url: str, json_str: str, fetch_response: bool = True) -> Optional[str]: + def postJson( + self, url: str, json_str: str, fetch_response: bool = True + ) -> Optional[str]: for i in range(self.__max_retries + 1): try: if i > 0: sleep(self.__retry_interval) - response = self.__http.request('POST', url, body=json_str) + response = self.__http.request("POST", url, body=json_str) if response.status == 200: - log.debug('sending ok') - resp = response.data.decode('utf-8') + log.debug("sending ok") + resp = response.data.decode("utf-8") return resp if fetch_response else None except Exception as e: - log.exception('FB Python SDK: sending error: %s' % str(e)) + log.exception("FB Python SDK: sending error: %s" % str(e)) return None def stop(self): - log.debug('%s sender is stopping...' % self.__name) + log.debug("%s sender is stopping..." % self.__name) self.__http.clear() @@ -111,7 +123,7 @@ def __init__(self, payloads: List[dict]) -> None: self.size = len(payloads) def is_contain_user(self, key: str) -> bool: - return any(payload['user']['keyId'] == key for payload in self.__payloads) + return any(payload["user"]["keyId"] == key for payload in self.__payloads) class MockSender(Sender): @@ -124,7 +136,9 @@ def __init__(self, ready: Event): self.fake_error_on_close = None self.closed = False - def postJson(self, url: str, json_str: str, fetch_response: bool = True) -> Optional[str]: + def postJson( + self, url: str, json_str: str, fetch_response: bool = True + ) -> Optional[str]: payloads = json.loads(json_str) self.__buffer.put(SendingJsonInfo(payloads)) if self.thread_num > 0 and not self.__ready.is_set(): diff --git a/fbclient/utils/repeatable_task.py b/fbclient/utils/repeatable_task.py index 6931a53..f4adc46 100644 --- a/fbclient/utils/repeatable_task.py +++ b/fbclient/utils/repeatable_task.py @@ -11,8 +11,9 @@ class RepeatableTask(Thread): - - def __init__(self, name: str, interval: float, callable: Callable, args=(), kwargs=None): + def __init__( + self, name: str, interval: float, callable: Callable, args=(), kwargs=None + ): super().__init__(name=name, daemon=True) self._interval = interval self._callable = callable @@ -29,7 +30,9 @@ def stop(self, timeout: float = 5.0): if current_thread() is not self and self.is_alive(): self.join(timeout) if self.is_alive(): - log.warning("FB Python SDK: %s repeatable task did not stop in time" % self.name) + log.warning( + "FB Python SDK: %s repeatable task did not stop in time" % self.name + ) def run(self): log.debug("%s repeatable task is starting..." % self.name) @@ -39,6 +42,11 @@ def run(self): try: self._callable(*self._args, **self._kwargs) except Exception as e: - log.exception("FB Python SDK: unexpected exception on %s repeatable task: %s" % (self.name, str(e))) + log.exception( + "FB Python SDK: unexpected exception on %s repeatable task: %s" + % (self.name, str(e)) + ) delay = next_time - time() - stopped = self._stop_event.wait(delay) if delay > 0 else self._stop_event.is_set() + stopped = ( + self._stop_event.wait(delay) if delay > 0 else self._stop_event.is_set() + ) diff --git a/fbclient/utils/rwlock.py b/fbclient/utils/rwlock.py index 49876f1..f81ac50 100644 --- a/fbclient/utils/rwlock.py +++ b/fbclient/utils/rwlock.py @@ -7,7 +7,7 @@ class ReadWriteLock: - """ A lock object that allows many simultaneous "read locks", but + """A lock object that allows many simultaneous "read locks", but only one "write lock." """ def __init__(self): @@ -15,25 +15,25 @@ def __init__(self): self._readers = 0 def read_lock(self): - """ Acquire a read lock. Blocks only if a thread has - acquired the write lock. """ + """Acquire a read lock. Blocks only if a thread has + acquired the write lock.""" with self._read_ready: self._readers += 1 def release_read_lock(self): - """ Release a read lock. """ + """Release a read lock.""" with self._read_ready: self._readers = self._readers - 1 if self._readers > 0 else 0 if self._readers == 0: self._read_ready.notify_all() def write_lock(self): - """ Acquire a write lock. Blocks until there are no - acquired read or write locks. """ + """Acquire a write lock. Blocks until there are no + acquired read or write locks.""" self._read_ready.acquire() while self._readers > 0: self._read_ready.wait() def release_write_lock(self): - """ Release a write lock. """ + """Release a write lock.""" self._read_ready.release() diff --git a/fbclient/utils/variation_splitting_algorithm.py b/fbclient/utils/variation_splitting_algorithm.py index 7f5357b..42e1c4a 100644 --- a/fbclient/utils/variation_splitting_algorithm.py +++ b/fbclient/utils/variation_splitting_algorithm.py @@ -1,4 +1,3 @@ - import hashlib from typing import List @@ -15,11 +14,14 @@ def is_key_belongs_to_percentage(self) -> bool: if self.__percentage_range[0] == 0 and self.__percentage_range[1] == 1: return True percentage = self.__percentage_of_key() - return percentage >= self.__percentage_range[0] and percentage < self.__percentage_range[1] + return ( + percentage >= self.__percentage_range[0] + and percentage < self.__percentage_range[1] + ) except: return False def __percentage_of_key(self) -> float: - digest = hashlib.md5(self.__key.encode(encoding='utf-8')).digest() - magic_num = int.from_bytes(digest[:4], byteorder='little', signed=True) + digest = hashlib.md5(self.__key.encode(encoding="utf-8")).digest() + magic_num = int.from_bytes(digest[:4], byteorder="little", signed=True) return abs(magic_num / __MIN_INT__) diff --git a/pyproject.toml b/pyproject.toml index fa7093a..9de3639 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,61 @@ [build-system] -requires = ["setuptools>=42"] -build-backend = "setuptools.build_meta" \ No newline at end of file +requires = ["uv_build>=0.13.9,<0.14"] +build-backend = "uv_build" + +[project] +name = "fb-python-sdk" +version = "1.2.1" +description = "A Python SDK for FeatBit plateform" +readme = "README.md" +requires-python = ">=3.10,<3.15" +license-files = ["LICENSE"] +authors = [{ name = "Dian SUN", email = "featbit.master@gmail.com" }] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + "Topic :: Software Development", + "Topic :: Software Development :: Libraries", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", +] +dependencies = [ + "certifi>=2018.4.16", + "python-dateutil>=2.8.2", + "urllib3>=1.26.5,<3", + "websocket-client>=1.0.0", +] + +[project.urls] +Homepage = "https://github.com/featbit/featbit-python-sdk" +Code = "https://github.com/featbit/featbit-python-sdk" +"Issue tracker" = "https://github.com/featbit/featbit/issues" + +[project.optional-dependencies] +dev = ["build", "pytest", "pytest-mock", "twine"] + +[dependency-groups] +dev = ["pre-commit>=4.4.0", "pytest", "pytest-mock", "ruff"] +release = ["twine"] + +[tool.uv.build-backend] +module-name = "fbclient" +module-root = "" +source-include = ["pytest.ini", "tests/**"] + +[tool.ruff] +include = ["*.py", "*.pyi"] + +[tool.ruff.lint] +select = ["E", "F", "I", "W"] +ignore = ["E111", "E114", "E117", "E722", "W191"] + +[tool.ruff.lint.per-file-ignores] +"__init__.py" = ["F401", "F403"] + +[tool.ruff.lint.pycodestyle] +max-line-length = 199 diff --git a/release/package.json b/release/package.json deleted file mode 100644 index 9cd452c..0000000 --- a/release/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version":"1.2.1" -} diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index d9acccc..0000000 --- a/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -certifi>=2018.4.16 -urllib3>=1.26.5,<3 -python-dateutil>=2.8.2 -websocket-client>=1.0.0 diff --git a/scripts/live_integration_check.py b/scripts/live_integration_check.py index 653c172..04eb2fb 100644 --- a/scripts/live_integration_check.py +++ b/scripts/live_integration_check.py @@ -21,7 +21,8 @@ def sdk_threads(): return { - thread.ident: thread.name for thread in threading.enumerate() + thread.ident: thread.name + for thread in threading.enumerate() if thread.name.startswith("featbit-") } @@ -31,21 +32,17 @@ def main(): if not env_secret: raise SystemExit("FEATBIT_ENV_SECRET is required") - streaming_url = os.environ.get( - "FEATBIT_STREAMING_URL", "wss://app-eval.featbit.co" - ) - event_url = os.environ.get( - "FEATBIT_EVENT_URL", "https://app-eval.featbit.co" - ) + streaming_url = os.environ.get("FEATBIT_STREAMING_URL", "wss://app-eval.featbit.co") + event_url = os.environ.get("FEATBIT_EVENT_URL", "https://app-eval.featbit.co") flag_key = os.environ.get("FEATBIT_FLAG_KEY", "python-app-release") timeout = float(os.environ.get("FEATBIT_START_WAIT_SECONDS", "15")) states = [] baseline_threads = sdk_threads() - client = FBClient(Config(env_secret, - event_url=event_url, - streaming_url=streaming_url), - start_wait=timeout) + client = FBClient( + Config(env_secret, event_url=event_url, streaming_url=streaming_url), + start_wait=timeout, + ) def on_state_change(state): states.append(state.state_type.name) @@ -59,7 +56,8 @@ def on_state_change(state): state = client.update_status_provider.current_state error = state.error_track raise SystemExit( - "FeatBit SDK did not become ready: %s%s" % ( + "FeatBit SDK did not become ready: %s%s" + % ( state.state_type.name, " (%s)" % error.error_type if error else "", ) @@ -70,12 +68,14 @@ def on_state_change(state): user_key = "python-sdk-live-%s" % index user = {"key": user_key, "name": user_key, "plan": plan} detail = client.variation_detail(flag_key, user, False) - evaluations.append({ - "user_key": user_key, - "variation": detail.variation, - "variation_id": detail.variation_id, - "reason": detail.reason, - }) + evaluations.append( + { + "user_key": user_key, + "variation": detail.variation, + "variation_id": detail.variation_id, + "reason": detail.reason, + } + ) client.identify(user) client.track_metric(user, "python-sdk-live-check", 1.0) @@ -91,8 +91,7 @@ def on_state_change(state): current_threads = sdk_threads() leaked_threads = sorted( - name for ident, name in current_threads.items() - if ident not in baseline_threads + name for ident, name in current_threads.items() if ident not in baseline_threads ) after_close = client.update_status_provider.current_state.state_type result = { @@ -106,9 +105,7 @@ def on_state_change(state): "leaked_sdk_threads": leaked_threads, } print(json.dumps(result, indent=2, sort_keys=True, default=str)) - if (before_close != StateType.OK - or after_close != StateType.OFF - or leaked_threads): + if before_close != StateType.OK or after_close != StateType.OFF or leaked_threads: raise SystemExit(1) diff --git a/scripts/resource_audit.py b/scripts/resource_audit.py index 6465210..95b0981 100644 --- a/scripts/resource_audit.py +++ b/scripts/resource_audit.py @@ -19,7 +19,8 @@ def sdk_thread_ids(): return { - thread.ident for thread in threading.enumerate() + thread.ident + for thread in threading.enumerate() if thread.name.startswith("featbit-") } @@ -36,10 +37,12 @@ def main(): parser.error("--workers must be at least 1") baseline_threads = sdk_thread_ids() - config = Config("resource-audit", - event_url="http://offline", - streaming_url="ws://offline", - offline=True) + config = Config( + "resource-audit", + event_url="http://offline", + streaming_url="ws://offline", + offline=True, + ) client = FBClient(config) bootstrap = (ROOT / "tests" / "fbclient_test_data.json").read_text() if not client.initialize_from_external_json(bootstrap): @@ -55,8 +58,7 @@ def main(): errors = [] per_worker, remainder = divmod(args.evaluations, args.workers) workloads = [ - per_worker + (1 if worker < remainder else 0) - for worker in range(args.workers) + per_worker + (1 if worker < remainder else 0) for worker in range(args.workers) ] def evaluate(work): @@ -88,9 +90,9 @@ def evaluate(work): tracemalloc.stop() leaked_threads = sorted( - thread.name for thread in threading.enumerate() - if thread.name.startswith("featbit-") - and thread.ident not in baseline_threads + thread.name + for thread in threading.enumerate() + if thread.name.startswith("featbit-") and thread.ident not in baseline_threads ) retained_bytes = max(0, final_bytes - baseline_bytes) result = { @@ -105,11 +107,15 @@ def evaluate(work): "retained_traced_bytes": retained_bytes, "allowed_retained_bytes": args.max_retained_bytes, } - result["status"] = "ok" if ( - not errors - and not leaked_threads - and retained_bytes <= args.max_retained_bytes - ) else "failed" + result["status"] = ( + "ok" + if ( + not errors + and not leaked_threads + and retained_bytes <= args.max_retained_bytes + ) + else "failed" + ) print(json.dumps(result, indent=2, sort_keys=True)) if result["status"] != "ok": raise SystemExit(1) diff --git a/scripts/wheel_smoke.py b/scripts/wheel_smoke.py index 8c91333..7aff2ab 100644 --- a/scripts/wheel_smoke.py +++ b/scripts/wheel_smoke.py @@ -13,7 +13,6 @@ from fbclient.client import FBClient from fbclient.config import Config - PACKAGE_NAME = "fb-python-sdk" FAKE_ENV_SECRET = base64.b64encode(b"fake_env_secret").decode() FAKE_URL = "http://fake" @@ -53,7 +52,15 @@ def assert_metadata(expected_version): assert "Programming Language :: Python :: 3.10" in classifiers assert "Programming Language :: Python :: 3.14" in classifiers requirements = distribution.requires or [] - assert any(requirement.startswith("urllib3<3,>=1.26.5") for requirement in requirements) + assert any( + { + specifier.strip() + for specifier in requirement.removeprefix("urllib3").split(",") + } + == {"<3", ">=1.26.5"} + for requirement in requirements + if requirement.startswith("urllib3") + ) return distribution.version @@ -103,9 +110,7 @@ def main(): args = parse_args() expected_version = args.expected_version if args.expected_version_file: - expected_version = json.loads( - args.expected_version_file.read_text() - )["version"] + expected_version = json.loads(args.expected_version_file.read_text())["version"] assert_installed_package() version = assert_metadata(expected_version) states = exercise_client(args.bootstrap) diff --git a/setup.py b/setup.py deleted file mode 100644 index 577e299..0000000 --- a/setup.py +++ /dev/null @@ -1,57 +0,0 @@ -import json -from setuptools import setup, find_packages - - -def last_version(): - with open("./release/package.json") as fp: - version = json.load(fp) - return version['version'] - - -fb_version = last_version() - - -def parse_requirements(filename): - lineiter = (line.strip() for line in open(filename)) - return [line for line in lineiter if line and not line.startswith("#")] - - -base_reqs = parse_requirements('./requirements.txt') -dev_reqs = parse_requirements('./dev-requirements.txt') - -with open('README.md') as f: - long_description = f.read() - -setup( - name='fb-python-sdk', - version=fb_version, - author='Dian SUN', - author_email='featbit.master@gmail.com', - packages=find_packages(exclude=('tests', 'tests.*')), - url='https://github.com/featbit/featbit-python-sdk', - project_urls={ - 'Code': 'https://github.com/featbit/featbit-python-sdk', - 'Issue tracker': 'https://github.com/featbit/featbit/issues', - }, - description='A Python SDK for FeatBit plateform', - long_description=long_description, - long_description_content_type='text/markdown', - install_requires=base_reqs, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: Apache Software License', - 'Operating System :: OS Independent', - 'Topic :: Software Development', - 'Topic :: Software Development :: Libraries', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.13', - 'Programming Language :: Python :: 3.14', - ], - extras_require={ - "dev": dev_reqs - }, - python_requires='>=3.10, <3.15' -) diff --git a/tests/test_data_storage.py b/tests/test_data_storage.py index 3760c9f..bc2f4b2 100644 --- a/tests/test_data_storage.py +++ b/tests/test_data_storage.py @@ -15,8 +15,18 @@ def data_storage(): def items(): items = {} items["id_1"] = {"id": "id_1", "timestamp": 1, "isArchived": True, "name": "name_1"} - items["id_2"] = {"id": "id_2", "timestamp": 2, "isArchived": False, "name": "name_2"} - items["id_3"] = {"id": "id_3", "timestamp": 3, "isArchived": False, "name": "name_3"} + items["id_2"] = { + "id": "id_2", + "timestamp": 2, + "isArchived": False, + "name": "name_2", + } + items["id_3"] = { + "id": "id_3", + "timestamp": 3, + "isArchived": False, + "name": "name_3", + } return items diff --git a/tests/test_data_update_status_provider.py b/tests/test_data_update_status_provider.py index 01d4e29..d5347d5 100644 --- a/tests/test_data_update_status_provider.py +++ b/tests/test_data_update_status_provider.py @@ -14,8 +14,18 @@ def items(): items = {} items["id_1"] = {"id": "id_1", "timestamp": 1, "isArchived": True, "name": "name_1"} - items["id_2"] = {"id": "id_2", "timestamp": 2, "isArchived": False, "name": "name_2"} - items["id_3"] = {"id": "id_3", "timestamp": 3, "isArchived": False, "name": "name_3"} + items["id_2"] = { + "id": "id_2", + "timestamp": 2, + "isArchived": False, + "name": "name_2", + } + items["id_3"] = { + "id": "id_3", + "timestamp": 3, + "isArchived": False, + "name": "name_3", + } return items @@ -55,7 +65,9 @@ def test_upsert_data_storage(data_updator, data_storage, items): @patch.object(InMemoryDataStorage, "init") -def test_init_data_storage_unexptected_error(mock_init_method, data_updator, data_storage, items): +def test_init_data_storage_unexptected_error( + mock_init_method, data_updator, data_storage, items +): mock_init_method.side_effect = RuntimeError("test exception") all_data = {DATATEST: items} if data_updator.init(all_data, 3): @@ -67,7 +79,9 @@ def test_init_data_storage_unexptected_error(mock_init_method, data_updator, dat @patch.object(InMemoryDataStorage, "upsert") -def test_upsert_data_storage_unexpected_error(mock_upsert_method, data_updator, data_storage, items): +def test_upsert_data_storage_unexpected_error( + mock_upsert_method, data_updator, data_storage, items +): mock_upsert_method.side_effect = RuntimeError("test exception") all_data = {DATATEST: items} if data_updator.init(all_data, 3): @@ -139,12 +153,11 @@ def listener(state): data_updator.add_listener(listener) first_update = threading.Thread( - target=data_updator.update_state, - args=(State.ok_state(),) + target=data_updator.update_state, args=(State.ok_state(),) ) second_update = threading.Thread( target=data_updator.update_state, - args=(State.interrupted_state("network", "disconnected"),) + args=(State.interrupted_state("network", "disconnected"),), ) first_update.start() diff --git a/tests/test_evaluator.py b/tests/test_evaluator.py index 9576066..f886ceb 100644 --- a/tests/test_evaluator.py +++ b/tests/test_evaluator.py @@ -6,9 +6,13 @@ from fbclient.category import FEATURE_FLAGS, SEGMENTS from fbclient.common_types import FBUser from fbclient.data_storage import InMemoryDataStorage -from fbclient.evaluator import (REASON_FALLTHROUGH, REASON_FLAG_OFF, - REASON_RULE_MATCH, REASON_TARGET_MATCH, - Evaluator) +from fbclient.evaluator import ( + REASON_FALLTHROUGH, + REASON_FLAG_OFF, + REASON_RULE_MATCH, + REASON_TARGET_MATCH, + Evaluator, +) from fbclient.event_types import FlagEvent from fbclient.streaming import _data_to_dict from fbclient.utils import valide_all_data @@ -18,7 +22,11 @@ USER_3 = {"key": "test-true-user", "name": "test-true-user", "graduated": "true"} USER_4 = {"key": "test-equal-user", "name": "test-equal-user", "country": "CHN"} USER_5 = {"key": "test-than-user", "name": "test-than-user", "salary": "2500"} -USER_6 = {"key": "test-contain-user", "name": "test-contain-user", "email": "test-contain-user@gmail.com"} +USER_6 = { + "key": "test-contain-user", + "name": "test-contain-user", + "email": "test-contain-user@gmail.com", +} USER_7 = {"key": "test-isoneof-user", "name": "test-isoneof-user", "major": "CS"} USER_8 = {"key": "group-admin-user", "name": "group-admin-user"} USER_9 = {"key": "test-regex-user", "name": "test-regex-user", "phone": "18555358000"} @@ -27,12 +35,12 @@ @pytest.fixture def data_storage(): - json_str = Path('tests/fbclient_test_data.json').read_text() + json_str = Path("tests/fbclient_test_data.json").read_text() data_storage = InMemoryDataStorage() if json_str: all_data = json.loads(json_str) if valide_all_data(all_data): - version, data = _data_to_dict(all_data['data']) + version, data = _data_to_dict(all_data["data"]) data_storage.init(data, version) return data_storage diff --git a/tests/test_event_processor.py b/tests/test_event_processor.py index 9315c74..bbf7d58 100644 --- a/tests/test_event_processor.py +++ b/tests/test_event_processor.py @@ -1,9 +1,10 @@ import base64 import threading from time import sleep + import pytest -from fbclient.common_types import FBUser +from fbclient.common_types import FBUser from fbclient.config import Config from fbclient.event_processor import DefaultEventProcessor from fbclient.event_types import UserEvent @@ -28,11 +29,13 @@ def mock_sender(ready_event): @pytest.fixture def event_processor(mock_sender): - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - events_flush_interval=0.1, - events_max_in_queue=100) + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + events_flush_interval=0.1, + events_max_in_queue=100, + ) return DefaultEventProcessor(config, mock_sender) @@ -42,7 +45,9 @@ def test_event_processor_start_and_stop(event_processor, mock_sender): assert mock_sender.closed -def test_event_processor_can_gracefully_close_if_sender_error_on_close(event_processor, mock_sender): +def test_event_processor_can_gracefully_close_if_sender_error_on_close( + event_processor, mock_sender +): with event_processor: mock_sender.fake_error_on_close = RuntimeError("test exception") assert mock_sender.get_sending_json_info(timeout=0.2) is None @@ -102,7 +107,9 @@ def test_event_processor_cannot_send_anything_after_close(event_processor, mock_ assert mock_sender.get_sending_json_info(timeout=0.2) is None -def test_event_processor_events_keep_in_buffer_if_all_flush_payload_runner_are_busy(event_processor, mock_sender, ready_event): +def test_event_processor_events_keep_in_buffer_if_all_flush_payload_runner_are_busy( + event_processor, mock_sender, ready_event +): with event_processor as ep: mock_sender.thread_num = 5 for _ in range(5): @@ -135,11 +142,13 @@ def is_send_event(self): release_first.wait(1.0) return True - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - events_flush_interval=3.0, - events_max_in_queue=1) + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + events_flush_interval=3.0, + events_max_in_queue=1, + ) processor = DefaultEventProcessor(config, mock_sender) # RepeatableTask invokes its callback once on startup. Let that empty flush # leave the one-slot inbox before constructing the full-queue scenario. @@ -177,11 +186,13 @@ def is_send_event(self): holder["processor"].stop() return True - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - events_flush_interval=3.0, - events_max_in_queue=10) + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + events_flush_interval=3.0, + events_max_in_queue=10, + ) processor = DefaultEventProcessor(config, mock_sender) holder["processor"] = processor processor.send_event(SelfStoppingUserEvent(FBUser.from_dict(USER_1))) diff --git a/tests/test_fbclient.py b/tests/test_fbclient.py index a814ffa..4157543 100644 --- a/tests/test_fbclient.py +++ b/tests/test_fbclient.py @@ -9,10 +9,15 @@ from fbclient.common_types import EvalDetail from fbclient.config import Config from fbclient.data_storage import InMemoryDataStorage -from fbclient.evaluator import (REASON_CLIENT_NOT_READY, REASON_ERROR, - REASON_FALLTHROUGH, REASON_FLAG_NOT_FOUND, - REASON_RULE_MATCH, REASON_TARGET_MATCH, - REASON_USER_NOT_SPECIFIED) +from fbclient.evaluator import ( + REASON_CLIENT_NOT_READY, + REASON_ERROR, + REASON_FALLTHROUGH, + REASON_FLAG_NOT_FOUND, + REASON_RULE_MATCH, + REASON_TARGET_MATCH, + REASON_USER_NOT_SPECIFIED, +) from fbclient.event_processor import NullEventProcessor from fbclient.update_processor import NullUpdateProcessor @@ -23,7 +28,12 @@ USER_1 = {"key": "test-user-1", "name": "test-user-1", "country": "us"} USER_2 = {"key": "test-user-2", "name": "test-user-2", "country": "fr"} USER_3 = {"key": "test-user-3", "name": "test-user-3", "country": "cn", "major": "cs"} -USER_4 = {"key": "test-user-4", "name": "test-user-4", "country": "uk", "major": "physics"} +USER_4 = { + "key": "test-user-4", + "name": "test-user-4", + "country": "uk", + "major": "physics", +} USER_CN_PHONE_NUM = {"key": "18555358000", "name": "test-user-5"} USER_FR_PHONE_NUM = {"key": "0603111111", "name": "test-user-6"} USER_EMAIL = {"key": "test-user-7@featbit.com", "name": "test-user-7"} @@ -40,21 +50,22 @@ def test_eval_detail_variation_id_is_backward_compatible(): assert detail_with_id.to_json_dict() == legacy_detail.to_json_dict() -def make_fb_client(update_processor_imp, event_processor_imp, start_wait=15.): - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - update_processor_imp=update_processor_imp, - event_processor_imp=event_processor_imp) +def make_fb_client(update_processor_imp, event_processor_imp, start_wait=15.0): + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + update_processor_imp=update_processor_imp, + event_processor_imp=event_processor_imp, + ) return FBClient(config, start_wait=start_wait) -def make_fb_client_offline(start_wait=15.): - json = Path('tests/fbclient_test_data.json').read_text() - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - offline=True) +def make_fb_client_offline(start_wait=15.0): + json = Path("tests/fbclient_test_data.json").read_text() + config = Config( + FAKE_ENV_SECRET, event_url=FAKE_URL, streaming_url=FAKE_URL, offline=True + ) client = FBClient(config, start_wait=start_wait) client.initialize_from_external_json(json) return client @@ -74,7 +85,11 @@ def test_construct_empty_envsecret(): def test_construct_illegal_envsecret(): with pytest.raises(ValueError) as exc_info: - FBClient(Config(FAKE_ENV_SECRET + "©öäü£", event_url=FAKE_URL, streaming_url=FAKE_URL)) + FBClient( + Config( + FAKE_ENV_SECRET + "©öäü£", event_url=FAKE_URL, streaming_url=FAKE_URL + ) + ) assert exc_info.value.args[0] == "env secret is invalid" @@ -86,12 +101,20 @@ def test_construct_empty_url(): def test_construct_invalid_url(): with pytest.raises(ValueError) as exc_info: - FBClient(Config(FAKE_ENV_SECRET, event_url="mailto:John.Doe@example.com", streaming_url="urn:isbn:0-294-56559-3")) + FBClient( + Config( + FAKE_ENV_SECRET, + event_url="mailto:John.Doe@example.com", + streaming_url="urn:isbn:0-294-56559-3", + ) + ) assert exc_info.value.args[0] == "streaming or event url is invalid" def test_start_and_wait(): - with make_fb_client(NullUpdateProcessor, NullEventProcessor, start_wait=0.1) as client: + with make_fb_client( + NullUpdateProcessor, NullEventProcessor, start_wait=0.1 + ) as client: assert client.initialize @@ -99,13 +122,18 @@ def test_start_and_wait(): def test_start_and_timeout(mock_start_method): def start(): pass + mock_start_method.side_effect = start - with make_fb_client(NullUpdateProcessor, NullEventProcessor, start_wait=0.1) as client: + with make_fb_client( + NullUpdateProcessor, NullEventProcessor, start_wait=0.1 + ) as client: assert not client.initialize def test_start_and_nowait(): - with make_fb_client(NullUpdateProcessor, NullEventProcessor, start_wait=0) as client: + with make_fb_client( + NullUpdateProcessor, NullEventProcessor, start_wait=0 + ) as client: assert client.update_status_provider.wait_for_OKState(timeout=0.1) assert client.initialize @@ -114,8 +142,11 @@ def test_start_and_nowait(): def test_start_nowait_and_timeout(mock_start_method): def start(): pass + mock_start_method.side_effect = start - with make_fb_client(NullUpdateProcessor, NullEventProcessor, start_wait=0) as client: + with make_fb_client( + NullUpdateProcessor, NullEventProcessor, start_wait=0 + ) as client: assert not client.update_status_provider.wait_for_OKState(timeout=0.1) assert not client.initialize @@ -124,8 +155,11 @@ def start(): def test_variation_when_client_not_initialized(mock_start_method): def start(): pass + mock_start_method.side_effect = start - with make_fb_client(NullUpdateProcessor, NullEventProcessor, start_wait=0.1) as client: + with make_fb_client( + NullUpdateProcessor, NullEventProcessor, start_wait=0.1 + ) as client: assert not client.initialize detail = client.variation_detail("ff-test-bool", USER_1, False) assert detail.variation is False @@ -169,26 +203,29 @@ def test_numeric_variation(): def test_string_variation(): with make_fb_client_offline() as client: assert client.initialize - assert client.variation("ff-test-string", USER_CN_PHONE_NUM, 'error') == 'phone number' - detail = client.variation_detail("ff-test-string", USER_FR_PHONE_NUM, 'error') - assert detail.variation == 'phone number' + assert ( + client.variation("ff-test-string", USER_CN_PHONE_NUM, "error") + == "phone number" + ) + detail = client.variation_detail("ff-test-string", USER_FR_PHONE_NUM, "error") + assert detail.variation == "phone number" assert detail.reason == REASON_RULE_MATCH - assert client.variation("ff-test-string", USER_EMAIL, 'error') == 'email' - detail = client.variation_detail("ff-test-string", USER_1, 'error') - assert detail.variation == 'others' + assert client.variation("ff-test-string", USER_EMAIL, "error") == "email" + detail = client.variation_detail("ff-test-string", USER_1, "error") + assert detail.variation == "others" assert detail.reason == REASON_FALLTHROUGH def test_segment(): with make_fb_client_offline() as client: assert client.initialize - assert client.variation("ff-test-seg", USER_1, 'error') == 'teamA' - assert client.variation("ff-test-seg", USER_2, 'error') == 'teamB' - detail = client.variation_detail("ff-test-seg", USER_3, 'error') - assert detail.variation == 'teamA' + assert client.variation("ff-test-seg", USER_1, "error") == "teamA" + assert client.variation("ff-test-seg", USER_2, "error") == "teamB" + detail = client.variation_detail("ff-test-seg", USER_3, "error") + assert detail.variation == "teamA" assert detail.reason == REASON_RULE_MATCH - detail = client.variation_detail("ff-test-seg", USER_4, 'error') - assert detail.variation == 'teamB' + detail = client.variation_detail("ff-test-seg", USER_4, "error") + assert detail.variation == "teamB" assert detail.reason == REASON_FALLTHROUGH @@ -229,13 +266,13 @@ def test_get_all_latest_flag_variations(): assert ed is not None and ed.variation == 1 assert value == 1 assert "ff-test-number" in all_states.keys() - ed = all_states.get("ff-test-string", 'error') - value = all_states.get_variation("ff-test-string", 'error') + ed = all_states.get("ff-test-string", "error") + value = all_states.get_variation("ff-test-string", "error") assert ed is not None and ed.variation == "others" assert value == "others" assert "ff-test-string" in all_states.keys() - ed = all_states.get("ff-test-seg", 'error') - value = all_states.get_variation("ff-test-seg", 'error') + ed = all_states.get("ff-test-seg", "error") + value = all_states.get_variation("ff-test-seg", "error") assert ed is not None and ed.variation == "teamA" assert value == "teamA" assert "ff-test-seg" in all_states.keys() @@ -264,8 +301,8 @@ def test_variation_argument_error(): @patch.object(InMemoryDataStorage, "get_all") @patch.object(InMemoryDataStorage, "get") def test_variation_unexpected_error(mock_get_method, mock_get_all_method): - mock_get_method.side_effect = RuntimeError('test exception') - mock_get_all_method.side_effect = RuntimeError('test exception') + mock_get_method.side_effect = RuntimeError("test exception") + mock_get_all_method.side_effect = RuntimeError("test exception") with make_fb_client_offline() as client: assert client.initialize detail = client.variation_detail("ff-test-bool", USER_1, False) @@ -293,12 +330,14 @@ def test_invalid_external_json_does_not_raise(): def test_configured_boolean_default_is_used_for_missing_flag(): - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - defaults={"missing": True}, - update_processor_imp=NullUpdateProcessor, - event_processor_imp=NullEventProcessor) + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + defaults={"missing": True}, + update_processor_imp=NullUpdateProcessor, + event_processor_imp=NullEventProcessor, + ) with FBClient(config) as client: assert client.variation("missing", USER_1, False) is True @@ -310,14 +349,15 @@ def test_unserializable_json_default_does_not_raise(): def test_empty_offline_bootstrap_controls_initialization_state(): - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - offline=True) + config = Config( + FAKE_ENV_SECRET, event_url=FAKE_URL, streaming_url=FAKE_URL, offline=True + ) with FBClient(config) as client: assert not client.initialize - empty_data = ('{"messageType":"data-sync","data":' - '{"eventType":"full","featureFlags":[],"segments":[]}}') + empty_data = ( + '{"messageType":"data-sync","data":' + '{"eventType":"full","featureFlags":[],"segments":[]}}' + ) assert client.initialize_from_external_json(empty_data) assert client.initialize assert client.update_status_provider.wait_for_OKState(0.1) diff --git a/tests/test_flag_change_notification.py b/tests/test_flag_change_notification.py index 0f734c3..99facd2 100644 --- a/tests/test_flag_change_notification.py +++ b/tests/test_flag_change_notification.py @@ -1,15 +1,16 @@ - - from queue import Empty, Queue import pytest -from fbclient.flag_change_notification import (FlagChangedListener, - FlagChangedNotice, FlagTracker) +from fbclient.flag_change_notification import ( + FlagChangedListener, + FlagChangedNotice, + FlagTracker, +) from fbclient.interfaces import Notice from fbclient.notice_broadcaster import NoticeBroadcater -TEST_NOTICE_TYPE = 'test_notice_type' +TEST_NOTICE_TYPE = "test_notice_type" class TestNotice(Notice): @@ -50,7 +51,7 @@ def test_register_a_listener(queue): notice_broadcaster.add_listener(TEST_NOTICE_TYPE, queue.put) notice_broadcaster.add_listener(TEST_NOTICE_TYPE, queue.put) - notice = TestNotice(TEST_NOTICE_TYPE, 'test content') + notice = TestNotice(TEST_NOTICE_TYPE, "test content") notice_broadcaster.broadcast(notice) assert queue.get() == notice @@ -67,7 +68,7 @@ def test_unregister_a_listener(queue): notice_broadcaster.add_listener(TEST_NOTICE_TYPE, queue.put) notice_broadcaster.remove_listener(TEST_NOTICE_TYPE, queue.put) - notice = TestNotice(TEST_NOTICE_TYPE, 'test content') + notice = TestNotice(TEST_NOTICE_TYPE, "test content") notice_broadcaster.broadcast(notice) assert queue.get() == notice @@ -87,7 +88,7 @@ def test_register_a_flag_changed_listener(queue): flag_tracker.add_flag_changed_listener(flag_changed_listener) flag_tracker.add_flag_changed_listener(flag_changed_listener) - notice = FlagChangedNotice('test_flag_key') + notice = FlagChangedNotice("test_flag_key") notice_broadcaster.broadcast(notice) assert queue.get() == notice @@ -106,7 +107,7 @@ def test_unregister_a_flag_changed_listener(queue): flag_tracker.add_flag_changed_listener(flag_changed_listener) flag_tracker.remove_flag_change_notifier(flag_changed_listener) - notice = FlagChangedNotice('test_flag_key') + notice = FlagChangedNotice("test_flag_key") notice_broadcaster.broadcast(notice) assert queue.get() == notice diff --git a/tests/test_insights_enabled.py b/tests/test_insights_enabled.py index ae24931..29b4da4 100644 --- a/tests/test_insights_enabled.py +++ b/tests/test_insights_enabled.py @@ -14,31 +14,33 @@ from fbclient.streaming import Streaming from fbclient.update_processor import NullUpdateProcessor - MISSING = object() -USER = {'key': 'test-user-1', 'name': 'Test User', 'country': 'us'} -FLAG_KEY = 'ff-test-bool' -SETTINGS = [MISSING, True, False, None, 0, 'false'] +USER = {"key": "test-user-1", "name": "Test User", "country": "us"} +FLAG_KEY = "ff-test-bool" +SETTINGS = [MISSING, True, False, None, 0, "false"] -def payload(setting, event_type='full', revision=1): - message = json.loads(Path('tests/fbclient_test_data.json').read_text()) - message['data']['eventType'] = event_type - for flag in message['data']['featureFlags']: - flag.pop('insightsEnabled', None) +def payload(setting, event_type="full", revision=1): + message = json.loads(Path("tests/fbclient_test_data.json").read_text()) + message["data"]["eventType"] = event_type + for flag in message["data"]["featureFlags"]: + flag.pop("insightsEnabled", None) if setting is not MISSING: - flag['insightsEnabled'] = setting - flag['updatedAt'] = '2030-01-01T00:00:%02dZ' % revision + flag["insightsEnabled"] = setting + flag["updatedAt"] = "2030-01-01T00:00:%02dZ" % revision return json.dumps(message) @pytest.fixture def client(): processor = Mock() - config = Config(base64.b64encode(b'insights-test').decode(), - event_url='http://fake', streaming_url='http://fake', - update_processor_imp=NullUpdateProcessor, - event_processor_imp=lambda *_: processor) + config = Config( + base64.b64encode(b"insights-test").decode(), + event_url="http://fake", + streaming_url="http://fake", + update_processor_imp=NullUpdateProcessor, + event_processor_imp=lambda *_: processor, + ) with FBClient(config) as instance: yield instance @@ -46,44 +48,56 @@ def client(): def sync(client, message): # Exercise the real WebSocket message parser and storage update without # starting a network connection or a ping thread. - streaming = Streaming(Config('unused', 'http://fake', 'http://fake', offline=True), client._broadcaster, - client._update_status_provider, Event()) + streaming = Streaming( + Config("unused", "http://fake", "http://fake", offline=True), + client._broadcaster, + client._update_status_provider, + Event(), + ) streaming._on_message(None, message) -@pytest.mark.parametrize('setting', SETTINGS) -@pytest.mark.parametrize('entry', ['variation', 'variation_detail', 'get', 'get_variation']) -def test_synced_insights_setting_controls_all_evaluation_entries(client, setting, entry): +@pytest.mark.parametrize("setting", SETTINGS) +@pytest.mark.parametrize( + "entry", ["variation", "variation_detail", "get", "get_variation"] +) +def test_synced_insights_setting_controls_all_evaluation_entries( + client, setting, entry +): sync(client, payload(setting)) flag = client._get_flag_internal(FLAG_KEY) if setting is MISSING: - assert 'insightsEnabled' not in flag + assert "insightsEnabled" not in flag else: - assert flag['insightsEnabled'] == setting - assert type(flag['insightsEnabled']) is type(setting) + assert flag["insightsEnabled"] == setting + assert type(flag["insightsEnabled"]) is type(setting) - if entry in ('get', 'get_variation'): + if entry in ("get", "get_variation"): states = client.get_all_latest_flag_variations(USER) client._event_processor.send_event.assert_not_called() result = getattr(states, entry)(FLAG_KEY, False) else: result = getattr(client, entry)(FLAG_KEY, USER, False) - assert (result.variation if entry in ('get', 'variation_detail') else result) is True + assert ( + result.variation if entry in ("get", "variation_detail") else result + ) is True calls = client._event_processor.send_event.call_args_list assert len(calls) == (0 if setting is False else 1) if calls: - variation = calls[0][0][0].to_json_dict()['variations'][0]['variation'] - assert variation['id'] == flag['fallthrough']['variations'][0]['id'] - assert variation['value'] == 'true' + variation = calls[0][0][0].to_json_dict()["variations"][0]["variation"] + assert variation["id"] == flag["fallthrough"]["variations"][0]["id"] + assert variation["value"] == "true" -@pytest.mark.parametrize('setting', SETTINGS) +@pytest.mark.parametrize("setting", SETTINGS) def test_external_json_preserves_insights_setting(setting): - with FBClient(Config('unused', 'http://fake', 'http://fake', offline=True)) as client: + with FBClient( + Config("unused", "http://fake", "http://fake", offline=True) + ) as client: assert client.initialize_from_external_json(payload(setting)) flag = client._get_flag_internal(FLAG_KEY) - assert flag.get('insightsEnabled', MISSING) == setting + assert flag.get("insightsEnabled", MISSING) == setting event = FlagEvent(FBUser.from_dict(USER)) client._evaluator.evaluate(flag, FBUser.from_dict(USER), event) assert bool(event.is_send_event) == (setting is not False) @@ -92,47 +106,53 @@ def test_external_json_preserves_insights_setting(setting): assert isinstance(client._event_processor, NullEventProcessor) -@pytest.mark.parametrize('key,user', [ - ('ff-test-off', USER), - ('ff-evaluation-test', {'key': 'test-target-user'}), - ('ff-evaluation-test', {'key': 'rule-user', 'graduated': 'true'}), - ('ff-evaluation-test', {'key': 'fallthrough-user'}), -]) +@pytest.mark.parametrize( + "key,user", + [ + ("ff-test-off", USER), + ("ff-evaluation-test", {"key": "test-target-user"}), + ("ff-evaluation-test", {"key": "rule-user", "graduated": "true"}), + ("ff-evaluation-test", {"key": "fallthrough-user"}), + ], +) def test_insights_does_not_change_evaluation(client, key, user): sync(client, payload(True)) flag = client._get_flag_internal(key) - user = FBUser.from_dict(dict(user, name='Test User')) + user = FBUser.from_dict(dict(user, name="Test User")) enabled_event = FlagEvent(user) before = client._evaluator.evaluate(flag, user, enabled_event) flag = dict(flag, insightsEnabled=False) disabled_event = FlagEvent(user) after = client._evaluator.evaluate(flag, user, disabled_event) assert (after.id, after.value, after.reason) == ( - before.id, before.value, before.reason) + before.id, + before.value, + before.reason, + ) assert enabled_event.is_send_event - reported = enabled_event.to_json_dict()['variations'][0] + reported = enabled_event.to_json_dict()["variations"][0] assert reported == { - 'featureFlagKey': key, - 'timestamp': reported['timestamp'], - 'variation': {'id': before.id, 'value': before.value, 'reason': before.reason}, + "featureFlagKey": key, + "timestamp": reported["timestamp"], + "variation": {"id": before.id, "value": before.value, "reason": before.reason}, } - assert isinstance(reported['timestamp'], int) + assert isinstance(reported["timestamp"], int) assert not disabled_event.is_send_event def test_patch_updates_future_evaluations_but_preserves_snapshot_eligibility(client): sync(client, payload(True)) enabled_snapshot = client.get_all_latest_flag_variations(USER) - sync(client, payload(False, 'patch', 2)) - assert client._get_flag_internal(FLAG_KEY)['insightsEnabled'] is False + sync(client, payload(False, "patch", 2)) + assert client._get_flag_internal(FLAG_KEY)["insightsEnabled"] is False disabled_snapshot = client.get_all_latest_flag_variations(USER) assert client.variation(FLAG_KEY, USER) is True client._event_processor.send_event.assert_not_called() enabled_snapshot.get(FLAG_KEY) assert client._event_processor.send_event.call_count == 1 - sync(client, payload(True, 'patch', 3)) - assert client._get_flag_internal(FLAG_KEY)['insightsEnabled'] is True + sync(client, payload(True, "patch", 3)) + assert client._get_flag_internal(FLAG_KEY)["insightsEnabled"] is True disabled_snapshot.get_variation(FLAG_KEY) assert client._event_processor.send_event.call_count == 1 assert client.variation(FLAG_KEY, USER) is True @@ -141,11 +161,11 @@ def test_patch_updates_future_evaluations_but_preserves_snapshot_eligibility(cli def test_metrics_and_identify_are_unaffected_and_closed_client_stays_silent(client): sync(client, payload(False)) - client.track_metric(USER, 'purchase') + client.track_metric(USER, "purchase") client.identify(USER) events = [call[0][0] for call in client._event_processor.send_event.call_args_list] assert [type(event) for event in events] == [MetricEvent, UserEvent] - sync(client, payload(True, 'patch', 2)) + sync(client, payload(True, "patch", 2)) client.stop() client.variation(FLAG_KEY, USER) assert client._event_processor.send_event.call_count == 2 @@ -157,12 +177,15 @@ def test_default_processor_only_delivers_enabled_evaluations(client): client._event_processor = processor sync(client, payload(True)) client.variation(FLAG_KEY, USER) - sync(client, payload(False, 'patch', 2)) + sync(client, payload(False, "patch", 2)) client.variation(FLAG_KEY, USER) client.get_all_latest_flag_variations(USER).get(FLAG_KEY) # Shutdown drains accepted events, including the one collected before disable. client.stop() - delivered = [event for call in sender.postJson.call_args_list - for event in json.loads(call[0][1])] + delivered = [ + event + for call in sender.postJson.call_args_list + for event in json.loads(call[0][1]) + ] assert len(delivered) == 1 - assert delivered[0]['variations'][0]['featureFlagKey'] == FLAG_KEY + assert delivered[0]["variations"][0]["featureFlagKey"] == FLAG_KEY diff --git a/tests/test_runtime_safety.py b/tests/test_runtime_safety.py index 53b08e2..b7683a6 100644 --- a/tests/test_runtime_safety.py +++ b/tests/test_runtime_safety.py @@ -1,12 +1,13 @@ import base64 import queue import threading -from time import sleep from concurrent.futures import ThreadPoolExecutor from pathlib import Path +from time import sleep import pytest +import fbclient.streaming as streaming_module from fbclient.client import FBClient from fbclient.config import Config, HTTPConfig from fbclient.data_storage import InMemoryDataStorage @@ -15,22 +16,21 @@ from fbclient.status import DataUpdateStatusProviderImpl from fbclient.status_types import State, StateType from fbclient.streaming import Streaming -import fbclient.streaming as streaming_module from fbclient.update_processor import NullUpdateProcessor from fbclient.utils.http_client import build_http_factory from fbclient.utils.repeatable_task import RepeatableTask - FAKE_ENV_SECRET = base64.b64encode(b"runtime-safety").decode() FAKE_URL = "http://fake" USER = {"key": "runtime-user", "name": "Runtime User"} def make_offline_client(): - client = FBClient(Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - offline=True)) + client = FBClient( + Config( + FAKE_ENV_SECRET, event_url=FAKE_URL, streaming_url=FAKE_URL, offline=True + ) + ) bootstrap = Path("tests/fbclient_test_data.json").read_text() assert client.initialize_from_external_json(bootstrap) return client @@ -38,7 +38,8 @@ def make_offline_client(): def featbit_thread_ids(): return { - thread.ident for thread in threading.enumerate() + thread.ident + for thread in threading.enumerate() if thread.name.startswith("featbit-") } @@ -121,8 +122,7 @@ def get(self, *args, **kwargs): return self.inner.get(*args, **kwargs) controlled_queue = PausingQueue() - monkeypatch.setattr("fbclient.notice_broadcaster.Queue", - lambda: controlled_queue) + monkeypatch.setattr("fbclient.notice_broadcaster.Queue", lambda: controlled_queue) broadcaster = NoticeBroadcater() received = threading.Event() @@ -133,9 +133,7 @@ class Notice: controlled_queue.target = notice broadcaster.add_listener("test", lambda _notice: received.set()) - broadcaster_thread = threading.Thread( - target=lambda: broadcaster.broadcast(notice) - ) + broadcaster_thread = threading.Thread(target=lambda: broadcaster.broadcast(notice)) broadcaster_thread.start() assert controlled_queue.target_started.wait(1.0) @@ -169,11 +167,13 @@ def stop(self): def build_event_processor(_config, _sender): return FailingEventProcessor() - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - update_processor_imp=NullUpdateProcessor, - event_processor_imp=build_event_processor) + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + update_processor_imp=NullUpdateProcessor, + event_processor_imp=build_event_processor, + ) client = FBClient(config) client.identify(USER) client.track_metric(USER, "metric") @@ -203,11 +203,13 @@ def stop(self): def initialized(self): return True - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL, - update_processor_imp=NotifyingUpdateProcessor, - event_processor_imp=lambda config, sender: NullEventProcessor(config, sender)) + config = Config( + FAKE_ENV_SECRET, + event_url=FAKE_URL, + streaming_url=FAKE_URL, + update_processor_imp=NotifyingUpdateProcessor, + event_processor_imp=lambda config, sender: NullEventProcessor(config, sender), + ) client = FBClient(config) listener_states = [] @@ -258,19 +260,13 @@ def initialized(self): event_url=FAKE_URL, streaming_url=FAKE_URL, update_processor_imp=BlockingUpdateProcessor, - event_processor_imp=lambda config, sender: NullEventProcessor( - config, sender - ), + event_processor_imp=lambda config, sender: NullEventProcessor(config, sender), ) client = FBClient(config) first_done = threading.Event() second_done = threading.Event() - first = threading.Thread( - target=lambda: (client.stop(), first_done.set()) - ) - second = threading.Thread( - target=lambda: (client.stop(), second_done.set()) - ) + first = threading.Thread(target=lambda: (client.stop(), first_done.set())) + second = threading.Thread(target=lambda: (client.stop(), second_done.set())) first.start() assert stop_entered.wait(1.0) second.start() @@ -297,11 +293,8 @@ def run_forever(self, **_kwargs): def close(self, status=None): self.closed.set() - monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", - FakeWebSocketApp) - config = Config(FAKE_ENV_SECRET, - event_url=FAKE_URL, - streaming_url=FAKE_URL) + monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", FakeWebSocketApp) + config = Config(FAKE_ENV_SECRET, event_url=FAKE_URL, streaming_url=FAKE_URL) broadcaster = NoticeBroadcater() status = DataUpdateStatusProviderImpl(InMemoryDataStorage()) streaming = Streaming(config, broadcaster, status, threading.Event()) @@ -320,9 +313,13 @@ def test_default_config_objects_are_not_shared(): def test_config_copy_uses_independent_storage_and_exact_queue_capacity(): - original = Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL, - events_max_in_queue=1, - defaults={"flag": {"nested": True}}) + original = Config( + FAKE_ENV_SECRET, + FAKE_URL, + FAKE_URL, + events_max_in_queue=1, + defaults={"flag": {"nested": True}}, + ) copied = original.copy_config_in_a_new_env( base64.b64encode(b"other-environment").decode() ) @@ -334,8 +331,9 @@ def test_config_copy_uses_independent_storage_and_exact_queue_capacity(): def test_http_client_uses_configured_client_certificate(): - config = Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL, - http=HTTPConfig(cert_file="client.pem")) + config = Config( + FAKE_ENV_SECRET, FAKE_URL, FAKE_URL, http=HTTPConfig(cert_file="client.pem") + ) manager = build_http_factory(config).create_http_client() try: assert manager.connection_pool_kw["cert_file"] == "client.pem" @@ -357,12 +355,14 @@ def run_forever(self, **_kwargs): def close(self, status=None): pass - monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", - InvalidRequestWebSocketApp) + monkeypatch.setattr( + "fbclient.streaming.websocket.WebSocketApp", InvalidRequestWebSocketApp + ) status = DataUpdateStatusProviderImpl(InMemoryDataStorage()) broadcaster = NoticeBroadcater() - streaming = Streaming(Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL), - broadcaster, status, ready) + streaming = Streaming( + Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL), broadcaster, status, ready + ) streaming.start() streaming.join(1.0) try: @@ -381,14 +381,17 @@ def fail_constructor(*_args, **_kwargs): attempts[0] += 1 raise RuntimeError("constructor failed") - monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", - fail_constructor) - config = Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL, - streaming_first_retry_delay=0.05) + monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", fail_constructor) + config = Config( + FAKE_ENV_SECRET, FAKE_URL, FAKE_URL, streaming_first_retry_delay=0.05 + ) broadcaster = NoticeBroadcater() - streaming = Streaming(config, broadcaster, - DataUpdateStatusProviderImpl(InMemoryDataStorage()), - threading.Event()) + streaming = Streaming( + config, + broadcaster, + DataUpdateStatusProviderImpl(InMemoryDataStorage()), + threading.Event(), + ) streaming.start() sleep(0.12) streaming.stop() @@ -419,13 +422,14 @@ def send(self, _message): def close(self, status=None): self.closed.set() - monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", - OpenWebSocketApp) + monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", OpenWebSocketApp) broadcaster = NoticeBroadcater() - streaming = Streaming(Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL), - broadcaster, - DataUpdateStatusProviderImpl(InMemoryDataStorage()), - threading.Event()) + streaming = Streaming( + Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL), + broadcaster, + DataUpdateStatusProviderImpl(InMemoryDataStorage()), + threading.Event(), + ) streaming.start() assert opened.wait(1.0) try: @@ -455,8 +459,7 @@ def send(self, _message): def close(self, status=None): self.closed.set() - monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", - OpenWebSocketApp) + monkeypatch.setattr("fbclient.streaming.websocket.WebSocketApp", OpenWebSocketApp) assert streaming_module._WEBSOCKET_TIMEOUT_LOCK.acquire(timeout=1.0) broadcaster = NoticeBroadcater() streaming = Streaming( @@ -484,18 +487,25 @@ def close(self, status=None): def _idle_streaming(): broadcaster = NoticeBroadcater() - streaming = Streaming(Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL), broadcaster, - DataUpdateStatusProviderImpl(InMemoryDataStorage()), threading.Event()) + streaming = Streaming( + Config(FAKE_ENV_SECRET, FAKE_URL, FAKE_URL), + broadcaster, + DataUpdateStatusProviderImpl(InMemoryDataStorage()), + threading.Event(), + ) return streaming, broadcaster -@pytest.mark.parametrize('message', [ - '{"messageType":"pong","data":{}}', - '{"messageType":"unknown","data":{}}', - '{"data":{}}', - '[]', - 'null', -]) +@pytest.mark.parametrize( + "message", + [ + '{"messageType":"pong","data":{}}', + '{"messageType":"unknown","data":{}}', + '{"data":{}}', + "[]", + "null", + ], +) def test_streaming_non_data_sync_message_keeps_connection_open(message): streaming, broadcaster = _idle_streaming() wsapp = _RecordingWebSocketApp() @@ -508,17 +518,22 @@ def test_streaming_non_data_sync_message_keeps_connection_open(message): broadcaster.stop() -@pytest.mark.parametrize('message', [ - 'invalid json', - '{"messageType":"data-sync","data":{}}', - '{"messageType":"data-sync","data":null}', -]) -def test_streaming_invalid_message_is_logged_and_next_sync_is_processed(message, mocker): +@pytest.mark.parametrize( + "message", + [ + "invalid json", + '{"messageType":"data-sync","data":{}}', + '{"messageType":"data-sync","data":null}', + ], +) +def test_streaming_invalid_message_is_logged_and_next_sync_is_processed( + message, mocker +): streaming, broadcaster = _idle_streaming() wsapp = _RecordingWebSocketApp() - process_data = mocker.patch.object(streaming, '_on_process_data', return_value=True) - error_log = mocker.patch.object(streaming_module.log, 'error') - exception_log = mocker.patch.object(streaming_module.log, 'exception') + process_data = mocker.patch.object(streaming, "_on_process_data", return_value=True) + error_log = mocker.patch.object(streaming_module.log, "error") + exception_log = mocker.patch.object(streaming_module.log, "exception") try: streaming._on_message(wsapp, message) assert wsapp.close_statuses == [] @@ -526,9 +541,14 @@ def test_streaming_invalid_message_is_logged_and_next_sync_is_processed(message, process_data.assert_not_called() assert error_log.called or exception_log.called - streaming._on_message(wsapp, '{"messageType":"data-sync","data":' - '{"eventType":"full","featureFlags":[],"segments":[]}}') - process_data.assert_called_once_with({'eventType': 'full', 'featureFlags': [], 'segments': []}) + streaming._on_message( + wsapp, + '{"messageType":"data-sync","data":' + '{"eventType":"full","featureFlags":[],"segments":[]}}', + ) + process_data.assert_called_once_with( + {"eventType": "full", "featureFlags": [], "segments": []} + ) assert wsapp.close_statuses == [] finally: streaming.stop() @@ -539,10 +559,14 @@ def test_streaming_data_processing_failure_keeps_connection_open(mocker): streaming, broadcaster = _idle_streaming() wsapp = _RecordingWebSocketApp() streaming._Streaming__wsapp = wsapp - process_data = mocker.patch.object(streaming, '_on_process_data', side_effect=[False, True]) - error_log = mocker.patch.object(streaming_module.log, 'error') - message = ('{"messageType":"data-sync","data":' - '{"eventType":"full","featureFlags":[],"segments":[]}}') + process_data = mocker.patch.object( + streaming, "_on_process_data", side_effect=[False, True] + ) + error_log = mocker.patch.object(streaming_module.log, "error") + message = ( + '{"messageType":"data-sync","data":' + '{"eventType":"full","featureFlags":[],"segments":[]}}' + ) try: streaming._on_message(wsapp, message) assert wsapp.close_statuses == [] diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..8a75994 --- /dev/null +++ b/uv.lock @@ -0,0 +1,1155 @@ +version = 1 +revision = 5 +requires-python = ">=3.10, <3.15" +resolution-markers = [ + "python_full_version >= '3.11'", + "python_full_version < '3.11'", +] + +[[package]] +name = "backports-tarfile" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/86/72/cd9b395f25e290e633655a100af28cb253e4393396264a98bd5f5951d50f/backports_tarfile-1.2.0.tar.gz", hash = "sha256:d75e02c268746e1b8144c278978b6e98e85de6ad16f8e4b0844a154557eca991", size = 86406, upload-time = "2024-05-28T17:01:54.731Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b9/fa/123043af240e49752f1c4bd24da5053b6bd00cad78c2be53c0d1e8b975bc/backports.tarfile-1.2.0-py3-none-any.whl", hash = "sha256:77e284d754527b01fb1e6fa8a1afe577858ebe4e9dad8919e34c862cb399bc34", size = 30181, upload-time = "2024-05-28T17:01:53.112Z" }, +] + +[[package]] +name = "build" +version = "1.6.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "os_name == 'nt'" }, + { name = "importlib-metadata", version = "9.0.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10.2'" }, + { name = "packaging" }, + { name = "pyproject-hooks" }, + { name = "tomli", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bd/67/4898a44ea4f3f8e213b0954ec0aa0a16971d62a6212d6ea3931e97115b99/build-1.6.1.tar.gz", hash = "sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53", size = 113427, upload-time = "2026-09-10T07:56:00.417Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ad/9b/9fb3585dabcd73a1b2a6267f63f62649347c9e6d072c9fde365b105abb2c/build-1.6.1-py3-none-any.whl", hash = "sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7", size = 31179, upload-time = "2026-09-10T07:55:59.148Z" }, +] + +[[package]] +name = "certifi" +version = "2026.10.23" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, +] + +[[package]] +name = "cffi" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", version = "3.11", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11' and implementation_name != 'PyPy'" }, + { name = "pycparser", version = "3.12", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11' and implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/17/0b/ba385d8ccedf926c3cd06e8e2f327027da5afe5f0eb30f1f7bc43ac55125/cffi-2.1.1-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004", size = 211037, upload-time = "2026-08-03T21:19:17.705Z" }, + { url = "https://files.pythonhosted.org/packages/a3/b9/0f2e58b2cefa33255bff36935d42b13180fe559bba82596540eb404bde7d/cffi-2.1.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9", size = 218652, upload-time = "2026-08-03T21:19:18.735Z" }, + { url = "https://files.pythonhosted.org/packages/75/77/60bebf6f818bec84210ac5b6979ce4eeadce6fbbaabc9c7ab23e506d1ce5/cffi-2.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6", size = 218742, upload-time = "2026-08-03T21:19:22.523Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ae/679bf47e73fd77b352171727f07de559a003f14de5d02b904a6ec1fa73ca/cffi-2.1.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf", size = 221054, upload-time = "2026-08-03T21:19:23.694Z" }, + { url = "https://files.pythonhosted.org/packages/09/b8/eefc0e06913b70aa153bf74c946094a18f58fd4aff11b7f372bfdfdca050/cffi-2.1.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659", size = 213489, upload-time = "2026-08-03T21:19:24.922Z" }, + { url = "https://files.pythonhosted.org/packages/6f/13/4e56852824a03cdf68523a35686f1c28eacd4bd30a7b0a78e682e6e6e1d3/cffi-2.1.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9", size = 220241, upload-time = "2026-08-03T21:19:26.214Z" }, + { url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" }, + { url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" }, + { url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" }, + { url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" }, + { url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" }, + { url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" }, + { url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" }, + { url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" }, + { url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" }, + { url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" }, + { url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" }, + { url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" }, + { url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" }, + { url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" }, + { url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" }, + { url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" }, + { url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" }, + { url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" }, + { url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" }, +] + +[[package]] +name = "cfgv" +version = "3.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4e/b5/721b8799b04bf9afe054a3899c6cf4e880fcf8563cc71c15610242490a0c/cfgv-3.5.0.tar.gz", hash = "sha256:d5b1034354820651caa73ede66a6294d6e95c1b00acc5e9b098e917404669132", size = 7334, upload-time = "2025-11-19T20:55:51.612Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/db/3c/33bac158f8ab7f89b2e59426d5fe2e4f63f7ed25df84c036890172b412b5/cfgv-3.5.0-py2.py3-none-any.whl", hash = "sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0", size = 7445, upload-time = "2025-11-19T20:55:50.744Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/98/77/46e87bcfc45d25ab4db7cfc9bb544bfa3ffd302289ed31ae93f5433eb899/charset_normalizer-3.5.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:195c26fb65950f8fce54e26349852b7bdd7c5f120aeefbcc440b8a20faaed4a3", size = 373348, upload-time = "2026-09-30T04:34:42.843Z" }, + { url = "https://files.pythonhosted.org/packages/52/fc/e518013affcc43c9f919c3ba41bffe9b4ee4aceb0a6462a6243efcca5f2d/charset_normalizer-3.5.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9373ad13ef0d2c0fb761e04e55bfdee5a08b52cef2c882c8fbe9935b1517152e", size = 260860, upload-time = "2026-09-30T04:34:44.817Z" }, + { url = "https://files.pythonhosted.org/packages/d5/ad/2a895c945ee61988dfd9ccee64f0b78dc09f29c9b34d1dd545246d78e0ad/charset_normalizer-3.5.2-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ddf19c062bea7a0cc80f519243d2c01dd091be0cf952a0750d4ad576709559f5", size = 246491, upload-time = "2026-09-30T04:34:46.227Z" }, + { url = "https://files.pythonhosted.org/packages/c9/05/5d958bc8ea503e26be25ada5430fd409cfb45dc22ff33f9f96e649613c99/charset_normalizer-3.5.2-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3d14b50de6bf4d0edf857a9386836846f982b8f524e188e2e68b96d702bcf4aa", size = 290875, upload-time = "2026-09-30T04:34:47.691Z" }, + { url = "https://files.pythonhosted.org/packages/55/e2/06bad57dfdb49cad92c0ba85b6b4fa5827a67df37897287cfef0553843c2/charset_normalizer-3.5.2-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:28a15fdad492a99b6eccfaaed66ef3f74050680545ea61ec8b2f4c538f1f1320", size = 286987, upload-time = "2026-09-30T04:34:49.356Z" }, + { url = "https://files.pythonhosted.org/packages/c4/9f/9f52d2886d52645987d603425482c63c5045a3005db1354a7097e5ed1ae9/charset_normalizer-3.5.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8a893cc101149f80a653f82062ebc95b34525a2614382e1da5458fe7c6997249", size = 271105, upload-time = "2026-09-30T04:34:50.957Z" }, + { url = "https://files.pythonhosted.org/packages/4a/41/e05e19578b7b87e7db2c3ecb884bd09d065274ab41e1f535542e8bae9b06/charset_normalizer-3.5.2-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:619799369eeef6366ed3e8755a5670f4f2f0fb6b30a0fd7264dc0fdc2357058e", size = 269833, upload-time = "2026-09-30T04:34:52.623Z" }, + { url = "https://files.pythonhosted.org/packages/c2/cd/fc7152414561ff78f9c61a4a627025f65fd244abaefc99ac4e75c6169b33/charset_normalizer-3.5.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:447441e76ec720b15e64418d32e092297340387053047c7c694f579efb0ee1d9", size = 263048, upload-time = "2026-09-30T04:34:54.013Z" }, + { url = "https://files.pythonhosted.org/packages/71/71/fb379e399b1013962716a059d551e03bd80b3e02f05d81246886af6c0958/charset_normalizer-3.5.2-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:62588a277bfb59def052abd940703fa35107152bf479781a878617d60faf8fb5", size = 249237, upload-time = "2026-09-30T04:34:55.373Z" }, + { url = "https://files.pythonhosted.org/packages/33/4f/aeadccd6d20882909eb2597ec40eccc05d505e2262f14dc76d7620700657/charset_normalizer-3.5.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:44bd4fbb29dfbeba60e7d2bd000c59e4b21ddb3cc53912b14048d37092706d7c", size = 290756, upload-time = "2026-09-30T04:34:56.867Z" }, + { url = "https://files.pythonhosted.org/packages/b9/7b/e8a92613236b257d3b75d532496eb21f68ad8231d7d56df94497e460112e/charset_normalizer-3.5.2-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:30fcd120b732aa79317f08dee04d7de0847822e4cf7ee0e9f445bb958832252c", size = 269026, upload-time = "2026-09-30T04:34:58.278Z" }, + { url = "https://files.pythonhosted.org/packages/ff/ac/21d5c6b972285c5f095ff78afdc99f3539e3985dfcf7ff1cfbe9e772f529/charset_normalizer-3.5.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:50e3adfb96fc189eb27b1cf62d3b598b89b4bb0420d93a3d3e42e137409011be", size = 287601, upload-time = "2026-09-30T04:34:59.703Z" }, + { url = "https://files.pythonhosted.org/packages/59/72/263491ec1494a194b16fcbff88a0220f2af633738c79e92b4d7189226322/charset_normalizer-3.5.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b736353c0a625bbd5fcec108576e2385db3496f4f771f785ff32e108d3c3bc45", size = 272660, upload-time = "2026-09-30T04:35:01.26Z" }, + { url = "https://files.pythonhosted.org/packages/38/7a/81f1186c57e406233969ae96b5fd0c907254ab8b6e47da8ae24cd20fb9d7/charset_normalizer-3.5.2-cp310-cp310-win32.whl", hash = "sha256:f5833ad231be5eb6553de524a70f48d71b2c8563101750531e0b80184e175cd4", size = 187301, upload-time = "2026-09-30T04:35:02.659Z" }, + { url = "https://files.pythonhosted.org/packages/ae/ab/fb8b5178fdf7bf68efa61cbe892286bc9f73846f26147d4725fb89388475/charset_normalizer-3.5.2-cp310-cp310-win_amd64.whl", hash = "sha256:1461ac396c4fdb983a675f20aa555624f0ee18ac83d832b9244ffff3d8055275", size = 215446, upload-time = "2026-09-30T04:35:04.011Z" }, + { url = "https://files.pythonhosted.org/packages/36/40/e270b74e0d3f583d78d902960845a149e80eb7c737ee5613ccc6efc7264b/charset_normalizer-3.5.2-cp310-cp310-win_arm64.whl", hash = "sha256:c6708715abcf3c73b99508253e961a9967f02fe536532834149574eda6de0d1c", size = 203389, upload-time = "2026-09-30T04:35:05.577Z" }, + { url = "https://files.pythonhosted.org/packages/22/67/6a0b94a7960d5e1b5eacd2fb529f3fccc47db4644f7f0a7cfdcfc3be578a/charset_normalizer-3.5.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3d21b8b13c7592db2ac5e544a6d83187b995257472b0c9e8351b6d507ae37ed6", size = 370642, upload-time = "2026-09-30T04:35:06.91Z" }, + { url = "https://files.pythonhosted.org/packages/fb/94/01009e13b94041599004edf32e56e382c24e570f60f79bab8efe45cfe1eb/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d760fe2a4d7c3b226cb9026d6a842868d52a7901bd98420e1baf14e80da85cf5", size = 259280, upload-time = "2026-09-30T04:35:08.448Z" }, + { url = "https://files.pythonhosted.org/packages/66/85/3b5358f60a13210f0b67d3755c168ef758701b021e655d88d4da28554467/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c9790464842f85f437dbbb54417eda1e0e6bfc52dd8d22d6fd1c994b73b2dc74", size = 245335, upload-time = "2026-09-30T04:35:10.104Z" }, + { url = "https://files.pythonhosted.org/packages/74/75/77c1c479b09ecd751d1e767b251ea5c14d4d50ff757bf404afab2692f600/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4685902cf26edf013ed7a3da0f426ebba7a00ebb9541386d835afbf002c11cab", size = 291707, upload-time = "2026-09-30T04:35:11.575Z" }, + { url = "https://files.pythonhosted.org/packages/0b/0d/363f78cacb70f58f15f4b083961bbd9d292f335d3f5c66fc4f1cfe69cb90/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4495c5002a7b28557e7e222e77e0b661183e432b7d6d2e788101e3f240e05b8c", size = 286747, upload-time = "2026-09-30T04:35:13.022Z" }, + { url = "https://files.pythonhosted.org/packages/e4/ed/cf505d3011ffceb12c2067a7a5d3cfe92b875d4d44bb0ff0d69375e2c184/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:211d5a3eb6af8f513b8d4ca19a8c1b7accab1b5f0d3175f9826b03c1a920dc1f", size = 269972, upload-time = "2026-09-30T04:35:14.606Z" }, + { url = "https://files.pythonhosted.org/packages/15/d8/f0a93a431d170e7ca681d4f6650fee3de934d18560e474e7267eb4b0f987/charset_normalizer-3.5.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ef4fcbf3327382cd4c9f540babd61248208af7b93eec4de397b4d5f58a09e288", size = 269339, upload-time = "2026-09-30T04:35:16.087Z" }, + { url = "https://files.pythonhosted.org/packages/86/bd/9b2bd1c5b7af02462c9752d33994834ff972a96b4c483eefde9e594488e2/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:bd16aabe4a02a297c23417aa17ac6299dbd8c49f673bcd645b4929b11f5a4400", size = 261683, upload-time = "2026-09-30T04:35:17.488Z" }, + { url = "https://files.pythonhosted.org/packages/76/a5/cac540ab0fd61f3fec88ad3dbb64509e71424593d73cfdfff5ab3e4db279/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:fb9e68df06293761f9fe66ade60a9bc6d0f5e42b8acf2939a9158af86ab0e5bd", size = 248143, upload-time = "2026-09-30T04:35:18.849Z" }, + { url = "https://files.pythonhosted.org/packages/71/7a/ff467301deef2089fad87f72df9e000a26a78fec7acbb18e1999371b8369/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:59f63901b0031c3136cf64704dcb21de0bbae62ce2c9529bc39d27665463de37", size = 292358, upload-time = "2026-09-30T04:35:20.326Z" }, + { url = "https://files.pythonhosted.org/packages/ad/77/22d7e785d1e210afc2e2f58600dd1799d17a35665faf84383f002826c5f8/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:304d5463e65a35d7bb0850550e0780395395f6fcf452f04db7d5ca7cecc425ac", size = 268766, upload-time = "2026-09-30T04:35:21.72Z" }, + { url = "https://files.pythonhosted.org/packages/ae/91/e8e946267f1c2d9e2bd651726e2fbd2addf02c4d36cea5069e32ca9d7bb5/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9cf9b1a857e25c4baceeb3624e92a56df3668f398c4acba74e174d81fb4d1d3a", size = 287432, upload-time = "2026-09-30T04:35:23.273Z" }, + { url = "https://files.pythonhosted.org/packages/4e/88/7561d8a88d555e7df6623abe7c0070b4baf47549b9408783a2ae0a1a6cf7/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:114e4d0c92d618409ed82a99e22b5c5e768fe995f2973f78265f4524f49d4640", size = 272470, upload-time = "2026-09-30T04:35:24.655Z" }, + { url = "https://files.pythonhosted.org/packages/35/7e/578c702301ec036f01455f30744a08d2b42f6ab35b9b2d4bf8cae0ef2a80/charset_normalizer-3.5.2-cp311-cp311-win32.whl", hash = "sha256:2625388c6c754520c37abaf3b41eb34d1cc4a373f457898f08606c8e362b891d", size = 186688, upload-time = "2026-09-30T04:35:26.225Z" }, + { url = "https://files.pythonhosted.org/packages/e8/fc/fdf8cf52ff21cd5bf158f20978991cf985325842f74283eb6df26c8a39d8/charset_normalizer-3.5.2-cp311-cp311-win_amd64.whl", hash = "sha256:87e50a3e7cb90af586b6c5faf23e302a970415ac73bd7bd90a515a04b427ef96", size = 214932, upload-time = "2026-09-30T04:35:27.796Z" }, + { url = "https://files.pythonhosted.org/packages/97/66/3e45a506d8110b632541faf9a9470185aa9878f1ed44020f31346c1c5e5b/charset_normalizer-3.5.2-cp311-cp311-win_arm64.whl", hash = "sha256:254eb48b9fa5ee9898a3c445825a1f340fe53712a098904b39b0bddba8ea3cb1", size = 202828, upload-time = "2026-09-30T04:35:29.259Z" }, + { url = "https://files.pythonhosted.org/packages/e7/c8/693809898870237d82785a03f3b2b58fe4c9f14669f84a7d4e623c92a59e/charset_normalizer-3.5.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ed2a239c0ea213acc1908150a3037257083c7c083128f1a4cec2ec4b97dca491", size = 367780, upload-time = "2026-09-30T04:35:30.888Z" }, + { url = "https://files.pythonhosted.org/packages/c9/87/2fea8c13dc24b3ca9c6f803a5b2dfdeae73eb4f9e12c7885ed908ff0433c/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b91363207bd9dc966a691e959bb47f64b30f7ac4b072be9968b366982f7db77c", size = 246730, upload-time = "2026-09-30T04:35:32.286Z" }, + { url = "https://files.pythonhosted.org/packages/a8/9e/09efac30b937722f46d3110ba30b875b24b2e3a266ed746cc4e376a94d80/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:38a873987f3be698494da8b2e3085e29da02da7b633dce73e79c699a113d7bf0", size = 237707, upload-time = "2026-09-30T04:35:33.709Z" }, + { url = "https://files.pythonhosted.org/packages/9e/18/70d76670b13686237863a379928d60bd10e021f17d243ab3d7014c4a5f4e/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:355ad8011081dec5412240c087a9a0c9d4d5039f3ed11a3f13e18c2b29b56c51", size = 273050, upload-time = "2026-09-30T04:35:35.138Z" }, + { url = "https://files.pythonhosted.org/packages/54/e2/77a8b09d5adc013ed07b95b01b8b8fa5441c4e810e83ee7e4aae2fa4d91a/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ee21e28f0430bd6dc9086c6e525d5e818a44a5ad19720c8a0ef766792f3eb5e5", size = 270345, upload-time = "2026-09-30T04:35:36.502Z" }, + { url = "https://files.pythonhosted.org/packages/7f/c5/38806a25ab5e65fc178f39affeda20858efafede2fce1ffc2556cfc9fe73/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3d31298449090ab8d47b7b1b2a555ff73cac7ed438a08b7ac160980c7ebed649", size = 257601, upload-time = "2026-09-30T04:35:37.919Z" }, + { url = "https://files.pythonhosted.org/packages/ae/8d/213565184708fdb263ae55e2c04ee1ff748129dd65d48ed0e3502da9c85a/charset_normalizer-3.5.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5cde776b7cc66e4f6c99612cea4aa7269aa65863f7a15841b2c264f103822f4e", size = 252222, upload-time = "2026-09-30T04:35:39.544Z" }, + { url = "https://files.pythonhosted.org/packages/7e/24/76d2cefc25472531e4c5c7dfff68865eb1c39b78482f0fdc15b46f047830/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ae4f5fea5b8b8ccff88238cc8569303e5ee95efae67fa62922a311397a71f346", size = 248482, upload-time = "2026-09-30T04:35:41.088Z" }, + { url = "https://files.pythonhosted.org/packages/7d/dc/65a801b66ab4c197e22c433ab25e7ac24324ac6f45a2269aca42cce309bf/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f7d486c83842422badd511868fd8a9a20e9407ace71564b6af47ce7e60a336c1", size = 241206, upload-time = "2026-09-30T04:35:42.59Z" }, + { url = "https://files.pythonhosted.org/packages/a7/95/ca9b5eabde673002c6f1e7ada1b223916fe18f6d661da7aabd4d643718f1/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:11a4d68a6ecda3292cb1e50239e111543ba5d709bb62a6b4ea1afcfa729d8875", size = 273190, upload-time = "2026-09-30T04:35:44.347Z" }, + { url = "https://files.pythonhosted.org/packages/2d/8b/803b4d2a3f6e1740f63f1e87b04d14b42f3d4fdfe6ed7d4db2d34102b14f/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d6734d2ef8a50fbf8445c139477da401f50d62a0606bf00e20ec6d87773fefb1", size = 253527, upload-time = "2026-09-30T04:35:45.915Z" }, + { url = "https://files.pythonhosted.org/packages/a9/55/93c0e5dbd085ae0471346026abbe7e0db9ea2d6fea74e51f0b5a46f233a7/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a815775b6c38d4e0ff7bcffbeba67feded90202bb6a226b8dd35f1c855217413", size = 271285, upload-time = "2026-09-30T04:35:47.49Z" }, + { url = "https://files.pythonhosted.org/packages/95/69/0dbd0e0b9b16cfa816cdfcb3e2e3854a1f680dc07fb1245ea125e7448060/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23851fb4e1b85ed3f6c2a27b777cdfe2e19fb5b38429a8faf38c7542b7665869", size = 260010, upload-time = "2026-09-30T04:35:48.996Z" }, + { url = "https://files.pythonhosted.org/packages/58/9d/e7b88e7b1bf403590c3b573277b5e1e488c68c7a6fbacca310a2c324e90c/charset_normalizer-3.5.2-cp312-cp312-win32.whl", hash = "sha256:db19d07e2e0129e974a0e65d0064fc222a446cd5122c2fd4184d2af9fc734a9e", size = 184125, upload-time = "2026-09-30T04:35:50.777Z" }, + { url = "https://files.pythonhosted.org/packages/eb/e6/e6e083884cbcfd49c64865af05027fe7011be7b2d9179524f099a1b611f3/charset_normalizer-3.5.2-cp312-cp312-win_amd64.whl", hash = "sha256:780fbe7cab297b81dad9fb8dc5eb003c0468ffb0d9e5f65068c53a34661a96bc", size = 207486, upload-time = "2026-09-30T04:35:52.194Z" }, + { url = "https://files.pythonhosted.org/packages/c4/e3/017aea0911ada7405a825c7d937eb3a13009664e2f5b38e8c4bbf2abf894/charset_normalizer-3.5.2-cp312-cp312-win_arm64.whl", hash = "sha256:e2af3aad578aa6bd1384bcf4750fc285e5a9de53f40b7d41e5a0bf748edeb2b3", size = 196734, upload-time = "2026-09-30T04:35:53.636Z" }, + { url = "https://files.pythonhosted.org/packages/c5/34/68292d68512768591aaff07c59bb53ee31341c87759433a859c4641a50c2/charset_normalizer-3.5.2-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5", size = 225946, upload-time = "2026-09-30T04:35:55.313Z" }, + { url = "https://files.pythonhosted.org/packages/e3/80/bee0b01b90ccd5322ae1d0abb33fab1bd95b7c2eadaf02aeccf22e04ee83/charset_normalizer-3.5.2-cp313-cp313-android_24_x86_64.whl", hash = "sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e", size = 238619, upload-time = "2026-09-30T04:35:56.863Z" }, + { url = "https://files.pythonhosted.org/packages/78/6e/60ce52a85a7fd631ae8482ae6d74521014ca2f255892679484dc04d7ef56/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a", size = 206701, upload-time = "2026-09-30T04:35:58.639Z" }, + { url = "https://files.pythonhosted.org/packages/36/8c/71aafad23f971afc84c2b295bc0c560739ce1dac558aad9fec22e39f3639/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d", size = 210506, upload-time = "2026-09-30T04:36:00.147Z" }, + { url = "https://files.pythonhosted.org/packages/91/da/3c5a7798c046df7d2d68ad653cf5b6c5a8bfee225055a843c6f2f42aac1a/charset_normalizer-3.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055", size = 366626, upload-time = "2026-09-30T04:36:01.77Z" }, + { url = "https://files.pythonhosted.org/packages/e1/16/710ac3de2ee354e2bd1a9c94efe45a2d27b5c6ad39b2d6a905be2c094b6c/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858", size = 244624, upload-time = "2026-09-30T04:36:03.389Z" }, + { url = "https://files.pythonhosted.org/packages/d6/39/45c7439f5b63d24f7d5b2a1d760f34af7628782d7144b4cc8ded45c2d4bc/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234", size = 235731, upload-time = "2026-09-30T04:36:04.987Z" }, + { url = "https://files.pythonhosted.org/packages/4d/34/38f3154785ce92e9f56eb226f4d35bdfae6b008480dd055f58837a89c810/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21", size = 270352, upload-time = "2026-09-30T04:36:06.412Z" }, + { url = "https://files.pythonhosted.org/packages/04/f3/859f74e7babc977705026b30593b3be04049632a522fb7000f83c033d747/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718", size = 267393, upload-time = "2026-09-30T04:36:07.865Z" }, + { url = "https://files.pythonhosted.org/packages/4b/85/41d27f234b82e47c167a5f6c0f62501dc0c640585ff4aba79e08a390336a/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4", size = 254660, upload-time = "2026-09-30T04:36:09.248Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/5d1a997587febe5b26d8daffe363b5c1a091cece19828eec6502fd09c5ef/charset_normalizer-3.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3", size = 249996, upload-time = "2026-09-30T04:36:10.73Z" }, + { url = "https://files.pythonhosted.org/packages/b3/1f/d1e78246f7ed60c8c8d606b4ac27f66ce49cc3e95f24893ccbeba9f77302/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c", size = 247028, upload-time = "2026-09-30T04:36:12.294Z" }, + { url = "https://files.pythonhosted.org/packages/8e/37/eba316edd4f0c4d3a5d945924c4eeeae59abac4056aa815d8a4268f863a2/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429", size = 240562, upload-time = "2026-09-30T04:36:13.887Z" }, + { url = "https://files.pythonhosted.org/packages/c8/8e/aaa037d40ca9ef045977f1a661048b1aa33f223adfce3452fe9be9f79d14/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f", size = 271699, upload-time = "2026-09-30T04:36:15.41Z" }, + { url = "https://files.pythonhosted.org/packages/26/19/1c1c9f75974adf523b87f34b8a2adc5a435cd65916812bcbd0dfa45f9a29/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a", size = 252030, upload-time = "2026-09-30T04:36:16.839Z" }, + { url = "https://files.pythonhosted.org/packages/bc/90/0660ef18e18df0a4d2a1a0edff7dfbba42d4e50ef2425557a5bb7051f77b/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00", size = 268565, upload-time = "2026-09-30T04:36:18.468Z" }, + { url = "https://files.pythonhosted.org/packages/79/ba/57adc269824e8658f1a0f97a9e514c247445a9632b3419b97e0ba37f16dc/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d", size = 257627, upload-time = "2026-09-30T04:36:19.938Z" }, + { url = "https://files.pythonhosted.org/packages/9a/85/33abd4315c052d3d4f54c92b1ee49bfbc0dc7115a981e462a793b6d2ab87/charset_normalizer-3.5.2-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3", size = 143407, upload-time = "2026-09-30T04:36:21.376Z" }, + { url = "https://files.pythonhosted.org/packages/4f/de/6435e18d1aaa5d910b896d551411c96af1f42a0c56c29afc2016c61ccc2e/charset_normalizer-3.5.2-cp313-cp313-win32.whl", hash = "sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd", size = 183207, upload-time = "2026-09-30T04:36:22.776Z" }, + { url = "https://files.pythonhosted.org/packages/9c/76/b8ec57f4e9ee3253541abf95e4a462c0175fe8032dcd070f1f2421240942/charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639", size = 206489, upload-time = "2026-09-30T04:36:24.306Z" }, + { url = "https://files.pythonhosted.org/packages/3e/60/c647c6ae47480221e875ea5d743ff94946f7416e3c69415ab772928e8d32/charset_normalizer-3.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3", size = 195501, upload-time = "2026-09-30T04:36:25.846Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" }, + { url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" }, + { url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" }, + { url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" }, + { url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" }, + { url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" }, + { url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" }, + { url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" }, + { url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" }, + { url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" }, + { url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" }, + { url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" }, + { url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" }, + { url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" }, + { url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" }, + { url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" }, + { url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" }, + { url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" }, + { url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" }, + { url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" }, + { url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" }, + { url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" }, + { url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" }, + { url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" }, + { url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" }, + { url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" }, + { url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" }, + { url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" }, + { url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" }, + { url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" }, + { url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" }, + { url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, + { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, + { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, + { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, + { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, + { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, +] + +[[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, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "cryptography" +version = "50.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9d/af/182eb91b0df3fe75c4d9f26fe70684569566745f6ba7e5c9c73a862c5252/cryptography-50.0.2.tar.gz", hash = "sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5", size = 880623, upload-time = "2026-09-30T15:30:04.884Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d9/69/c9bd862c3bf43d6399c433caf002df16e2dffd4be49bdf515cda38038711/cryptography-50.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0", size = 4731146, upload-time = "2026-09-30T14:43:47.113Z" }, + { url = "https://files.pythonhosted.org/packages/21/69/64cef1f702bf6657e0cc186ed1a2891d50d29fb41586b254e1c07adea261/cryptography-50.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2", size = 4719841, upload-time = "2026-09-30T14:43:49.01Z" }, + { url = "https://files.pythonhosted.org/packages/38/6b/61a3f8d8c5e1e49a6cddccafc4015cc1c0021360ab0acb4080e7a423644a/cryptography-50.0.2-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480", size = 4738340, upload-time = "2026-09-30T14:43:50.932Z" }, + { url = "https://files.pythonhosted.org/packages/1a/f1/b474e930c4d910328780e3940da76f5aa5cbc48ce1fc14e44d239d9ea9db/cryptography-50.0.2-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856", size = 4753050, upload-time = "2026-09-30T14:43:55.272Z" }, + { url = "https://files.pythonhosted.org/packages/7c/52/9af10e80ac16b0fcc2123f9cbd5e7afbd0fd5075bb7a607c592258a39cda/cryptography-50.0.2-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e", size = 4376724, upload-time = "2026-09-30T14:43:57.24Z" }, + { url = "https://files.pythonhosted.org/packages/71/37/6202e488cc1eb625ea110c292c6bda92823176e023f427d8d5660ce8d632/cryptography-50.0.2-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04", size = 4737859, upload-time = "2026-09-30T14:43:59.541Z" }, + { url = "https://files.pythonhosted.org/packages/d3/69/2c833a049475e0a3444e94c7d0aca0aa51d166374a449b09e92ac98138de/cryptography-50.0.2-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079", size = 4752576, upload-time = "2026-09-30T14:44:04.545Z" }, + { url = "https://files.pythonhosted.org/packages/6c/5d/906970b83bbfc1f5bbfb677a143c181f2801f23b6a7204a3b47c42c97e65/cryptography-50.0.2-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51", size = 4870819, upload-time = "2026-09-30T14:44:06.884Z" }, + { url = "https://files.pythonhosted.org/packages/68/e3/f2298d3bb55e0c4a91841ec4d01b3f020ba8c5fbf15ccdcc6dcf03f97025/cryptography-50.0.2-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93", size = 5030152, upload-time = "2026-09-30T14:44:09.443Z" }, + { url = "https://files.pythonhosted.org/packages/19/8e/aa1fc533d4546b127b45de8aa024eb5933d23eff9debfe25931e56861095/cryptography-50.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047", size = 4710431, upload-time = "2026-09-30T14:44:15.427Z" }, + { url = "https://files.pythonhosted.org/packages/6a/64/72bc3f75176e7e406b748a3e3830432b8c51297b38368713df04dc04898a/cryptography-50.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539", size = 4694824, upload-time = "2026-09-30T14:44:17.69Z" }, + { url = "https://files.pythonhosted.org/packages/4e/c6/62c77550edfa5ca3f14bf44a1e6739b9fa09d6e998a11d97ed8213bccc98/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1", size = 4716967, upload-time = "2026-09-30T14:44:19.661Z" }, + { url = "https://files.pythonhosted.org/packages/aa/9a/6f2f0304d634ceafdeaf23e84537336664ac419b5d07611675c2ad3f6b7a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18", size = 4727698, upload-time = "2026-09-30T14:44:24.178Z" }, + { url = "https://files.pythonhosted.org/packages/1d/de/66bcf9244d118663b2e1aaded8990f4640e3d7b7411870a5765f252074d2/cryptography-50.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37", size = 4354821, upload-time = "2026-09-30T14:44:26.263Z" }, + { url = "https://files.pythonhosted.org/packages/bd/e6/db28a28c7b6c676addce89136de3d8db49ea825a8c863472e36e42ead4ad/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2", size = 4716748, upload-time = "2026-09-30T14:44:28.447Z" }, + { url = "https://files.pythonhosted.org/packages/6c/01/03263395f74d50b071e9e66daace3f8bef80493e5d410726f2ba8554736b/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05", size = 4727268, upload-time = "2026-09-30T14:44:32.92Z" }, + { url = "https://files.pythonhosted.org/packages/eb/94/2bfe8f29ec0cc9c0d99359c4161adf32858e4934b72c6d100d2ac0bbe962/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e", size = 4849503, upload-time = "2026-09-30T14:44:34.969Z" }, + { url = "https://files.pythonhosted.org/packages/54/44/e80651ecbf0e42b62e2bb5f5768916e07eea72e1297338956a61df361f88/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e", size = 5004057, upload-time = "2026-09-30T14:44:37.064Z" }, + { url = "https://files.pythonhosted.org/packages/8c/75/32ac2a56243d778805c16ca6a32b8f74fb757df7e28d7ecb560afafb59cf/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a", size = 4956267, upload-time = "2026-09-30T14:44:43.693Z" }, + { url = "https://files.pythonhosted.org/packages/aa/a4/2c8d734e43d97f0842ee9f1b7b4bfb3d0cf5e19edebf43c2afe6675c2320/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67", size = 4966465, upload-time = "2026-09-30T14:44:45.769Z" }, + { url = "https://files.pythonhosted.org/packages/c2/58/ee288c829a6f41f6235ae9dd33d82fd19b45442b65b4c8a3da36963d9f7a/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc", size = 4959356, upload-time = "2026-09-30T14:44:48.211Z" }, + { url = "https://files.pythonhosted.org/packages/02/a8/8df951850d6b31d2a00218f19e2b3f999523437ed7a819df7fa427942fca/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7", size = 5001199, upload-time = "2026-09-30T14:44:53.379Z" }, + { url = "https://files.pythonhosted.org/packages/8b/f9/36b3022218ce75b7cdf068fb95f809f9bd0d820e4955ef43b90c255cc7ac/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_31_armv7l.whl", hash = "sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408", size = 4629333, upload-time = "2026-09-30T14:44:55.635Z" }, + { url = "https://files.pythonhosted.org/packages/8c/72/20f99a219f6af47cdd1cbd978c243b92d71496e168a746138af44ded4f29/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl", hash = "sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b", size = 4958822, upload-time = "2026-09-30T14:44:59.639Z" }, + { url = "https://files.pythonhosted.org/packages/24/95/83378121ef3eaaaf71d4b781577ff794acb39b9e1b87a3f156898c8497ed/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl", hash = "sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c", size = 5000859, upload-time = "2026-09-30T14:45:05.009Z" }, + { url = "https://files.pythonhosted.org/packages/22/f7/70fd7ae4d1dbfa7ba29b02e1b9068771519a86027756510b700ce81086a8/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be", size = 5092151, upload-time = "2026-09-30T15:29:15.932Z" }, + { url = "https://files.pythonhosted.org/packages/d4/be/688367b74de86984bd58d8efacfc7c9e68b89a6a22ced0fb4f38db50254a/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020", size = 5286120, upload-time = "2026-09-30T15:29:18.309Z" }, + { url = "https://files.pythonhosted.org/packages/d5/8d/6d585339bedf85d45044c85d8412dac53f2bb6f918e8b7777efba1787844/cryptography-50.0.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd", size = 4756166, upload-time = "2026-09-30T15:29:24.58Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f1/1c1f6874e8550cfddd4b688ceb38cefb6ed15ceed224d56f133f3d88c214/cryptography-50.0.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767", size = 4749145, upload-time = "2026-09-30T15:29:26.807Z" }, + { url = "https://files.pythonhosted.org/packages/c1/63/61b15dc1a8de03fe0adbe3fd7608b3ad5c73bf50993bbcb1faaa930afe33/cryptography-50.0.2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454", size = 4763638, upload-time = "2026-09-30T15:29:28.588Z" }, + { url = "https://files.pythonhosted.org/packages/4f/87/ef344a9e616871f2519c22d6afcda79ddd5d35e9592d95eb6e677608d055/cryptography-50.0.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5", size = 4781387, upload-time = "2026-09-30T15:29:32.605Z" }, + { url = "https://files.pythonhosted.org/packages/90/5b/f2fdb13cd0b96f6f932c8627bb292a45f11c64d21620a8e120aee9a3b848/cryptography-50.0.2-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107", size = 4403790, upload-time = "2026-09-30T15:29:34.374Z" }, + { url = "https://files.pythonhosted.org/packages/bc/ce/7e4f662b1e3c393513569e402cfc85ac7da0bd3d5435e122a3140219eb2d/cryptography-50.0.2-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602", size = 4764319, upload-time = "2026-09-30T15:29:36.149Z" }, + { url = "https://files.pythonhosted.org/packages/40/cf/6b5c8e2fd9202d98988ab7cb5cc5c991704c4ad55f492ff408e4969f83f1/cryptography-50.0.2-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c", size = 4780973, upload-time = "2026-09-30T15:29:41.251Z" }, + { url = "https://files.pythonhosted.org/packages/10/bf/8d6ebc7dded797bd0f0160d52188021211f011a2b164ef0ae1dac4587465/cryptography-50.0.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e", size = 4897738, upload-time = "2026-09-30T15:29:43.106Z" }, + { url = "https://files.pythonhosted.org/packages/d4/aa/f3f6e0de7e6253b8baa8b2d8fb9d50924fa75cee3d4624bd4bc1208ee923/cryptography-50.0.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94", size = 5058280, upload-time = "2026-09-30T15:29:44.827Z" }, + { url = "https://files.pythonhosted.org/packages/1d/7a/f08d34ce09d60f89ebd391e2ebc6ba2b995e6dd7552f41820f8085f94e53/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67", size = 4716035, upload-time = "2026-09-30T15:29:48.681Z" }, + { url = "https://files.pythonhosted.org/packages/45/67/e18fb65592451a2acb76e9f2fbe14e0f47a8318b4c5430f1633851d03daa/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a", size = 4726917, upload-time = "2026-09-30T15:29:50.608Z" }, + { url = "https://files.pythonhosted.org/packages/83/28/38fdce17e60f6b825e69fc3b7f75e70a6612759980704697e1de4cbfaf6e/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48", size = 4715341, upload-time = "2026-09-30T15:29:52.522Z" }, + { url = "https://files.pythonhosted.org/packages/b6/b1/d9121a717e0f893c64bd6ca7702614778d7df2a5c309128a002421788516/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42", size = 4726322, upload-time = "2026-09-30T15:29:54.263Z" }, +] + +[[package]] +name = "distlib" +version = "0.4.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/68/bc/d36966de7304047a1001a7559fbf266c464bb5d8cc85464536ef8c9bcc32/distlib-0.4.4.tar.gz", hash = "sha256:ca4175b4ac7f71223cc30ed7248c45d2b38c2439d8ee6e498ab67ed63cf3508d", size = 621304, upload-time = "2026-10-16T13:56:34.203Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/2b/238f02a4927fa2e27aa995371d240a468b52e42eae44a678434aff736b38/distlib-0.4.4-py2.py3-none-any.whl", hash = "sha256:cf09d55b1e85a89576b036aeb71550bfd68320f3f21761ca329eadadad918638", size = 472099, upload-time = "2026-10-16T13:56:32.053Z" }, +] + +[[package]] +name = "docutils" +version = "0.23" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/39/a4/5180d9afc57e8fca05601dd652bdff19604c218814037fe90ffc7625a50a/docutils-0.23.tar.gz", hash = "sha256:746f5060322511280a1e50eb76846ed6bf2342984b2ac04dc42caa1a8d78799e", size = 2303823, upload-time = "2026-05-27T17:41:06.934Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/91/30151a39f7570f448ed84529390628a651d7f27c87d73c9b887f8189695e/docutils-0.23-py3-none-any.whl", hash = "sha256:25d013af9bf23bc1c7b2b093dff4208166c53a94786c9e447808335ef1185fea", size = 634701, upload-time = "2026-05-27T17:40:58.442Z" }, +] + +[[package]] +name = "exceptiongroup" +version = "1.3.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/85/ac/f882fe3234606340c8729372da0fb98c634b97a560c9d375d9afea21496b/exceptiongroup-1.3.2.tar.gz", hash = "sha256:ca82e69f0cb535fbde934885744b67669a3efddd50fe7bc00d3398839fcaddec", size = 34687, upload-time = "2026-11-19T22:10:16.815Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/7d/0fb19ccdf794c448141461180d5992c50402f69f8515a801bfac7ad65f45/exceptiongroup-1.3.2-py3-none-any.whl", hash = "sha256:41c6a70dfec22050d3d8b43386b059a4dc0bca3f3d40a40971cb206fff1785af", size = 16854, upload-time = "2026-11-19T22:10:15.746Z" }, +] + +[[package]] +name = "fb-python-sdk" +version = "1.2.1" +source = { editable = "." } +dependencies = [ + { name = "certifi" }, + { name = "python-dateutil", version = "3.0.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "python-dateutil", version = "4.0.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "urllib3" }, + { name = "websocket-client" }, +] + +[package.optional-dependencies] +dev = [ + { name = "build" }, + { name = "pytest" }, + { name = "pytest-mock" }, + { name = "twine" }, +] + +[package.dev-dependencies] +dev = [ + { name = "pre-commit", version = "4.6.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "pre-commit", version = "4.7.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "pytest" }, + { name = "pytest-mock" }, + { name = "ruff" }, +] +release = [ + { name = "twine" }, +] + +[package.metadata] +requires-dist = [ + { name = "build", marker = "extra == 'dev'" }, + { name = "certifi", specifier = ">=2018.4.16" }, + { name = "pytest", marker = "extra == 'dev'" }, + { name = "pytest-mock", marker = "extra == 'dev'" }, + { name = "python-dateutil", specifier = ">=2.8.2" }, + { name = "twine", marker = "extra == 'dev'" }, + { name = "urllib3", specifier = ">=1.26.5,<3" }, + { name = "websocket-client", specifier = ">=1.0.0" }, +] +provides-extras = ["dev"] + +[package.metadata.requires-dev] +dev = [ + { name = "pre-commit", specifier = ">=4.4.0" }, + { name = "pytest" }, + { name = "pytest-mock" }, + { name = "ruff" }, +] +release = [{ name = "twine" }] + +[[package]] +name = "filelock" +version = "4.1.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/4c/58/6fd434bec86eff7c38a3168454cb132b762b2bea9b3ac094101a2f7bc32a/filelock-4.1.0.tar.gz", hash = "sha256:ad7f724afef953e731b1cc39bcd3a09166d72ed7fcdf29e6e88b1c3235c6715d", size = 561277, upload-time = "2026-10-09T19:57:20.34Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ee/86/032133892a5de43b5a98200b01aadcad68cc255e274a762f08b8a76d2912/filelock-4.1.0-py3-none-any.whl", hash = "sha256:2ce9818e3e2d8f284c1a964414447ef148d42a5fd5e2a477a7118e574b293ec1", size = 133003, upload-time = "2026-10-09T19:57:18.716Z" }, +] + +[[package]] +name = "filelock" +version = "4.2.12" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/52/aa/8ccff8da9a27e089727fcffd3c5b61708383217e47eb1e1b8af37b1dd166/filelock-4.2.12.tar.gz", hash = "sha256:7e7da24d3ac39268b0f156e56870001de44886318f092f9d851e692f7114d6dd", size = 680837, upload-time = "2026-11-18T01:20:03.951Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/c9/eb6b6528c7edb958d4c24ac47a8b94113d9de36e4cfc6eecd599b1a4f349/filelock-4.2.12-py3-none-any.whl", hash = "sha256:21decfec02f116ed4c954433cdb31f28c3b346b784543177b6d7059da2702ee9", size = 222442, upload-time = "2026-11-18T01:20:02.439Z" }, +] + +[[package]] +name = "id" +version = "1.6.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6d/04/c2156091427636080787aac190019dc64096e56a23b7364d3c1764ee3a06/id-1.6.1.tar.gz", hash = "sha256:d0732d624fb46fd4e7bc4e5152f00214450953b9e772c182c1c22964def1a069", size = 18088, upload-time = "2026-02-04T16:19:41.26Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/42/77/de194443bf38daed9452139e960c632b0ef9f9a5dd9ce605fdf18ca9f1b1/id-1.6.1-py3-none-any.whl", hash = "sha256:f5ec41ed2629a508f5d0988eda142e190c9c6da971100612c4de9ad9f9b237ca", size = 14689, upload-time = "2026-02-04T16:19:40.051Z" }, +] + +[[package]] +name = "identify" +version = "2.6.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/53/35/d70c0006c7cee65999ea94a6273e60b2094f600a3d8b71b04318253fc643/identify-2.6.20.tar.gz", hash = "sha256:ad729860a923858d26917c2f4fb0a1d83d27a75b1e090c06440c573f048f3285", size = 99681, upload-time = "2026-09-26T20:29:07.187Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fa/70/fffc9613501877c0a10a1ef73a165e6ded3e53f6e7502227fef56d973933/identify-2.6.20-py2.py3-none-any.whl", hash = "sha256:6a16b69b93187244e0548cbfd25b3e4a6f9a7a2ad784625c3bec2b8d27b81aaa", size = 99506, upload-time = "2026-09-26T20:29:06.054Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + +[[package]] +name = "importlib-metadata" +version = "9.0.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +dependencies = [ + { name = "zipp" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6f/7e/1e7e8dc30634b93ebb3d58a3dea569ad146e656218d3960ab04f62047b29/importlib_metadata-9.0.1.tar.gz", hash = "sha256:ab830580bc0ef3db61ce8fae716389e5462b67e033018bab6d8f80ef17172f99", size = 59124, upload-time = "2026-08-28T15:30:34.646Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/55/ecca97ae19075f1fac62def77731e7f535e6c1fb8f92ff08160c5e6dade8/importlib_metadata-9.0.1-py3-none-any.whl", hash = "sha256:bba5600596a7e21f3eef53281cf28d6a5195634d2f2b78ff9501a3272c6eaab0", size = 27920, upload-time = "2026-08-28T15:30:33.433Z" }, +] + +[[package]] +name = "importlib-metadata" +version = "10.2.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +dependencies = [ + { name = "lazy-importer" }, + { name = "zipp" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a6/91/0ef39e4ef4407de276289a3759977ac3a8cc546f59c55d725750eae3f41b/importlib_metadata-10.2.0.tar.gz", hash = "sha256:9413a2029fd9ca5669d27f1386071bbfe3c7ebca0545692ec975088241fe1d79", size = 72457, upload-time = "2026-11-09T19:09:10.915Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7f/61/0c0fae37eb561d8fddb788cbae0f227051628d70d67498a8a116c1f547d7/importlib_metadata-10.2.0-py3-none-any.whl", hash = "sha256:c7a4bf1c7479601f6b8e437cfc14f4f77028ba62a8f34ae95cd93d9774dfba51", size = 34109, upload-time = "2026-11-09T19:09:09.942Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" }, +] + +[[package]] +name = "jaraco-classes" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "more-itertools", version = "11.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "more-itertools", version = "11.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/c0/ed4a27bc5571b99e3cff68f8a9fa5b56ff7df1c2251cc715a652ddd26402/jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd", size = 11780, upload-time = "2024-03-31T07:27:36.643Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7f/66/b15ce62552d84bbfcec9a4873ab79d993a1dd4edb922cbfccae192bd5b5f/jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790", size = 6777, upload-time = "2024-03-31T07:27:34.792Z" }, +] + +[[package]] +name = "jaraco-context" +version = "6.1.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "backports-tarfile", marker = "python_full_version < '3.12'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/af/50/4763cd07e722bb6285316d390a164bc7e479db9d90daa769f22578f698b4/jaraco_context-6.1.2.tar.gz", hash = "sha256:f1a6c9d391e661cc5b8d39861ff077a7dc24dc23833ccee564b234b81c82dfe3", size = 16801, upload-time = "2026-03-20T22:13:33.922Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f2/58/bc8954bda5fcda97bd7c19be11b85f91973d67a706ed4a3aec33e7de22db/jaraco_context-6.1.2-py3-none-any.whl", hash = "sha256:bf8150b79a2d5d91ae48629d8b427a8f7ba0e1097dd6202a9059f29a36379535", size = 7871, upload-time = "2026-03-20T22:13:32.808Z" }, +] + +[[package]] +name = "jaraco-functools" +version = "4.6.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "more-itertools", version = "11.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "more-itertools", version = "11.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6c/1f/c23395957d41ccf27c4e535c3d334c4051e5395b3752057ba4cbaec35c56/jaraco_functools-4.6.0.tar.gz", hash = "sha256:880c577ec9720b3a052d5bc611fb9f2269b3d87902ef42440df443b88e443280", size = 20837, upload-time = "2026-07-14T01:28:02.544Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/02/36/ecc85bc96c273dc8a11273ed4782272975e6338d4a3e9228621175edf0e3/jaraco_functools-4.6.0-py3-none-any.whl", hash = "sha256:99e3dc0060c5cbe8fcd1cdb36258e2a65ca40f1566b2033b12abb1bb44dd3c30", size = 11677, upload-time = "2026-07-14T01:28:01.59Z" }, +] + +[[package]] +name = "jeepney" +version = "0.9.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz", hash = "sha256:cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732", size = 106758, upload-time = "2025-02-27T18:51:01.684Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" }, +] + +[[package]] +name = "keyring" +version = "25.7.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "importlib-metadata", version = "9.0.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "importlib-metadata", version = "10.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" }, + { name = "jaraco-classes" }, + { name = "jaraco-context" }, + { name = "jaraco-functools" }, + { name = "jeepney", marker = "sys_platform == 'linux'" }, + { name = "pywin32-ctypes", marker = "sys_platform == 'win32'" }, + { name = "secretstorage", marker = "sys_platform == 'linux'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/4b/674af6ef2f97d56f0ab5153bf0bfa28ccb6c3ed4d1babf4305449668807b/keyring-25.7.0.tar.gz", hash = "sha256:fe01bd85eb3f8fb3dd0405defdeac9a5b4f6f0439edbb3149577f244a2e8245b", size = 63516, upload-time = "2025-11-16T16:26:09.482Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/db/e655086b7f3a705df045bf0933bdd9c2f79bb3c97bfef1384598bb79a217/keyring-25.7.0-py3-none-any.whl", hash = "sha256:be4a0b195f149690c166e850609a477c532ddbfbaed96a404d4e43f8d5e2689f", size = 39160, upload-time = "2025-11-16T16:26:08.402Z" }, +] + +[[package]] +name = "lazy-importer" +version = "0.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d9/23/d2c8308466a6831043ac3518e480c2e1a06b21a13e0a8f6542ab29cf592a/lazy_importer-0.1.0.tar.gz", hash = "sha256:b2e296716ce015c0cd80e57b940e52727c5b934b34b8656d5ce06bdd0ee5fbdd", size = 84008, upload-time = "2026-10-20T00:36:58.369Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0a/28/7ded071d0975dcc6d5d106ffbf7b3ca420f7caa3b8a235fa604b6e37032a/lazy_importer-0.1.0-py3-none-any.whl", hash = "sha256:bd93fab7bef18e842eea02b839410954d37889140dc64ca4d9680aec6880c739", size = 12580, upload-time = "2026-10-20T00:36:57.176Z" }, +] + +[[package]] +name = "markdown-it-py" +version = "4.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mdurl" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/16/fc/cee2c45553c9a9bf77d8b0c391560c556d7ed756b1f0bb35eb5d48db09ea/markdown_it_py-4.3.0.tar.gz", hash = "sha256:91a58fa5b72c71a40cf7177250fd767480d7a2bb3ac426ccfb76fb90305fdaaa", size = 242701, upload-time = "2026-11-10T16:18:30.467Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c9/31/5f0ac2f1a1c67423c995c731a11cd4ad05d081a2be969d74f868bdb9cc70/markdown_it_py-4.3.0-py3-none-any.whl", hash = "sha256:7aa1511a46c39138de78d9eba92ce47e63124d8003fc98b3a351909e04239efa", size = 96951, upload-time = "2026-11-10T16:18:28.975Z" }, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, +] + +[[package]] +name = "more-itertools" +version = "11.1.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/de/1d/f4da6f02cdffe04d6362210b807146a26044c88d839208aec273bb0d9184/more_itertools-11.1.0.tar.gz", hash = "sha256:48e8f4d9e7e5878571ecf6f2b4e57634f93cd474cc8cfbd2376f2d11b396e30d", size = 145772, upload-time = "2026-05-22T14:14:29.909Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/3d/1087453384dbde46a8c7f9356eead2c58be8a7bf156bca40243377c85715/more_itertools-11.1.0-py3-none-any.whl", hash = "sha256:4b65538ae22f6fed0ce4874efd317463a7489796a0939fa66824dd542125a192", size = 72226, upload-time = "2026-05-22T14:14:28.824Z" }, +] + +[[package]] +name = "more-itertools" +version = "11.2.1" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/52/b8/c63995bebbb9ac9c059350e0fb8c82c2420c85aeca7d34e40aecf3df9281/more_itertools-11.2.1.tar.gz", hash = "sha256:cbf08fd0af284dc69718b9b76a8e6203df624d70209ea511e4219d350c856f63", size = 154133, upload-time = "2026-10-14T18:50:30.407Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5d/57/3c4b1c6f2e0cc29ba023802458ea3d2a996f87085559e4a5f2192d549532/more_itertools-11.2.1-py3-none-any.whl", hash = "sha256:35a7377edd1dd6608dcb2cdf534ded55ea32d49448875ad042cd3f879fb1ded0", size = 74405, upload-time = "2026-10-14T18:50:29.116Z" }, +] + +[[package]] +name = "nh3" +version = "0.3.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/45/45/2e8cb0c4dcb3ce1e8a66469d8367199a3db20555dfbad862c3c3187cf402/nh3-0.3.8.tar.gz", hash = "sha256:5c5a315abc2e9d5d78ce1ba6b592a1ef8cbc7e535dfb1e641966768e87870fe3", size = 26670, upload-time = "2026-11-17T11:29:24.471Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/34/96/b966277730003c66e4e25e16987d877af98d07bb578e7014ecd6b505db46/nh3-0.3.8-cp314-cp314t-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl", hash = "sha256:5322483f474f0466145372ce1253e72f9c423e8bd3f4cfae113b4a2be544d266", size = 1490632, upload-time = "2026-11-17T11:28:20.221Z" }, + { url = "https://files.pythonhosted.org/packages/65/c2/7ce62f5f99ff60b368d2f5c1a66a939d7816e2ca87ea4a2ef59291af092b/nh3-0.3.8-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:3b0527be4e7e16e0ac9d9b022ee7fb8eb617c275db4f7f446ea1233bc0159625", size = 865569, upload-time = "2026-11-17T11:28:21.611Z" }, + { url = "https://files.pythonhosted.org/packages/f0/2e/547366f57c593b1dbff5c3dded12282672ff79bffc21ad803c682ea4845a/nh3-0.3.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f5ea9b719643f89c47158d4efb8eb7151f5937dd726a4908547d413d4a1eb8cd", size = 854071, upload-time = "2026-11-17T11:28:22.904Z" }, + { url = "https://files.pythonhosted.org/packages/a3/42/9c4abcc14af2052567f703ebf454237df81b960bdacd2de19d52fa31adce/nh3-0.3.8-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:2a7678eec59a0a24ed2d5a9e11042cf078ae64aff6d8be8edc7aaa51f54f6a34", size = 833147, upload-time = "2026-11-17T11:28:24.371Z" }, + { url = "https://files.pythonhosted.org/packages/45/06/4ede958c0990dc1aed459815c0cb59e1cac8a724565cc6ebe1c35e1ee42e/nh3-0.3.8-cp314-cp314t-manylinux2014_ppc64.manylinux_2_17_ppc64.whl", hash = "sha256:78638192f24837aad8d55a0728aad6d24aa9ad1363fb2f2586ac2d92b56ab1ad", size = 1104275, upload-time = "2026-11-17T11:28:25.813Z" }, + { url = "https://files.pythonhosted.org/packages/b7/c7/a75bf8d8cac6f8e896fd7c568dd681426d187f61f2b25e038867996fac84/nh3-0.3.8-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:83219d0778e2e574c82253da1ecb765b021d8f1f6d098f7e1142d7342746d66d", size = 1059079, upload-time = "2026-11-17T11:28:26.969Z" }, + { url = "https://files.pythonhosted.org/packages/67/db/254fd9d9f53235df84df107135c58db3aa53b1d44f1c7f927be87cd760ea/nh3-0.3.8-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:ddb6b757b249f46a91e642124f67951d049006c9a4e9d9a532b9c6e0cc852f1d", size = 943191, upload-time = "2026-11-17T11:28:28.423Z" }, + { url = "https://files.pythonhosted.org/packages/78/34/9aae0de9db081cc5ac2d8936f240eaeea68db195635a1c34233c4e4af62f/nh3-0.3.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:39a84587d2aacd294b8f3c1d6da805e2e60f66c8035f9239be123cb1264b0a78", size = 828569, upload-time = "2026-11-17T11:28:29.679Z" }, + { url = "https://files.pythonhosted.org/packages/f1/95/156a99177e2ba34829dc90ffba7b0b8779132f04b9961f89f20d8c89f24a/nh3-0.3.8-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:9969ac0f9a68f2949a92597cea021a8099cc0e7e10d21a1b2590b36240ea4ff1", size = 845068, upload-time = "2026-11-17T11:28:30.84Z" }, + { url = "https://files.pythonhosted.org/packages/52/84/6eea730244ef6133977553b706d179165dbf6bc9c91177ed29a3b4480414/nh3-0.3.8-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5efdbe0aa48f38b92c45ce5f1d228191b7e6446f51d014c2cf08c433ee9d289e", size = 1032121, upload-time = "2026-11-17T11:28:31.917Z" }, + { url = "https://files.pythonhosted.org/packages/c4/ea/340751dbfb331bd2f19ec8f88b51bfbdd8539acc6fba9ba11b75b50bb54f/nh3-0.3.8-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:1af0170f80c57295cdee2b50a0c72eaee86fe0068e9d29957d124eddc231e1ad", size = 1107960, upload-time = "2026-11-17T11:28:33.188Z" }, + { url = "https://files.pythonhosted.org/packages/fd/12/f23d066470a2e652b44e44386b73cd9f21957abdb6988da4e396a022d294/nh3-0.3.8-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:4b989ad2c62b853af163db763a8ac0b1d3dad9caf316daef953092d21a7d1721", size = 1067182, upload-time = "2026-11-17T11:28:34.425Z" }, + { url = "https://files.pythonhosted.org/packages/76/d4/900c3ee35a60b526daab7eed80bec3aac08f49c17d4ca2e5d285c90d11da/nh3-0.3.8-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:90517a6ff4140bfb0ec1b5458e4d2abf0623ac9bc458427941bfa9e93f41c64b", size = 1054491, upload-time = "2026-11-17T11:28:35.636Z" }, + { url = "https://files.pythonhosted.org/packages/ea/2a/ebe6239685da45767c676e772e914860996c474fbe4a45f96f1a02e65406/nh3-0.3.8-cp314-cp314t-win32.whl", hash = "sha256:4ad0d8889ba9ba4daa0b535f79a2cc518de760e5f76243acb62e9903a13e9894", size = 625925, upload-time = "2026-11-17T11:28:36.92Z" }, + { url = "https://files.pythonhosted.org/packages/ed/3a/70de56d577a2963ec5e2472b9a5f9f819f43d1f527b47f7b8cf51c551e10/nh3-0.3.8-cp314-cp314t-win_amd64.whl", hash = "sha256:33e8464e383e4ae995aed3efbfbe901b995ac5639056b79b2273a787ba5f0367", size = 642961, upload-time = "2026-11-17T11:28:38.021Z" }, + { url = "https://files.pythonhosted.org/packages/a8/7f/bd912faf43c051d9ab18b0b81bb2d5a4a617ab2c08207aa00432f38b406f/nh3-0.3.8-cp314-cp314t-win_arm64.whl", hash = "sha256:e52a49e257654cbde5aa26c3a4a601c5d863f0d452fa4c338771b067f6e5e1aa", size = 629653, upload-time = "2026-11-17T11:28:39.177Z" }, + { url = "https://files.pythonhosted.org/packages/01/ce/a9d20d1ce39fe3e46e46dcffd743cb6d04cccc71cd092bd47f273c033d8a/nh3-0.3.8-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl", hash = "sha256:3b7f2915b46d7b6c8f1cf583f461b3a4d0ab727b23693eda54b3d1c8a968598e", size = 1504790, upload-time = "2026-11-17T11:28:59.918Z" }, + { url = "https://files.pythonhosted.org/packages/18/10/8e173d8ad6df2f319828217c4a24cd2bfdf550db70faedc8cb230e66d5d4/nh3-0.3.8-cp39-abi3-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:cf1ad568d9b5c89e370ba857650539f634ca6d90206ec0f4ba2ca5155da3a281", size = 877659, upload-time = "2026-11-17T11:29:01.083Z" }, + { url = "https://files.pythonhosted.org/packages/ba/69/7a7649f2e068f131e50ada138f5d5024fb6a24e8b3f036ab66646022a787/nh3-0.3.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:92455caf010434168c26d5b2fd523bd588fce796b1a8067fef0a51f9e88f5cf7", size = 863392, upload-time = "2026-11-17T11:29:02.249Z" }, + { url = "https://files.pythonhosted.org/packages/6d/47/fd37502d61b337d8e6cb1b2b88d212b4be657a9f612d4174b30707abecbf/nh3-0.3.8-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:717965df47ab5d2c5191419b26deb0c9552d769e4451b09a7b41ecac2a69877f", size = 839733, upload-time = "2026-11-17T11:29:03.528Z" }, + { url = "https://files.pythonhosted.org/packages/8e/40/1b8a0fa8fd52c459d09b15fc614a662d2730dc087078ebc15ea2fe87cc21/nh3-0.3.8-cp39-abi3-manylinux2014_ppc64.manylinux_2_17_ppc64.whl", hash = "sha256:4efb355d6f2b2d3f8b87a1b41c1a018c4ab2b955b5cb313ae7bfce183481eaa2", size = 1116133, upload-time = "2026-11-17T11:29:05.041Z" }, + { url = "https://files.pythonhosted.org/packages/79/c1/c0e60007529d607dd2a7594c777338b604fcbda1cb2889520263d3d23897/nh3-0.3.8-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:935c861acd0cb1a7188f574973b08730f63e4a853072858f388d2f19e044d509", size = 1066209, upload-time = "2026-11-17T11:29:06.952Z" }, + { url = "https://files.pythonhosted.org/packages/96/16/63fc4f2ee5bce45e81d9f7422bc1a958bacd9d589362c8d746ab6317b395/nh3-0.3.8-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:9ef0673494134c3398453c9e7f803886fdbf67d5c7b6c2e445c69cce042d2a69", size = 948566, upload-time = "2026-11-17T11:29:08.191Z" }, + { url = "https://files.pythonhosted.org/packages/c2/7a/ffdbadce8c01cdb2f7a7b45386eb391aa6c6bf29c0c31e17856b0ad3137f/nh3-0.3.8-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3e97326a8c7b537b5583aad483f249d7c8d0398fbf7b61a995fc508ffdc0d2ee", size = 837369, upload-time = "2026-11-17T11:29:09.321Z" }, + { url = "https://files.pythonhosted.org/packages/69/d8/75c15795d0fb46ae7dfe6e21bac6ce0570e06431a63e023166b36499855e/nh3-0.3.8-cp39-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:5106e053d20e586079e6608e242a82bf4acec1b64b6b367455fbb9974de2d800", size = 854306, upload-time = "2026-11-17T11:29:10.523Z" }, + { url = "https://files.pythonhosted.org/packages/87/d4/2ee1fa8b55edb95e74766fe5244fedd9a1da9c4524f9875894f0990c19ce/nh3-0.3.8-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:3ce8966c7eb0d5e4a7e94de1d005c2298f0f26920c818d5912f4f57be0200861", size = 1044494, upload-time = "2026-11-17T11:29:11.693Z" }, + { url = "https://files.pythonhosted.org/packages/d4/70/66832f7ab7e7131e07b770a945773d1dd93984220a715ffa5f803109704b/nh3-0.3.8-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:e11f51c8d6174d069844d3dfd3fd6df26081f9b4eb602588d63c465331867a4d", size = 1116765, upload-time = "2026-11-17T11:29:13.246Z" }, + { url = "https://files.pythonhosted.org/packages/80/e7/d3f874b1ea68bf70840527f217ad3e9054c0d08ba40a4d731a6c5028e681/nh3-0.3.8-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:e2c05dff8a30a07b4b28752ce716f3a0f97a8ab983a4a90d72e9e520352c9dc5", size = 1080303, upload-time = "2026-11-17T11:29:14.586Z" }, + { url = "https://files.pythonhosted.org/packages/c1/9e/3b6b7d78c257ad67c802586b280857aa36e11b38646696ff590e7c55bb50/nh3-0.3.8-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1e04c04f7b5eecd8d25ef95ae34503e449211a086ca99dd709f34a46a47d65e5", size = 1066190, upload-time = "2026-11-17T11:29:15.912Z" }, + { url = "https://files.pythonhosted.org/packages/06/dd/95e37755b6ed520725e744705447c0ef092ba07046a4388c55f507f4bd52/nh3-0.3.8-cp39-abi3-win32.whl", hash = "sha256:e0877de704cc4a4f26818b1bc6414a2b03cacf3f502b53d3a340bfcff78c703b", size = 634859, upload-time = "2026-11-17T11:29:17.11Z" }, + { url = "https://files.pythonhosted.org/packages/e7/9c/157a8a08787ff95f9b9b775466c4da5b853132357d76b3acf46cf9d59327/nh3-0.3.8-cp39-abi3-win_amd64.whl", hash = "sha256:835514cc418afe7815af9855b7461bd050a0eaa5a40487fc369b69d63b60dbff", size = 652686, upload-time = "2026-11-17T11:29:18.166Z" }, + { url = "https://files.pythonhosted.org/packages/91/86/2aa5eb1c6ff4aff0fee28dfd36f823a42010a59bce3dcd042c6c7dc8c822/nh3-0.3.8-cp39-abi3-win_arm64.whl", hash = "sha256:4fb7fb01e726a39addbafa3dd9e008ac905a1219b0a82f6f0ad5bb410fdfe283", size = 637545, upload-time = "2026-11-17T11:29:19.276Z" }, + { url = "https://files.pythonhosted.org/packages/2d/c2/dff86d360e960e1ac8f2667318d350ba113d3da9c809ef294d28c9413836/nh3-0.3.8-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:e5e63c71c0c6822b530b7444e004cb29a49b3e2dd3c58105f58b5b7eb804f6fe", size = 748468, upload-time = "2026-11-17T11:29:20.814Z" }, + { url = "https://files.pythonhosted.org/packages/6c/9b/a4d0045732df593d0830230a6fc2e841f78953b7fd2a21037006bbbe154e/nh3-0.3.8-pp312-pypy312_pp80-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d7154968dcb4dcd204752e21995942292e0b5311b843015f6c048a81c3e547c", size = 830818, upload-time = "2026-11-17T11:29:21.982Z" }, + { url = "https://files.pythonhosted.org/packages/fa/08/73ec3ced41901be946cec8050e918059780c9c70f6c147d20d4df6d7ff52/nh3-0.3.8-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:9634748f7b7377044a8649f07bba1fbc386faa2cfde9fbde1f32fff47710d574", size = 646088, upload-time = "2026-11-17T11:29:23.211Z" }, +] + +[[package]] +name = "nodeenv" +version = "1.12.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e6/99/d27cfc9518f49e4cbc25c683ec7cf8704a9d31311341c291c0e78ddf791b/nodeenv-1.12.0.tar.gz", hash = "sha256:4ea7f88339310afebc3253f2c7a91b94bacf97d73a36a5c108962abdfaca501e", size = 131292, upload-time = "2026-10-31T19:03:18.847Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2d/6a/8a9ac7d5e2f7cf53c459bfef90ebc17a2f8cd54b665af96799d4c534840e/nodeenv-1.12.0-py3-none-any.whl", hash = "sha256:80644d65c10cc2be12e3e4b54b3367ff288c7ad24ae75c2dcc65454fc7449d4d", size = 39442, upload-time = "2026-10-31T19:03:17.427Z" }, +] + +[[package]] +name = "packaging" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.12.4" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/90/a1/d5f9002a70298c64a789779077d8dd90c10aa1f47fe40c86802df874f2a6/platformdirs-4.12.4.tar.gz", hash = "sha256:63743c02414e755de4e31b8f68125c1407495b86c5a006e203c01ff8b9924250", size = 60010, upload-time = "2026-10-07T23:30:32.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/ba/223e00b885e960edd5d4b4d178c88acce019bd5b83786093681b8c393492/platformdirs-4.12.4-py3-none-any.whl", hash = "sha256:78bfb9db2a8471ed7eebe3c3c932da413911042994e699b384fbb4493fa872d7", size = 32596, upload-time = "2026-10-07T23:30:30.825Z" }, +] + +[[package]] +name = "platformdirs" +version = "4.14.8" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/71/18/0b0d99f5bf164f04a7a9534c3dbdbe4d5fd2b382667685ad40c192c4d3d1/platformdirs-4.14.8.tar.gz", hash = "sha256:96893d686e84e9e6f358a9ea41a8de544df66dbf2ba6cda250e7dc73acf85b9b", size = 87203, upload-time = "2026-11-20T08:14:52.63Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5b/be/373cc7341f53bfd3acba3e5db62433fd960a45fcf73ad64a5f4d27e74910/platformdirs-4.14.8-py3-none-any.whl", hash = "sha256:1e34af590de4d978631b751eb2202f2fee4497537a17c1720b12fcf57b331392", size = 94267, upload-time = "2026-11-20T08:14:51.306Z" }, +] + +[[package]] +name = "pluggy" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" }, +] + +[[package]] +name = "pre-commit" +version = "4.6.2" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +dependencies = [ + { name = "cfgv" }, + { name = "identify" }, + { name = "nodeenv" }, + { name = "pyyaml" }, + { name = "virtualenv" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/74/89/1f3e8e1fc3e97de0fa963495832f581f025f29471602a309e48808244292/pre_commit-4.6.2.tar.gz", hash = "sha256:8f5d7bfb021ecdbcd9d49d89847082dd24172ccde534390081a679ad046e2441", size = 198670, upload-time = "2026-08-10T22:07:18.421Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/45/e2/bbb7129c9e7999a6b8ee9cca3b66486c25c423ab5a75f34071798b74ce94/pre_commit-4.6.2-py2.py3-none-any.whl", hash = "sha256:e2dde9a75d3bce11bd3831c26d134df00a2803c1d818be6a0383c3dcda25dc4e", size = 226202, upload-time = "2026-08-10T22:07:16.942Z" }, +] + +[[package]] +name = "pre-commit" +version = "4.7.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +dependencies = [ + { name = "cfgv" }, + { name = "identify" }, + { name = "nodeenv" }, + { name = "pyyaml" }, + { name = "virtualenv" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3a/c3/6965c2690ddce885ec75121572d065a5b94c5a5d8d3e657927ecda9fd715/pre_commit-4.7.0.tar.gz", hash = "sha256:1f3deee12b914c8fa184bd2b5953391c2e4f36763e403d4a23dc9983fa7c6e86", size = 198120, upload-time = "2026-10-12T20:45:40.32Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/eb/83/ce0a196e4f7b20b11ce3aa1fc72fb973f64b7628d51c1b8aebad37fb7f81/pre_commit-4.7.0-py2.py3-none-any.whl", hash = "sha256:2e229038ad3656081b70c27913157e4b636ef306f643f024a8a8e3f0f7b2f877", size = 226261, upload-time = "2026-10-12T20:45:38.858Z" }, +] + +[[package]] +name = "pycparser" +version = "3.11" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/da/a8/c5fdbeee588bb8ada9458774f43adf1bdd30bd59157055142183e769a024/pycparser-3.11.tar.gz", hash = "sha256:d875f09c3507d00e1aba0eecc6dcadc1352f30fff09dc6bff2f1c2935e97c2bc", size = 113796, upload-time = "2026-10-09T12:56:59.539Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/90/11/0e6f11117525ff0eec40ebac3d313376f102df93ca44ad9e893ee85e4f89/pycparser-3.11-py3-none-any.whl", hash = "sha256:51d5a8ba2be0bbe440b99d2112604c95bbbc3c2748a64260186c541e1729cd80", size = 51178, upload-time = "2026-10-09T12:56:58.131Z" }, +] + +[[package]] +name = "pycparser" +version = "3.12" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +sdist = { url = "https://files.pythonhosted.org/packages/cb/27/eeb9f307bf07060f3d9f9aa0fb8c15b01bdfded0a941e4b2719c7f94cacd/pycparser-3.12.tar.gz", hash = "sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6", size = 158785, upload-time = "2026-10-22T13:40:03.56Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/ae/315bbeee126a769cbde43cf4908acb4b40408d8bf8bbf334dd7368d8dadf/pycparser-3.12-py3-none-any.whl", hash = "sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e", size = 62600, upload-time = "2026-10-22T13:40:02.021Z" }, +] + +[[package]] +name = "pygments" +version = "2.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pyproject-hooks" +version = "1.3.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/6d/5d/f2ddeef4a855a102aaae5e97826a0260007522ab504421b75addfdb1517c/pyproject_hooks-1.3.3.tar.gz", hash = "sha256:defda19b854fa0d3bd4f76ea4ddcba8abd7dcfcdd585a6690ade050744fc5f43", size = 21013, upload-time = "2026-09-16T08:58:03.999Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/85/11/044d1ae1b4ec0d7af88ee5bc91e081be1022533032b906a7bdabdbb60977/pyproject_hooks-1.3.3-py3-none-any.whl", hash = "sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b", size = 10724, upload-time = "2026-09-16T08:58:02.96Z" }, +] + +[[package]] +name = "pytest" +version = "9.2.0" +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/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" }, +] + +[[package]] +name = "pytest-mock" +version = "3.17.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/97/c2/28b9f5b955ff2bcd4727a6f768e2ca9b586cd7c37b95ea5f7b9b873ac7b3/pytest_mock-3.17.0.tar.gz", hash = "sha256:e36576e0985e01027e999891e7a966c67822d40c89ef1b4c8b6e22737e3590b4", size = 43064, upload-time = "2026-10-17T16:21:42.435Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/ea/47fbdc8f37410956fd445720e927589b1e2a47772c5f28109f0ce2fa26d9/pytest_mock-3.17.0-py3-none-any.whl", hash = "sha256:1b82aa4b37137248bd687055e109723debeb07b489de1565297dc9589c5f2d6b", size = 11248, upload-time = "2026-10-17T16:21:41.265Z" }, +] + +[[package]] +name = "python-dateutil" +version = "3.0.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11'", +] +dependencies = [ + { name = "six" }, + { name = "tzdata" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0e/df/f15f80383f152452d8985b36d95cb8751f901a3e0ff4cd27f7e118f168e2/python_dateutil-3.0.0.tar.gz", hash = "sha256:7ebcb3c29a92f3ceafe79a7a48a5c45677e9e004bbeec5742ac0bbb00560b7a2", size = 271066, upload-time = "2026-10-21T23:41:45.075Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5a/17/cebee01d1c0c1441174cf0456ddc91b280d79acb65340c05e41d77866ee8/python_dateutil-3.0.0-py2.py3-none-any.whl", hash = "sha256:3c79630202e4152c6add678446984236efe4f57e84d8e892aab0637bab82e9fd", size = 94659, upload-time = "2026-10-21T23:41:43.431Z" }, +] + +[[package]] +name = "python-dateutil" +version = "4.0.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.11'", +] +dependencies = [ + { name = "tzdata" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/18/39/b3927f3616f6223832f9b760e4208e8a7c7e1dea2b4d9ad7d32a5d214c3a/python_dateutil-4.0.0.tar.gz", hash = "sha256:d7295ff14fdc0f92f662100bfb6c551d160ca090f2939f1ec5b9794265c03f06", size = 250419, upload-time = "2026-11-01T07:02:42.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2f/a9/52b89563d154433d79b51ed1eb4842bf7334cb2696891a7fe135618853d7/python_dateutil-4.0.0-py3-none-any.whl", hash = "sha256:a5e246f79eb80475e691bf93862cead98decd8a498cf53ba0516fcdc0f50dc1c", size = 92853, upload-time = "2026-11-01T07:02:40.797Z" }, +] + +[[package]] +name = "python-discovery" +version = "1.9.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "filelock", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "filelock", version = "4.2.12", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cb/4e/20a9c45c4bb839e6e03e5971a546c623d12f950aa496cf344dc8e9f07167/python_discovery-1.9.6.tar.gz", hash = "sha256:383aa67858d73a9585a843a37a4383c6be98e4d86a981a031328e393a6eb2632", size = 147742, upload-time = "2026-11-18T00:32:26.272Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c4/34/65e66e8c384dc08f0e58c474587c05c4bc952f60facd8a15e80748118bd1/python_discovery-1.9.6-py3-none-any.whl", hash = "sha256:93b10b90363d4151964cdeee2ec6601f3041b17fc2b253a1c3da7d6e7ddd8337", size = 98453, upload-time = "2026-11-18T00:32:24.849Z" }, +] + +[[package]] +name = "pywin32-ctypes" +version = "0.2.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f4/a0/39350dd17dd6d6c6507025c0e53aef67a9293a6d37d3511f23ea510d5800/pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b", size = 184227, upload-time = "2025-09-25T21:31:46.04Z" }, + { url = "https://files.pythonhosted.org/packages/05/14/52d505b5c59ce73244f59c7a50ecf47093ce4765f116cdb98286a71eeca2/pyyaml-6.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956", size = 174019, upload-time = "2025-09-25T21:31:47.706Z" }, + { url = "https://files.pythonhosted.org/packages/43/f7/0e6a5ae5599c838c696adb4e6330a59f463265bfa1e116cfd1fbb0abaaae/pyyaml-6.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8", size = 740646, upload-time = "2025-09-25T21:31:49.21Z" }, + { url = "https://files.pythonhosted.org/packages/2f/3a/61b9db1d28f00f8fd0ae760459a5c4bf1b941baf714e207b6eb0657d2578/pyyaml-6.0.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198", size = 840793, upload-time = "2025-09-25T21:31:50.735Z" }, + { url = "https://files.pythonhosted.org/packages/7a/1e/7acc4f0e74c4b3d9531e24739e0ab832a5edf40e64fbae1a9c01941cabd7/pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b", size = 770293, upload-time = "2025-09-25T21:31:51.828Z" }, + { url = "https://files.pythonhosted.org/packages/8b/ef/abd085f06853af0cd59fa5f913d61a8eab65d7639ff2a658d18a25d6a89d/pyyaml-6.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0", size = 732872, upload-time = "2025-09-25T21:31:53.282Z" }, + { url = "https://files.pythonhosted.org/packages/1f/15/2bc9c8faf6450a8b3c9fc5448ed869c599c0a74ba2669772b1f3a0040180/pyyaml-6.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69", size = 758828, upload-time = "2025-09-25T21:31:54.807Z" }, + { url = "https://files.pythonhosted.org/packages/a3/00/531e92e88c00f4333ce359e50c19b8d1de9fe8d581b1534e35ccfbc5f393/pyyaml-6.0.3-cp310-cp310-win32.whl", hash = "sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e", size = 142415, upload-time = "2025-09-25T21:31:55.885Z" }, + { url = "https://files.pythonhosted.org/packages/2a/fa/926c003379b19fca39dd4634818b00dec6c62d87faf628d1394e137354d4/pyyaml-6.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c", size = 158561, upload-time = "2025-09-25T21:31:57.406Z" }, + { url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" }, + { url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" }, + { url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" }, + { url = "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00", size = 882114, upload-time = "2025-09-25T21:32:03.376Z" }, + { url = "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d", size = 806638, upload-time = "2025-09-25T21:32:04.553Z" }, + { url = "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a", size = 767463, upload-time = "2025-09-25T21:32:06.152Z" }, + { url = "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4", size = 794986, upload-time = "2025-09-25T21:32:07.367Z" }, + { url = "https://files.pythonhosted.org/packages/45/91/47a6e1c42d9ee337c4839208f30d9f09caa9f720ec7582917b264defc875/pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b", size = 142543, upload-time = "2025-09-25T21:32:08.95Z" }, + { url = "https://files.pythonhosted.org/packages/da/e3/ea007450a105ae919a72393cb06f122f288ef60bba2dc64b26e2646fa315/pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf", size = 158763, upload-time = "2025-09-25T21:32:09.96Z" }, + { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" }, + { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" }, + { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" }, + { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" }, + { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" }, + { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" }, + { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" }, + { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" }, + { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, + { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, + { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, + { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, + { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, + { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, + { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +] + +[[package]] +name = "readme-renderer" +version = "46.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "docutils" }, + { name = "nh3" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/25/d7/9309494fad74ee831d4546f69325b5519f37c6dfb2d9ba495db8c6d4f4ca/readme_renderer-46.0.tar.gz", hash = "sha256:af3e964914f6310a33ff67b72a4bdd940bed8d7c3bdecd2d14f40edf284bfe90", size = 38382, upload-time = "2026-08-28T15:18:32.49Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4b/72/ac5ca81fe9121fcaa9d828d21017cba00a16a98e4ea5fb60c878f93dda4f/readme_renderer-46.0-py3-none-any.whl", hash = "sha256:d0dae1f74bb273b534770cb4cccb6bb78735540afdb03c2146f4e19dcd412560", size = 14239, upload-time = "2026-08-28T15:18:31.132Z" }, +] + +[[package]] +name = "requests" +version = "2.34.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, +] + +[[package]] +name = "requests-toolbelt" +version = "1.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f3/61/d7545dafb7ac2230c70d38d31cbfe4cc64f7144dc41f6e4e4b78ecd9f5bb/requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6", size = 206888, upload-time = "2023-05-01T04:11:33.229Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3f/51/d4db610ef29373b879047326cbf6fa98b6c1969d6f6dc423279de2b1be2c/requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06", size = 54481, upload-time = "2023-05-01T04:11:28.427Z" }, +] + +[[package]] +name = "rfc3986" +version = "2.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/85/40/1520d68bfa07ab5a6f065a186815fb6610c86fe957bc065754e47f7b0840/rfc3986-2.0.0.tar.gz", hash = "sha256:97aacf9dbd4bfd829baad6e6309fa6573aaf1be3f6fa735c8ab05e46cecb261c", size = 49026, upload-time = "2022-01-10T00:52:30.832Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ff/9a/9afaade874b2fa6c752c36f1548f718b5b83af81ed9b76628329dab81c1b/rfc3986-2.0.0-py2.py3-none-any.whl", hash = "sha256:50b1502b60e289cb37883f3dfd34532b8873c7de9f49bb546641ce9cbd256ebd", size = 31326, upload-time = "2022-01-10T00:52:29.594Z" }, +] + +[[package]] +name = "rich" +version = "15.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown-it-py" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, +] + +[[package]] +name = "ruff" +version = "0.17.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/df/8e/6929d337aa5380aafc7355f3149f3ccfe55cba5fdd34a045697ebaceb5a0/ruff-0.17.6.tar.gz", hash = "sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c", size = 5374388, upload-time = "2026-11-19T15:56:27.106Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/5d/38ef6310c22cacb094e9ae0ff7964062e04ffeecb45ee296894c2b1acc54/ruff-0.17.6-py3-none-linux_armv6l.whl", hash = "sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b", size = 10174693, upload-time = "2026-11-19T15:55:52.414Z" }, + { url = "https://files.pythonhosted.org/packages/a2/ed/fd35261049920a4888ef7c787a5c27089502077a4910f6ca8f1213157d6d/ruff-0.17.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c", size = 10221650, upload-time = "2026-11-19T15:55:54.962Z" }, + { url = "https://files.pythonhosted.org/packages/ba/d4/c31391b36c729cd9fafa65b7a52a58850b99afb2b65da6be4263a53302f2/ruff-0.17.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5", size = 9580986, upload-time = "2026-11-19T15:55:57.391Z" }, + { url = "https://files.pythonhosted.org/packages/eb/11/f3032684dcb3a676d7924545153d76fb56f76753e038f2ea650b99c71bdf/ruff-0.17.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30", size = 10271368, upload-time = "2026-11-19T15:55:59.654Z" }, + { url = "https://files.pythonhosted.org/packages/08/30/c1e024eeb5bae99ae78c6b896ed108f64c9c845a03b56eaeff098e99b6e6/ruff-0.17.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb", size = 9981564, upload-time = "2026-11-19T15:56:01.807Z" }, + { url = "https://files.pythonhosted.org/packages/7d/a5/da3e0c2d4bf02b3ca6c1d7fa4bb04d0081e340b1dd03c4f83b1bec3e15c1/ruff-0.17.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf", size = 10641991, upload-time = "2026-11-19T15:56:03.981Z" }, + { url = "https://files.pythonhosted.org/packages/4d/c1/6d7f981e86201c9db457cca99fd2c09b77574ebab37dff3e9239b218603c/ruff-0.17.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b", size = 11403484, upload-time = "2026-11-19T15:56:05.778Z" }, + { url = "https://files.pythonhosted.org/packages/c3/92/8182f07b94998541d5f8f38f53da465aa28062afce24ecc398f45bfc62f1/ruff-0.17.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173", size = 10892316, upload-time = "2026-11-19T15:56:08.016Z" }, + { url = "https://files.pythonhosted.org/packages/be/48/3df7d81249fd69ee6a49519b149fb5d11e13118fd7d0e8d65329a237087b/ruff-0.17.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4", size = 10645279, upload-time = "2026-11-19T15:56:09.785Z" }, + { url = "https://files.pythonhosted.org/packages/71/80/4d232281544345d7beb98d1d32c24dae804ed360780a6f7753738b81225e/ruff-0.17.6-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac", size = 10534501, upload-time = "2026-11-19T15:56:11.718Z" }, + { url = "https://files.pythonhosted.org/packages/98/0a/b477f075a4a94eb541bf1c759a3e72b2a3d6390af7a13a5be0887229f67c/ruff-0.17.6-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45", size = 10136036, upload-time = "2026-11-19T15:56:13.779Z" }, + { url = "https://files.pythonhosted.org/packages/f1/d8/cf32fbfeb1fcda1470fb5c3bee50c69ee6bca257d487ec1eb17a0387edb4/ruff-0.17.6-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d", size = 9969640, upload-time = "2026-11-19T15:56:15.738Z" }, + { url = "https://files.pythonhosted.org/packages/a7/22/bb9f9752f7fcdfdc8b9c51576cc142bb377ade745290e35085173963c7be/ruff-0.17.6-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0", size = 10389427, upload-time = "2026-11-19T15:56:17.617Z" }, + { url = "https://files.pythonhosted.org/packages/81/c7/e09d220818ab146b736d62e0676dad215215d7de0884bbdad9fa075dc7d2/ruff-0.17.6-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582", size = 10760296, upload-time = "2026-11-19T15:56:19.463Z" }, + { url = "https://files.pythonhosted.org/packages/2e/09/28329441dfa2c463e2d377a69d4ebbe4d51665e9dbd49fb421f3bc80d775/ruff-0.17.6-py3-none-win32.whl", hash = "sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128", size = 9966266, upload-time = "2026-11-19T15:56:21.581Z" }, + { url = "https://files.pythonhosted.org/packages/4b/9d/18ba9730addfc7554c70d6f171fb8dc2c08e774d9fb2b98e7946ef845c59/ruff-0.17.6-py3-none-win_amd64.whl", hash = "sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d", size = 10365847, upload-time = "2026-11-19T15:56:23.582Z" }, + { url = "https://files.pythonhosted.org/packages/70/8a/59c33e2a64a4f9672f7f842a0dc522915cfbbaffd13d37d0cec57d1c5c5d/ruff-0.17.6-py3-none-win_arm64.whl", hash = "sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0", size = 9926224, upload-time = "2026-11-19T15:56:25.269Z" }, +] + +[[package]] +name = "secretstorage" +version = "3.5.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cryptography" }, + { name = "jeepney" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/46/f5af3402b579fd5e11573ce652019a67074317e18c1935cc0b4ba9b35552/secretstorage-3.5.0-py3-none-any.whl", hash = "sha256:0ce65888c0725fcb2c5bc0fdb8e5438eece02c523557ea40ce0703c266248137", size = 15554, upload-time = "2025-11-23T19:02:51.545Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "tomli" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/a6/ab99b60ee52acd949684febabc3005d0045d0f66bebd9cdebd67372d26dd/tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545", size = 163901, upload-time = "2026-10-07T12:22:15.601Z" }, + { url = "https://files.pythonhosted.org/packages/bc/00/ee01b7ed4579180fff07142d290257f25ba786f23f3ec6005f620933c2f5/tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef", size = 163756, upload-time = "2026-10-07T12:22:16.957Z" }, + { url = "https://files.pythonhosted.org/packages/72/c2/4efebf65372f6583185f79799312109dddb61102d47e5c33dcfd1a297aca/tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b", size = 268038, upload-time = "2026-10-07T12:22:18.135Z" }, + { url = "https://files.pythonhosted.org/packages/53/07/5850468e925d898abb36038666f9c333a94d2a223e802a8ba5b6d319d23f/tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56", size = 276422, upload-time = "2026-10-07T12:22:19.567Z" }, + { url = "https://files.pythonhosted.org/packages/b4/87/f293984cdcf83c054196d4fd3dad44fc68ae55b4b8c44bc76cef360c3150/tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1", size = 272616, upload-time = "2026-10-07T12:22:20.794Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ce/db582886b3c1219d3fec93ebd669332482e5aee7a91e0f7838d84f2d1759/tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885", size = 276593, upload-time = "2026-10-07T12:22:22.12Z" }, + { url = "https://files.pythonhosted.org/packages/bf/72/7619b87dea4261fc27dd7b54c4461c129c1f7d9bb7ba3aec89c797a431b8/tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e", size = 101830, upload-time = "2026-10-07T12:22:23.651Z" }, + { url = "https://files.pythonhosted.org/packages/1e/74/220106da34502304b6751a2a9b8a9fbca6c3fd47e737a2e2e3da7c61c9db/tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8", size = 112742, upload-time = "2026-10-07T12:22:24.972Z" }, + { url = "https://files.pythonhosted.org/packages/27/99/7d9c8b41837a7773613e169504147375c157a290167aa59ad74a085f521f/tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980", size = 109332, upload-time = "2026-10-07T12:22:26.117Z" }, + { url = "https://files.pythonhosted.org/packages/52/ed/7baa86f87493646a594de388c7c1c40a39dd0461f7e9c0359cbeefc91fe8/tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df", size = 164854, upload-time = "2026-10-07T12:22:27.444Z" }, + { url = "https://files.pythonhosted.org/packages/a5/b1/44c0341f2224397855723c7a8a39f718ea6fcbcc3dacc66e5aeca0f334e3/tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b", size = 164074, upload-time = "2026-10-07T12:22:28.679Z" }, + { url = "https://files.pythonhosted.org/packages/23/04/e2d5b7d3fba47adedb23de616c16d428ea076c79a3d8e1d95d649ffe197e/tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0", size = 274274, upload-time = "2026-10-07T12:22:29.804Z" }, + { url = "https://files.pythonhosted.org/packages/43/90/6090e706ff27a6f89f4a40578e3324b95c3cd8c4150868aabf33a8f414c3/tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6", size = 286435, upload-time = "2026-10-07T12:22:31.297Z" }, + { url = "https://files.pythonhosted.org/packages/0a/9e/a2c40768df16c408f22430afb0a73e9d7e5f79c950884954649d1146b74d/tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc", size = 278119, upload-time = "2026-10-07T12:22:32.601Z" }, + { url = "https://files.pythonhosted.org/packages/12/25/3c0cb485b98e9cfac495629b1c93c87ccf0b72fbe9d2689fd8fe62c6d5a3/tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7", size = 286177, upload-time = "2026-10-07T12:22:33.745Z" }, + { url = "https://files.pythonhosted.org/packages/77/8b/0144c65f0e37e51c18d04ae15c21b19431c165002d0131fe9aa8b0b8b1e8/tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2", size = 102760, upload-time = "2026-10-07T12:22:34.887Z" }, + { url = "https://files.pythonhosted.org/packages/de/32/5d6d8f42fc9a05fce69354e00ff256484192f5f2fc9a2165718fa0de61ec/tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7", size = 112722, upload-time = "2026-10-07T12:22:36.162Z" }, + { url = "https://files.pythonhosted.org/packages/30/65/df18032218db0fb9b769fb23c8039a051f15c811993995ea04c350273a32/tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea", size = 109534, upload-time = "2026-10-07T12:22:37.296Z" }, + { url = "https://files.pythonhosted.org/packages/42/e5/51736d70da209350969e15aca5c5ab6e2ce1ea87a0a892a6c13aec172a86/tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea", size = 163328, upload-time = "2026-10-07T12:22:38.373Z" }, + { url = "https://files.pythonhosted.org/packages/ec/55/086f80dab4ab497602644274e6dea7ec5dd0b4e262e443a8ad3bb7edee2d/tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043", size = 162246, upload-time = "2026-10-07T12:22:39.673Z" }, + { url = "https://files.pythonhosted.org/packages/aa/eb/3ecc94459f3635c92321f4e7bde571323fdb2267c50e19e3188a281eae3b/tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0", size = 272655, upload-time = "2026-10-07T12:22:41.08Z" }, + { url = "https://files.pythonhosted.org/packages/c0/d7/494fd1f0c37a621f1ad9975c2efadb523e8101f144ed6edb2e7fe64738f2/tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b", size = 283595, upload-time = "2026-10-07T12:22:42.222Z" }, + { url = "https://files.pythonhosted.org/packages/70/51/bb8d62b1317e6640866f6949b2d5855e5300f2c99d46de1cd245570bba65/tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066", size = 276253, upload-time = "2026-10-07T12:22:43.625Z" }, + { url = "https://files.pythonhosted.org/packages/66/f4/f46bd7f0763cd47de2db697dca9257c6a4adfd1a93b018cc75c8190ed5a8/tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b", size = 283582, upload-time = "2026-10-07T12:22:44.983Z" }, + { url = "https://files.pythonhosted.org/packages/ac/03/70f2bcb2923a6db37818d917e124270a7f4cfd38ea576f5aa753a91c0ef5/tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68", size = 102628, upload-time = "2026-10-07T12:22:46.508Z" }, + { url = "https://files.pythonhosted.org/packages/dc/98/d52024bb5b0ff68b4f0d276d867f634c84a67319a7e9f6b7708a37742333/tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc", size = 113301, upload-time = "2026-10-07T12:22:47.647Z" }, + { url = "https://files.pythonhosted.org/packages/6f/f2/540db3a70572a8c23a28aba3e9c358ce0ffffbafc990905c1343aa265b31/tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84", size = 109744, upload-time = "2026-10-07T12:22:48.925Z" }, + { url = "https://files.pythonhosted.org/packages/e4/49/caf6b307766eb9567664a8707e9d6be5fcc0e8903f18781c6677a60d80c7/tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105", size = 162899, upload-time = "2026-10-07T12:22:50.088Z" }, + { url = "https://files.pythonhosted.org/packages/d3/c8/68cfce773a2733a49c74f99d627fb461bd990756860099eac25617889585/tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646", size = 162080, upload-time = "2026-10-07T12:22:51.558Z" }, + { url = "https://files.pythonhosted.org/packages/7e/b2/e5bb8651fdad593f670501a7d718b1a7f73f064d44dea15e04c04dfef45d/tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b", size = 273380, upload-time = "2026-10-07T12:22:52.918Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d2/9e2d7f8b1dfe0e2b34c245986ebd55c4c553ea4ce6c47c443b332673253f/tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75", size = 283228, upload-time = "2026-10-07T12:22:54.173Z" }, + { url = "https://files.pythonhosted.org/packages/ba/df/ec7b876b7b1a2718bd74a3743c076fff565b04029ba33e8f61fac262739f/tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb", size = 277189, upload-time = "2026-10-07T12:22:55.342Z" }, + { url = "https://files.pythonhosted.org/packages/7d/7b/e192d9eed0b9cb80da799f4d77052297fb9a2c3cc9b19f571f56ea88add6/tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3", size = 283632, upload-time = "2026-10-07T12:22:56.735Z" }, + { url = "https://files.pythonhosted.org/packages/84/50/ff94454e75461d75623e47401ed323d65c10aab8fe9033242c20cd2fdf32/tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b", size = 103535, upload-time = "2026-10-07T12:22:58.084Z" }, + { url = "https://files.pythonhosted.org/packages/54/0b/bdacf05f963bd6026ebf6eeb0beda847d1d60e03e440725c64a4e08a0afd/tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a", size = 114621, upload-time = "2026-10-07T12:22:59.2Z" }, + { url = "https://files.pythonhosted.org/packages/61/99/53f438fa6ae4f9d4ed0ddde3e7242b3bdc34b48c8f9948b72b9e9b127676/tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3", size = 111572, upload-time = "2026-10-07T12:23:00.479Z" }, + { url = "https://files.pythonhosted.org/packages/b9/20/1f88f19427d380a40e90a770e087489eaafe4aeee070ae88ed2bbec00acd/tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4", size = 171814, upload-time = "2026-10-07T12:23:01.914Z" }, + { url = "https://files.pythonhosted.org/packages/d0/56/cbe5079c9f9a54b9b3e27fc82f08f3cb36edee75561679f53d2380c801d6/tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d", size = 171324, upload-time = "2026-10-07T12:23:03.18Z" }, + { url = "https://files.pythonhosted.org/packages/2b/30/1d53fd3b0f1cb3ba542e345ec32c26aefdddc4e829e4f3429af8a4f27782/tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9", size = 297441, upload-time = "2026-10-07T12:23:04.345Z" }, + { url = "https://files.pythonhosted.org/packages/66/d9/0800acb6a111686f764c1b91ef15cc42a20a66a46013bb42220f1d2c61c1/tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f", size = 307476, upload-time = "2026-10-07T12:23:05.671Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/30a8f3cd51b5bec37f04744bad0b0dc6160df84aad4f27b0e9283d66f221/tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374", size = 296113, upload-time = "2026-10-07T12:23:07.202Z" }, + { url = "https://files.pythonhosted.org/packages/ab/18/0b9ffc597e69c5a1e20a7823cb60d54b39a9f54e91edcb8574f022186758/tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442", size = 307725, upload-time = "2026-10-07T12:23:08.508Z" }, + { url = "https://files.pythonhosted.org/packages/ab/c7/18f8baae0b5607a60e8e19b4a7fedee43a8ff6458e3896dcbbadeeac9c22/tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03", size = 108546, upload-time = "2026-10-07T12:23:09.956Z" }, + { url = "https://files.pythonhosted.org/packages/72/34/4cca9739254130627bde87500b3f2b512154fe2f278efa7e2a5e10ad4bcb/tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1", size = 117814, upload-time = "2026-10-07T12:23:11.486Z" }, + { url = "https://files.pythonhosted.org/packages/7d/fb/afa530d47dd80a78fce43beac6bc6e00f84558eafcffbc6f37b21e80d056/tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0", size = 115188, upload-time = "2026-10-07T12:23:12.728Z" }, + { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" }, +] + +[[package]] +name = "twine" +version = "7.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "id" }, + { name = "keyring", marker = "platform_machine != 'ppc64le' and platform_machine != 's390x'" }, + { name = "packaging" }, + { name = "readme-renderer" }, + { name = "requests" }, + { name = "requests-toolbelt" }, + { name = "rfc3986" }, + { name = "rich" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/92/3c/58f808a359700f39a967dffede33efeac809262c03303fa3eec6afff8f49/twine-7.0.0.tar.gz", hash = "sha256:85cdb29c518efef867360ae4acd4b0dfd61c8654a22fca08e6f8539f05022177", size = 215032, upload-time = "2026-07-27T15:59:00.825Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/96/08/ddcdc06225eaad6de0e48e1002b06d919dbde20582d0662c7af51308e5d6/twine-7.0.0-py3-none-any.whl", hash = "sha256:b854164df26db268af05f49aa5c0344b10e27a494343ff05b1e0bad3b135f5a7", size = 43204, upload-time = "2026-07-27T15:58:59.26Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + +[[package]] +name = "tzdata" +version = "2026.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7a/29/6a1391d31cd00ff9e927215a224a880e1e84e826b64ba80a499e51c074d8/tzdata-2026.6.tar.gz", hash = "sha256:85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d", size = 201017, upload-time = "2026-10-28T09:57:09.137Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0a/66/9a06c2227fedfd4919f0eaaa8b94377d9730882a7e4f95823c9a331ab5e1/tzdata-2026.6-py2.py3-none-any.whl", hash = "sha256:0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec", size = 348210, upload-time = "2026-10-28T09:57:07.276Z" }, +] + +[[package]] +name = "urllib3" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, +] + +[[package]] +name = "virtualenv" +version = "21.15.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "distlib" }, + { name = "filelock", version = "4.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "filelock", version = "4.2.12", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "packaging" }, + { name = "platformdirs", version = "4.12.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, + { name = "platformdirs", version = "4.14.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "python-discovery" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ae/66/8dd793701fa14a32086a7b7c3acaa7c22d8de6a7359b34eb7467d2d00c51/virtualenv-21.15.9.tar.gz", hash = "sha256:adc6799981f513ce852aea17ea592e0d342ce48e87f5d17a3d997966df582a67", size = 5676072, upload-time = "2026-11-18T18:12:23.394Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7a/97/b18afd39e22dcddb79656a7d3b69b7a6bfa2c3bc65159744f0c12a1bcb50/virtualenv-21.15.9-py3-none-any.whl", hash = "sha256:c0fbae7de061402e31897d96cfbe7dc35ce93cd464fe05f9bdbecf61313447bf", size = 5730190, upload-time = "2026-11-18T18:12:21.088Z" }, +] + +[[package]] +name = "websocket-client" +version = "1.9.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/cb/a5abcc2891249f393827c650c6296660ce40374ac22d99ab9aea41f9d2a2/websocket_client-1.9.2.tar.gz", hash = "sha256:0fcb57545848be86992e128218fd96dd87a6769ffdb1a968dff79632b85604d0", size = 84110, upload-time = "2026-08-31T14:08:40.964Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d5/d2/cc4dc1271e464942db7ee278baae2daa99ee77cb2af744025c04da585a3e/websocket_client-1.9.2-py3-none-any.whl", hash = "sha256:e1a673830a9c7bfa47b1cd3d5e4178f4c9651d80a4eab02c9c23a1c3ec6250ce", size = 95786, upload-time = "2026-08-31T14:08:39.899Z" }, +] + +[[package]] +name = "zipp" +version = "4.1.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/05/ba1458dee0ac485b2a01071c1b88f5199fe878a485df482e10e1ef2205cc/zipp-4.1.2.tar.gz", hash = "sha256:cf474b90b07ea932637e17c6b9479de2b2882900b0d311bdaf4f5c000a15a97f", size = 27864, upload-time = "2026-10-21T18:57:04.743Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b8/44/7bd2007260da11cccca29ba2d4c345f1287aa663db38ee7cefeabf6386a5/zipp-4.1.2-py3-none-any.whl", hash = "sha256:b30cb6cd253122169c47de245ca24a86bac2a5d3802ba15bf7ba6414eb9e144d", size = 10581, upload-time = "2026-10-21T18:57:03.79Z" }, +]