fmab777 commited on
Commit
6fb1082
·
verified ·
1 Parent(s): b3e1b64

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +18 -18
requirements.txt CHANGED
@@ -1,22 +1,18 @@
1
- # requirements.txt
2
-
3
  # Telegram Bot Library
4
- python-telegram-bot[httpx]>=20.0,<22.0 # Widen range slightly if needed
5
-
6
- # HTTPX (explicitly, for Limits)
7
- httpx>=0.24.0,<0.28.0 # Specify a compatible range
8
 
9
- # Web Framework (Core, needed by WSGIMiddleware)
10
- Flask>=2.0,<3.1
11
 
12
- # ASGI Framework (for Lifespan Management & Server)
13
- starlette>=0.25.0,<0.38.0 # Specify a compatible range
14
 
15
- # HTTP Requests Library (for external APIs)
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 # Check compatibility
29
- uvicorn[standard]>=0.20.0,<0.30.0 # Use standard for websockets etc. if needed later
30
- asgiref>=3.5,<3.9 # Dependency for ASGI
 
 
 
31
 
32
- # Other built-ins:
33
- # json, html, contextlib, logging, os, re, asyncio
34
 
35
- tenacity>=8.0,<9.0
 
 
 
 
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