File size: 5,041 Bytes
c0e9d84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2517c3e
c0e9d84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2517c3e
c0e9d84
2517c3e
 
 
 
c0e9d84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Ultroid packaging manifest.
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"

[project]
name = "ultroid"
version = "28.09.2026"
description = "Ultroid β€” Modernized Telethon userbot."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "AGPL-3.0-or-later" }
authors = [{ name = "Mahesh953-hub" }]
keywords = ["telegram", "userbot", "telethon", "ultroid"]

# Mirrored from requirements.txt (canonical). Keep in sync.
dependencies = [
    "Telethon",
    "py-tgcalls",
    "pycryptodome",
    "pytubefix",
    "python-decouple",
    "python-dotenv",
    "pyshorteners",
    "google-search-results",
    "motor",
    "pydantic",
    "aiofiles",
    "tesseract",
    "spotipy",
    "pillow",
    "ffmpeg-python",
    "authlib",
    "coloredlogs",
    # google.generativeai removed (EOL) β€” consolidated onto google-genai.
    "google-genai",
    "pyrogram",
    "urllib3",
    "huggingface_hub",
    "azure-ai-inference",
    "autoevals",
    "openai>=1.40",
    "duckduckgo_search",
    # Git-sourced: covid, AsyncLyricsExtractor, drawHub β€” see [tool.uv.sources].
    # NOTE: the drawHub repo package metadata name is actually phlogo.
    "covid",
    "asynclyrics-extractor",
    "phlogo",
    "emoji",
    "fonttools",
    "gtts",
    "gingerit",
    "jikanpy",
    "pokedex.py",
    "pyfiglet",
    "pygments",
    "pyjokes",
    "quotefancy",
    "speechrecognition",
    "speedtest-cli",
    "textblob",
    "wikipedia",
    # Zip-sourced: google_trans_new 1.2.0 β€” see [tool.uv.sources].
    "google-trans-new",
    "markdownify",
    "meval",
    "itsdangerous",
    "wget",
    "g4f",
    # Previously imported-but-undeclared (W0-A):
    "mutagen",        # required by ALL 14 vc/ modules
    "GitPython",      # startup/loader.py, plugins/_inline.py, fns/helper.py
    "fastapi",        # server.py
    "uvicorn",        # server.py
    "nest-asyncio",   # server.py
    "dnspython",      # pyUltroid/__init__.py DNS patch (unconditional import)
    "redis",           # _database.py Redis backend
    "pymongo",         # _database.py Mongo backend
    "psycopg2-binary", # _database.py SQL backend
]

[project.optional-dependencies]
# Voice-chat music stack (plugins/vcmusic, plugins/youtube, vc/).
# The core engine deps (py-tgcalls, pycryptodome, mutagen, pytubefix) are
# already in `dependencies` because vc/_pytgcalls.py imports them at module
# level; this extra only adds the extraction toolchain.
#
# System requirement (NOT a pip package β€” install it separately):
#   ffmpeg            the pytgcalls audio pipeline shells out to it
#   fonts-dejavu-core the portrait error card needs a monospace face; without
#                     one Pillow silently falls back to a proportional font.
#                     Debian/Ubuntu: apt-get install -y ffmpeg fonts-dejavu-core
#                     Verify with: python -c "from pyUltroid.imaging._errorcard import mono_available; print(mono_available())"
vc = ["yt-dlp", "tgcrypto"]
# Web/setup server extras beyond the core fastapi/uvicorn already in deps.
web = ["aiohttp", "jinja2"]
# Optional AI providers used by pyUltroid/agent and plugins/brain.py.
# (openai + google-genai are core deps; aiohttp backs the Ollama local
# provider and the web_search tool β€” W2-C.)
ai = ["anthropic", "groq", "aiohttp"]
# Optional plugin dependencies (each missing one currently kills its plugin
# at load time β€” see exploration doc section F).
plugins = [
    "telegraph",
    "pytz",
    "psutil",
    "qrcode",
    "akipy @ git+https://github.com/ufoptg/akipy.git@2af0027d05ef32a89aa6dede27a7bde4d8c4ad0e",
    "htmlwebshot",
    "oauth2client",
    "opencv-python-headless",
]
# Local-deploy extras historically in resources/startup/optional-requirements.txt.
local = [
    "apscheduler",
    "bs4",
    "CairoSVG",
    "enhancer>=0.3.4",
    "heroku3",
    "google-api-python-client",
    "lottie",
    "lxml",
    "numpy>=1.21.2",
    "profanitydetector",
    "pypdf2>=1.26.0",
    "requests",
    "tabulate",
    "youtube-search-python",
]
# Development / testing.
dev = ["pytest", "pytest-asyncio", "uv"]

[tool.setuptools.packages.find]
include = ["pyUltroid*", "assistant*", "plugins*", "vc*", "custom*", "strings*"]

# uv sources for the non-PyPI pins (mirrors the git+/zip lines of
# requirements.txt). The Telethon fork pin is intentional β€” do not
# switch it to PyPI telethon. Every git source is pinned to a commit SHA.
[tool.uv.sources]
Telethon = { git = "https://github.com/Mahesh953-hub/Telethon.git", rev = "e8019a5b701f40455c1e0cfaa2d6bd97d5bf5798" }
covid = { git = "https://github.com/ufoptg/covid.git", rev = "91e231d579b175f4f8d736f95807560d4604549f" }
asynclyrics-extractor = { git = "https://github.com/New-dev0/AsyncLyricsExtractor.git", rev = "d66711558690ad53fb2b485f6c8ffa1bbd30a429" }
phlogo = { git = "https://github.com/ufoptg/drawHub.git", rev = "6ba7d3aec308ffd11fd9c1f089cb04a6561154c6" }
google-trans-new = { url = "https://github.com/ufoptg/google_trans_new/archive/refs/tags/1.2.0.zip" }