Skip to main content

Шаблоны Python-приложений для демонстрационного экзамена: PostgreSQL, Tkinter, авторизация, CRUD.

Project description

katicas

katicas is a PyPI-ready helper library for building demo exam desktop apps in Python. It is domain-neutral: the same code can become a shoe store, restaurant, zoo, library, hotel, clinic, or warehouse app by changing a JSON specification.

What it gives you

  • PostgreSQL connection helper for pgAdmin-created databases.
  • Login by login and password from a users table.
  • Role-based access: guest, client, manager, administrator.
  • Tkinter UI with required exam-style screens: login, entity list, search, filtering, sorting, CRUD.
  • SQL generator for users, roles and your main entities.
  • Import helper for official exam .xlsx, .csv and .txt files.
  • Project generator: demexam-new.

Russian documentation:

  • GUIDE_RU.md - detailed usage, exam workflow and PyPI notes.
  • MODULES_RU.md - explanation of every module.
  • examples/custom_template.json - blank domain template.

Each generated project also contains:

  • 01_ALGORITHM.md - step-by-step exam workflow.
  • 02_DATABASE_3NF.md - database and 3NF checklist.
  • 03_AUTH.md - login window and role checklist.
  • 04_IMPORT_EXCEL.md - Excel/CSV import checklist.

Install locally while testing

pip install -e .

After publishing to PyPI:

pip install katicas

Generate an exam project

demexam-new --preset store --out my_exam_app
cd my_exam_app
python app.py

Or use your own domain file:

demexam-new --spec restaurant.json --out restaurant_app

The generated project is standalone: it contains a local examlib folder, so the app does not break after removing the installed generator package.

Database environment variables

set DEMEXAM_DB_NAME=demo_exam
set DEMEXAM_DB_USER=postgres
set DEMEXAM_DB_PASSWORD=postgres
set DEMEXAM_DB_HOST=localhost
set DEMEXAM_DB_PORT=5432

On PowerShell:

$env:DEMEXAM_DB_NAME="demo_exam"
$env:DEMEXAM_DB_USER="postgres"
$env:DEMEXAM_DB_PASSWORD="postgres"

Run generated SQL in pgAdmin first:

python app.py --print-sql

Then import official exam files from the Импорт folder:

python app.py --import-dir "Импорт"

The generated schema.sql does not add fake business rows. If you need quick demo rows for local testing only:

python app.py --print-sql --with-sample-data

Before leaving the exam computer, if required by the rules:

pip uninstall katicas -y

Do not delete the generated project files you wrote for the solution.

Domain idea

The task changes words, not the architecture:

  • Store: products, orders, clients.
  • Restaurant: dishes, tables, bookings/orders.
  • Zoo: animals, enclosures, visits.
  • Library: books, readers, loans.

Change spec.json, keep the code.

Important

No package can guarantee passing an exam by itself. This library is meant to save time on repetitive CRUD, auth, PostgreSQL and Tkinter structure so you can adapt the app quickly to the exact task.

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

katicas-0.1.3.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

katicas-0.1.3-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file katicas-0.1.3.tar.gz.

File metadata

  • Download URL: katicas-0.1.3.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for katicas-0.1.3.tar.gz
Algorithm Hash digest
SHA256 aad48e6009e2b2f6fafe51170babe00f727351feb9e1afce3760e34b4fb29811
MD5 29cd73533ef32b75b237db723bb03e9e
BLAKE2b-256 ff399837d807b7972435f6bcdc023539151380426204b0499690d4d1f81184d8

See more details on using hashes here.

File details

Details for the file katicas-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: katicas-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for katicas-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10d80b2a389e2356b7ad16992e63c06a74019cf072731df6bb24f595a1915b08
MD5 02d8b9058491da5e8a75fd0aab8aeea5
BLAKE2b-256 407f97a5777ee14ef2f0eb3c5b1c0215f99566db4dbcd00a7fe1e1114d903538

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