Skip to main content

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:

  • 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.

Metadata

Release files for katicas 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for katicas 0.2.1
File Size Uploaded Provenance Actions
katicas-0.2.1.tar.gz 40.7 kB Without provenance Details for katicas-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for katicas 0.2.1
File Interpreter ABI Platform Actions
katicas-0.2.1-py3-none-any.whl Python 3 none any Details for katicas-0.2.1-py3-none-any.whl

Total release size: 84.3 kB

Release files / katicas-0.2.1.tar.gz

Download URL katicas-0.2.1.tar.gz
Size 40.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ada589ac704192bb2ec45a666d779691ff67448548c86dbe74d68c1289208bf7
BLAKE2b-256 checksum
How to use checksums
05f1ae270e58dfecd5058fe2ecdc418440e2ee220420611137d925fcd2afccbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / katicas-0.2.1-py3-none-any.whl

Download URL katicas-0.2.1-py3-none-any.whl
Size 43.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63ce2637cb17dd2021b106d1fe5ecfefd3c4b9dc10e6fe41d5dba065e1b50fb7
BLAKE2b-256 checksum
How to use checksums
df0368e02f65da7122f1b96b43f56ffcd06db1340462429e696cea9853dfc6f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for katicas 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page