feedgen~=1.0
feedparser~=6.0  # For parsing RSS/Atom feeds
flask-compress
flask-login>=0.6.3
flask-paginate
flask-socketio>=5.7.2,<6 # Re #3910
flask>=3.1,<4
flask_cors # For the Chrome extension to operate
flask_restful
flask_wtf~=1.3
# 2.7.6 changed block indentation in its text output, which would show up as a whitespace-only change
# in every snapshot taken with include filters. Upgrade deliberately, with a release note.
inscriptis>=2.7.6,<2.7.7
python-engineio>=4.15.1,<5
python-socketio>=5.18.1,<6
pytz
regex>=2026.9.29 # regex_replace Jinja2 filter, thread-safe timeout= for ReDoS protection
timeago~=1.0
validators~=0.36
werkzeug==3.1.9


# Set these versions together to avoid a RequestsDependencyWarning
# >= 2.26 also adds Brotli support if brotli is installed
brotli>=1.2.1,<2
requests[socks]
requests-file

# urllib3==1.26.19  # Unpinned - let requests decide compatible version
# If specific version needed for security, use urllib3>=1.26.19,<3.0
chardet>=7.7.0

wtforms~=3.3
jsonpath-ng~=1.16.0

# Fast JSON serialization for better performance
orjson~=3.13

# dnspython - Used by paho-mqtt for MQTT broker resolution  
# Version pin removed since eventlet (which required the specific 2.6.1 pin) has been eliminated
# paho-mqtt will install compatible dnspython version automatically

# jq not available on Windows so must be installed manually

# Notification library
apprise==2.2.0

diff_match_patch

# Lightweight URL linkifier for notifications
linkify-it-py

# Requires extra wheel for rPi, adds build time for arm/v8 which is not in piwheels, (only 6/7)
# So we will probably drop support for v8 because its not worth the extra security risk/build time
# Was pinned to 44.x for ARM compatibility
cryptography==50.0.2

# apprise mqtt https://github.com/dgtlmoon/changedetection.io/issues/315
# use any version other than 2.0.x due to https://github.com/eclipse/paho.mqtt.python/issues/814
paho-mqtt!=2.0.*

# Used for CSS filtering, JSON extraction from HTML
beautifulsoup4<=4.15.0,>=4.15.0

# XPath filtering, lxml is required by bs4 anyway, but put it here to be safe.
# #2328 - 5.2.0 and 5.2.1 had extra CPU flag CFLAGS set which was not compatible on older hardware
#         It could be advantageous to run its own pypi package here with those performance flags set
#         https://bugs.launchpad.net/lxml/+bug/2059910/comments/16
lxml !=5.2.0,!=5.2.1,>=6.1.3,<7

# XPath 2.0-3.1 support - 4.2.0 had issues, 4.1.5 stable
# Consider updating to latest stable version periodically
elementpath==5.1.4

# For fast image comparison in screenshot change detection
# opencv-python-headless is OPTIONAL (excluded from requirements.txt)
# - Installed conditionally via Dockerfile (skipped on arm/v7 and arm/v8 due to long build times)
# - Pixelmatch is used as fallback when OpenCV is unavailable
# - To install manually: pip install opencv-python-headless>=4.8.0.76

selenium~=4.52.0

# Templating, so far just in the URLs but in the future can be for the notifications also
jinja2~=3.1
arrow
openpyxl
# https://peps.python.org/pep-0508/#environment-markers
# https://github.com/dgtlmoon/changedetection.io/pull/1009
jq~=1.3; python_version >= "3.8" and sys_platform == "darwin"
jq~=1.3; python_version >= "3.8" and sys_platform == "linux"

# playwright is installed at Dockerfile build time because it's not available on all platforms

pyppeteer-ng==2.0.0rc16
pyppeteerstealth>=0.0.5

# Include pytest, so if theres a support issue we can ask them to run these tests on their setup
pytest ~=9.2
pytest-flask ~=1.3
pytest-mock ~=3.17

# OpenAPI validation support
openapi-core[flask] ~= 0.23
# openapi-spec-validator (pulled in by openapi-core) requires jsonschema>=4.24.0.
# litellm 1.83.1–1.83.14 exact-pin jsonschema==4.23.0, which is below that floor —
# the two can never coexist. Without this pin, pip walks back through ~14 litellm
# patch releases before finding 1.83.0 (jsonschema>=4.23.0,<5.0.0, accepts 4.24.x).
# Pinning >=4.24.0 here lets the resolver reject incompatible litellm versions immediately.
jsonschema>=4.26.0,<5.0.0

loguru

# For scraping all possible metadata relating to products so we can do better restock detection
extruct

# For cleaning up unknown currency formats
babel==2.18.0
# For internationalization (i18n) support
Flask-Babel>=4.0.0

# rapidfuzz (MIT) - do NOT swap back to `levenshtein`, which is GPL-2.0-or-later
# and would force the combined work to be GPL. See the license-compliance CI step.
rapidfuzz

# Needed for > 3.10, https://github.com/microsoft/playwright-python/issues/2096
greenlet >= 3.5.6

# Optional: Used for high-concurrency SocketIO mode (via SOCKETIO_MODE=gevent)
# Note: gevent has cross-platform limitations (Windows 1024 socket limit, macOS ARM build issues)
# Default SOCKETIO_MODE=threading is recommended for better compatibility
gevent

referencing==0.37.0  # jsonschema-path>=0.4.x allows <0.38.0; 0.37.0 is current latest

# For conditions
panzi-json-logic
# For conditions - extracted number from a body of text
price-parser

# flask_socket_io - incorrect package name, already have flask-socketio above

# Lightweight MIME type detection (saves ~14MB memory vs python-magic/libmagic)
# Used for detecting correct favicon type and content-type detection
puremagic<2.0  # 2.x requires Python >=3.12; unpin once 3.11 support is dropped

# Scheduler - Windows seemed to miss a lot of default timezone info (even "UTC" !)
tzdata

#typing_extensions ==4.8.0

pluggy ~= 1.7

# LLM intent-based change evaluation (multi-provider via litellm)
# Uncapped: litellm now uses jsonschema<5.0,>=4.0.0, resolving earlier openapi-spec-validator conflict.
# Note litellm >=1.83.11 does `from typing import NotRequired`, which is 3.11+ (PEP 655) - that is
# why 3.10 support was dropped rather than pinning everyone to the last 3.10-compatible release.
# armv7: litellm ships a Rust extension with PyPI wheels for x86_64/aarch64 only. armv7 wheels come from
# piwheels, which lags (or fails) on new releases, and compiling the sdist under QEMU takes 3+ hours then
# runs out of memory. So armv7 keeps a loose floor and the Dockerfile passes --only-binary=litellm, pip then
# picks the newest version that has an armv7 wheel. Don't raise the armv7 floor (Dependabot will try)
# above what https://www.piwheels.org/project/litellm/ has built.
litellm>=1.106.2; platform_machine != "armv7l"
litellm>=1.91.5; platform_machine == "armv7l"
# Used today for LLMSettings (model/LLMSettings.py); transitively pulled by litellm but pinned explicitly
# so the validation/typing layer doesn't disappear if litellm drops it.
pydantic>=2.14.3,<3.0
# MCP wire types and protocol versions for /mcp (MIT, only needs pydantic). Not the full `mcp` SDK, which is ASGI
# (starlette/uvicorn). ~15MB once loaded, so only imported on the first authenticated /mcp request.
mcp-types>=2.3.0,<3.0
# For MCP LLM server
authlib>=1.9.5,<2.0
# BM25 relevance trimming for large snapshots (pure Python, no ML)
rank-bm25>=0.2.2

# Needed for testing, cross-platform for process and system monitoring
psutil==7.2.2

# For events between checking and socketio updates
blinker
pytest-xdist


# QR code for the "install on your phone" PWA hand-off in Settings > General.
# BSD-3-Clause and dependency-free. Chosen over `qrcode`, which ships both a BSD and an
# "Other/Proprietary" trove classifier - ambiguity we don't want in an Apache-2.0 tree.
segno==1.6.6
