В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны.
Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2.
Например, в PyQt4 и PySide есть метод
QHeaderView.setResizeMode
Для PyQt5 и PySide2 они были благополучно переименованы в
QHeaderView.setSectionResizeMode
Чтобы применить этот метод следует использовать такой код
from Qt import QtCompath
header = self.horizontalHeader()
QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed)
Унификация загрузки UI файлов:
# PySide2
from PySide2.QtUiTools import QUiLoader
loader = QUiLoader()
widget = loader.load(ui_file)
# PyQt5
from PyQt5 import uic
widget = uic.loadUi(ui_file)
# Qt.py
from Qt import QtCompat
widget = QtCompat.loadUi(ui_file)
Хорошо что таких моментов не много и их легко запомнить.
Полный список можно посмотреть в таблице.
#qt#tricks
🌍Innovatsion biznesda texnologik transfer mavzusida amaliy seminar
🎓 Respublikamizda tadbirkorlik subyektlari tomonidan innovatsion ishlanmalar, yangi texnologiyalar va nou-xaularni ishlab chiqarishga joriy etishni qo‘llab-quvvatlash maqsadida Biznes va tadbirkorlik oliy maktabi 2024-yil 5-6-noyabr kunlari “Innovatsion biznes va startaplarni rivojlantirishda texnologiyalar transferi” mavzusida ikki kunlik seminar tashkil etmoqda.
➡️ Seminardan maqsad innovatsion loyihalarni amalga oshirishda ilm-fan yutuqlari va innovatsion ishlanmalarga oid texnologik transferni keng qo‘llashning amaliy jihatlarini o‘rganishdan iborat.
💠 Tadbirda Koreyalikekspert va mahalliymutaxassislar tomonidan mavzuga oid taqdimot, ma’ruza hamda muhokamalar o‘tkaziladi.
🔹 Seminarda ishtirok etish uchun 2024-yil 4-noyabrga qadar ro‘yxatdan o‘tish lozim.
🔗Ro‘yxatdan o‘tish.
🔷 Ishtirokchilar soni cheklangan.
🔝 Sanasi: 5-6-noyabr
🔝 Vaqti: 09-30 – 13-00
📞 Telefon: +99871 239-03-27
🇬🇧Eng
🇷🇺Ru
#GraduateSchool#Healthtech#Startup#Evaluation
🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube
🌟Startup Evaluation: HealthTech Series 🌟
📣Biznes va tadbirkorlik oliy maktabi Toshkent tibbiyot akademiyasi bilan hamkorlikda sog‘liqni saqlash va tibbiy texnologiyalar sohasida dastlabki inkubatsiya bosqichidagi startap loyihalarni qo‘llab-quvvatlash va rivojlantirish bo‘yicha “Startup Evaluation: HealthTech Series” loyihasini amalga oshirmoqda.
💠Tadbirdan maqsad - sog‘liqni saqlash sohasida yosh startap tashabbuskorlari hamda biznes va ta’lim sohasidagi yetakchi ekspertlar o'rtasida samarali muloqotni tashkil etishdan iboratdir.
Tadbir yosh startap egalari uchun startap loyihasini rivojlantirishda qulay imkoniyat yaratadi.
➡️Tadbirda startaplarni quyidagilar kutmoqda:
🔘 o‘z biznes loyihalarini taqdimot qilish va ekspertlar bilan startaplarni amalgaoshirish bo‘yicha fikr almashish imkoniyati;
🔘 bizines sohasidagi yetakchi professor va ekspertlardan maslahatlar olish;
🟣 startap loyihalarnitakomillashtirish bo‘yicha navbatdagi qadamlarni muhokama qilish;
🟡 startaplarni kelgusida rivojlantirish bo‘yicha Oliy maktabining ko‘magiga tayanish.
🔍Ma’lumot uchun: “Startup Evaluation" loyihasi - bu Biznes va tadbirkorlik oliy maktabining startaplarni qo‘llab-quvvatlash platformasi bo‘lib, yosh startap tashabbuskorlarining startap loyihalarini qisqa muddatda amalga oshirish bo‘yicha o’zaro hamkorlikni nazarda tutadi.
🗓 Sana: 2024-yil 8-oktabr
🕖 Vaqt: 09:00-13:00.
📱 Telefon: +998712390327
📍 Joylashuv: Biznes va tadbirkorlik oliy maktabi (5-qavat)
🇬🇧Eng
🇷🇺Ru
#GraduateSchool#Healthtech#Startup#Evaluation
🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube
#python#agents#document_search#evaluation#guardrails#llms#optimization#prompts#rag#vector_stores
Ragbits is a tool that helps build and deploy GenAI applications quickly. It offers features like swapping between many language models, ensuring safe interactions with these models, and connecting to various data storage systems. Ragbits also includes tools for managing data and testing prompts, making it easier to develop reliable AI applications. This helps users create more accurate and efficient AI systems by integrating the latest data and reducing errors. Overall, Ragbits makes it faster and more efficient to develop and deploy AI applications.
https://github.com/deepsense-ai/ragbits
#typescript#ai#analytics#datasets#dspy#evaluation#gpt#llm#llmops#low_code#observability#openai#prompt_engineering
LangWatch helps you monitor, test, and improve AI applications by tracking performance, comparing different setups, and optimizing prompts automatically. It works with any AI tool or framework, keeps your data secure, and lets you collaborate with experts to fix issues quickly, making your AI more reliable and efficient.
https://github.com/langwatch/langwatch
#go#agent#agentic#ai#chatbot#chatbots#embeddings#evaluation#generative_ai#golang#knowledge_base#llm#multi_tenant#multimodel#ollama#openai#question_answering#rag#reranking#semantic_search#vector_search
WeKnora is a powerful tool that helps you understand and find answers in complex documents like PDFs and Word files. It uses advanced AI to read documents, understand what they mean, and answer your questions in a simple way. This tool is useful for businesses and researchers because it can quickly find information from many documents, making it easier to manage knowledge and make decisions. It also supports multiple languages and can be used privately, ensuring your data stays safe.
https://github.com/Tencent/WeKnora
#typescript#ci#ci_cd#cicd#evaluation#evaluation_framework#llm#llm_eval#llm_evaluation#llm_evaluation_framework#llmops#pentesting#prompt_engineering#prompt_testing#prompts#rag#red_teaming#testing#vulnerability_scanners
Promptfoo is a tool that helps developers test and improve AI applications using Large Language Models (LLMs). It allows you to **test prompts and models** automatically, **secure your apps** by finding vulnerabilities, and **compare different models** side-by-side. You can use it on your computer or integrate it into your development workflow. This tool helps you make sure your AI apps work well and are secure before you release them. It saves time and ensures quality by using data instead of guessing.
https://github.com/promptfoo/promptfoo