Skip to main content

SQLite-backed Tkinter shoe shop demo application

Project description

sqlite-sh

sqlite-sh is a small educational Tkinter desktop application backed by SQLite. It includes a shoe shop catalog, role-based login, products, orders, database schema, and exam diagrams.

Install

pip install sqlite-sh

Run

shop

Build Windows exe

After installing the package in a Windows virtual environment:

pip install --upgrade sqlite-sh pyinstaller
pyinstaller --noconfirm --windowed --name shop --collect-all sqlite_sh --icon ".venv\Lib\site-packages\sqlite_sh\assets\Icon.ico" ".venv\Lib\site-packages\sqlite_sh\pyinstaller_entry.py"

Run the built app:

dist\shop\shop.exe

Detailed usage is also installed inside the package as sqlite_sh/USAGE.md.

On first import/run, the packaged seed database is copied to:

~/.sqlite_sh/shop.db

You can override the writable database folder:

SQLITE_SH_HOME=/path/to/folder shop

Admin credentials

Login: 94d5ous@gmail.com
Password: uzWC67

Included files

The installed package contains:

  • assets/ with icons and images;
  • data/shop.db seed SQLite database;
  • database.sql schema;
  • algorithm_flowchart_gost.pdf;
  • db_uml_diagram.pdf.

To find the installed package folder:

python -c "import sqlite_sh, pathlib; print(pathlib.Path(sqlite_sh.__file__).parent)"

Build locally

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*

Upload flow

TestPyPI first:

python -m twine upload --repository testpypi dist/*

PyPI:

python -m twine upload dist/*

Easy DB diagram

Create a browser-ready HTML/SVG database diagram without extra tools:

sqlite-sh-diagram

This writes db_diagram.html, which can be opened directly in Edge or any modern browser. Mermaid output is still available:

sqlite-sh-diagram --format mermaid -o db_diagram.mmd

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

sqlite_sh-0.1.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

sqlite_sh-0.1.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file sqlite_sh-0.1.2.tar.gz.

File metadata

  • Download URL: sqlite_sh-0.1.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sqlite_sh-0.1.2.tar.gz
Algorithm Hash digest
SHA256 55dfa7e2e445dd8106a6ed45ad7d9cc7871776698df481a541fd360dbac46da7
MD5 9d8448842fa962d3b1137e3cad43264c
BLAKE2b-256 e15bc329fddbaa6d334b6f7665c14061c7389a71a2d173250a15aa4cfd163c9a

See more details on using hashes here.

File details

Details for the file sqlite_sh-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sqlite_sh-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sqlite_sh-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e76e82da75f9b872e209dd6719c41074caff0e2114f6c4af2d33b3790314cb27
MD5 290b3f6e74798b276d582ff767bafb3e
BLAKE2b-256 093ce720163f1f4511b154d7cddfd7d8f56f153f11e33f6bfe0b0377c8a51dfe

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