Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +18 -18
requirements.txt
CHANGED
@@ -1,22 +1,18 @@
|
|
1 |
-
# requirements.txt
|
2 |
-
|
3 |
# Telegram Bot Library
|
4 |
-
python-telegram-bot[httpx]>=
|
5 |
-
|
6 |
-
# HTTPX (explicitly, for Limits)
|
7 |
-
httpx>=0.24.0,<0.28.0 # Specify a compatible range
|
8 |
|
9 |
-
#
|
10 |
-
|
11 |
|
12 |
-
# ASGI Framework (
|
13 |
-
starlette>=0.
|
14 |
|
15 |
-
# HTTP Requests Library (for
|
16 |
-
requests>=2.28,<2.33
|
17 |
|
18 |
# Web Scraping (HTML Parsing)
|
19 |
beautifulsoup4>=4.11,<4.13
|
|
|
20 |
|
21 |
# YouTube Transcript Library
|
22 |
youtube-transcript-api>=0.6,<0.7
|
@@ -25,11 +21,15 @@ youtube-transcript-api>=0.6,<0.7
|
|
25 |
apify-client>=1.0,<1.3 # If using Apify
|
26 |
|
27 |
# WSGI/ASGI Servers & Adapter
|
28 |
-
gunicorn>=21.0,<23.0
|
29 |
-
uvicorn[standard]>=0.
|
30 |
-
|
|
|
|
|
|
|
31 |
|
32 |
-
#
|
33 |
-
|
34 |
|
35 |
-
|
|
|
|
|
|
|
|
1 |
# Telegram Bot Library
|
2 |
+
python-telegram-bot[httpx]>=21.0,<22.0 # PTB v21 is recommended
|
|
|
|
|
|
|
3 |
|
4 |
+
# HTTPX (explicitly, for Limits and direct use)
|
5 |
+
httpx>=0.25.0,<0.28.0
|
6 |
|
7 |
+
# ASGI Framework (Core)
|
8 |
+
starlette>=0.35.0,<0.38.0 # Ensure compatibility with PTB/HTTPX async nature
|
9 |
|
10 |
+
# HTTP Requests Library (for sync fallback or specific APIs if needed)
|
11 |
+
# requests>=2.28,<2.33 # Keep if any sync code still uses it, otherwise optional
|
12 |
|
13 |
# Web Scraping (HTML Parsing)
|
14 |
beautifulsoup4>=4.11,<4.13
|
15 |
+
lxml>=4.9.0,<6.0.0 # Often faster parser for BS4, good practice
|
16 |
|
17 |
# YouTube Transcript Library
|
18 |
youtube-transcript-api>=0.6,<0.7
|
|
|
21 |
apify-client>=1.0,<1.3 # If using Apify
|
22 |
|
23 |
# WSGI/ASGI Servers & Adapter
|
24 |
+
gunicorn>=21.0,<23.0
|
25 |
+
uvicorn[standard]>=0.27.0,<0.30.0 # Use standard for websockets, http/2 etc.
|
26 |
+
|
27 |
+
# Async Utilities / Dependencies
|
28 |
+
anyio>=3.6,<5.0 # Explicitly add anyio, often helps resolve conflicts
|
29 |
+
asgiref>=3.5,<3.9
|
30 |
|
31 |
+
# Retry Logic
|
32 |
+
tenacity>=8.0,<9.0
|
33 |
|
34 |
+
# Optional: For better encoding detection if needed
|
35 |
+
# chardet>=4.0.0,<6.0.0
|