Шаблоны 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
loginandpasswordfrom auserstable. - 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,.csvand.txtfiles. - 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:
00_START_HERE_FOR_BEGINNER.md- beginner-friendly full workflow.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.05_DB_CONNECTION.md- PostgreSQL connection checklist.06_MODELS.md- models, entities and fields.07_PAGES_TRANSITIONS.md- screens and navigation.08_ROLE_PAGES.md- what guest/client/manager/admin see.09_MODULES_MAP.md- where every module lives.10_FINAL_CHECKLIST.md- final submission checklist.11_FLOWCHARTS.md- flowchart templates for auth, CRUD, import and app logic.12_ER_DIAGRAM.md- ER diagram checklist.13_STYLE_ASSETS.md- style, logo, icon and images.14_SEARCH_FILTER_SORT.md- search, filter and sort.15_VALIDATION_ERRORS.md- validation and user messages.16_ORDERS.md- order module checklist.17_TESTING_SCREENSHOTS.md- testing and screenshot checklist.18_DELIVERABLES.md- files to submit.19_REQUIREMENTS_COVERAGE.md- requirement-to-guide coverage map.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file katicas-0.2.1.tar.gz.
File metadata
- Download URL: katicas-0.2.1.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ada589ac704192bb2ec45a666d779691ff67448548c86dbe74d68c1289208bf7
|
|
| MD5 |
7fa895232e38faa20ea1812a5b52962a
|
|
| BLAKE2b-256 |
05f1ae270e58dfecd5058fe2ecdc418440e2ee220420611137d925fcd2afccbe
|
File details
Details for the file katicas-0.2.1-py3-none-any.whl.
File metadata
- Download URL: katicas-0.2.1-py3-none-any.whl
- Upload date:
- Size: 43.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63ce2637cb17dd2021b106d1fe5ecfefd3c4b9dc10e6fe41d5dba065e1b50fb7
|
|
| MD5 |
1bfdcd789aacafb16564d8e420eed7a9
|
|
| BLAKE2b-256 |
df0368e02f65da7122f1b96b43f56ffcd06db1340462429e696cea9853dfc6f5
|