Модуль Qt․py это не просто текстовый модуль, его компоненты генерируются на лету в зависимости от ситуации.
Поэтому ваша любимая IDE не сможет качественно сообразить автокомплиты под этот модуль.
Решение здесь более чем очевидно, надо сделать stubs-файлы. Это файлы с расширением .pyi, описывающие содержимое модуля но не имеющие рабочего кода.
Ну что, готовы потратить пару месяцев своей жизни чтобы описать все классы Qt и их методы? 😭
Расслабьтесь, за вас это уже сделали добрые люди.
Спасибо Fredrik Averpil !
Качаем здесь ⬇️
https://github.com/fredrikaverpil/Qt.py/tree/stubs/stubs/Qt
Не думаю что стоит устанавливать Qt․py из этого репозитория. Он там не обновляется. Так что забираем только файлы .pyi.
За актуальность этих файлов тоже не ручаюсь, но большинство методов там имеются.
Установка:
🔸 Вариант 1:
- находим куда установлен сам модуль Qt․py, это будет одинокий файл который так и называется Qt․py
- кидаем директорию рядом с ним (если есть доступ на запись). Должно получиться так:
📁 site-packages\
📄 Qt.py
📁 Qt\
...
🔸 Вариант 2
- копируем директорию Qt куда угодно
- пробиваем путь к ней в настройках энвайронмента в переменную PATH так, чтобы путь был ДО директории Qt.
Закинуть можно и в свою домашнюю директорию. Если скопируете сюда:
~/stubs/Qt
То переменную пишем так
export PATH=~/stubs:${PATH}
После этого IDE должна распарсить stubs-файлы и автокомплиты появятся 😎
#qt#libs#tricks
#typescript#ai#cli#summarize#typescript
Summarize is a fast tool for summarizing URLs, PDFs, images, audio/video, YouTube, and podcasts via Chrome Side Panel (with chat and history), Firefox Sidebar, or CLI. Install the extension from Chrome Web Store, add the local daemon with `npm i -g @steipete/summarize` and `summarize daemon install --token <TOKEN>`, then get one-click summaries, YouTube slides with OCR/timestamps, streaming Markdown, and media transcription. It saves time by quickly digesting long content so you focus on key insights without reading everything.
https://github.com/steipete/summarize
✨AI Tools for Sending Message
Unlock AI Power in Your Chat! Just type your message and use the AI tools directly within this chat. Get instant summaries, rewrites, and more! Let's get started!
✍️Summarize
📝Rewrite
😉Add Emoji to the Text
🔎Explaining Subject
❤️Graph Messenger 11.20.0
🗓Added from: June 2, 2025
#features#ai#ai_tools#chat
#summarize#rewrite
@GraphMessenger
@GraphMessengerTips
✨AI Tools
Supercharge Your Conversations with AI! Want to summarize a message, obtain key points of the message, explain the subject of the message, or rewrite something for clarity? Use our AI tools right here in the chat!
✍️Summarize Message
🗂Obtain Key Points of the message
🔎Explanation of the message subject
📝Rewrite Message
😉Add Emoji to the Text
❤️Graph Messenger 11.20.0
🗓Added from: June 2, 2025
#features#ai#ai_tools#chat
#summarize#key_points#explain
@GraphMessenger
@GraphMessengerTips