Skip to main content

Все шаблоны проектов для демо-экзамена 09.02.07

Project description

exam-mysql

Шаблон проекта для демонстрационного экзамена 09.02.07 «Информационные системы и программирование».

Состав

  • exam_mysql.py — главное приложение (PyQt6 + MySQL)
  • config.py — настройки подключения к БД
  • create_db.sql — скрипт создания базы данных (3НФ)
  • insert_data.sql — тестовые данные
  • picture.png / default.png — заглушки для товаров без фото
  • product_images/ — папка с фото товаров
  • requirements.txt — зависимости

Установка

pip install exam-mysql

Использование после установки

from exam_mysql import get_file, get_sql
from pathlib import Path
import shutil

# Получить путь к SQL-скрипту внутри установленного пакета
sql_path = get_sql("create_db.sql")

# Скопировать шаблон проекта на рабочий стол
desktop = Path.home() / "Desktop" / "exam_mysql_template"
desktop.mkdir(exist_ok=True)
shutil.copy(get_file("exam_mysql.py"), desktop)
shutil.copy(get_file("config.py"), desktop)
shutil.copy(get_file("create_db.sql"), desktop)
shutil.copy(get_file("insert_data.sql"), desktop)
shutil.copy(get_file("picture.png"), desktop)

Запуск

exam-mysql

Или:

python -m exam_mysql.exam_mysql

Настройка БД

  1. Установи MySQL Server 8.0+
  2. Выполни скрипты:
    mysql -u root -p < create_db.sql
    mysql -u root -p < insert_data.sql
    
  3. Настрой config.py (логин/пароль MySQL)

Зависимости

  • PyQt6
  • PyMySQL
  • MySQL Server 8.0+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt6_sup-1.0.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyqt6_sup-1.0.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file pyqt6_sup-1.0.0.tar.gz.

File metadata

  • Download URL: pyqt6_sup-1.0.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for pyqt6_sup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8e7cdcefeb64bd31e93be425052a2781fb00e6d46e65c4922fb840decc86aea8
MD5 f0474d4bccb2c870217552c93aa17d3c
BLAKE2b-256 f5fe8627e0fac3e975f850a543b7d0cb850ed4d0cdb13fbc42312b728c1c7f6b

See more details on using hashes here.

File details

Details for the file pyqt6_sup-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyqt6_sup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for pyqt6_sup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ac37f413aecd89d7cb4f8c84831ce407d5a778bc61cfe04612835c3caa5e7e
MD5 af461f6d90525e4c9a836b184c9a6d32
BLAKE2b-256 5ae279a4d509d19b94cc9cbb6ee78025006771378a0af0ece9e989e7b4884f33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page