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.

Product photos can be stored as PNG files. If the database still contains a name like 1.jpg, the app also tries 1.png with the same base name.

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.3.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.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlite_sh-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ee1abe5c8086ce63e5362472c6c66f27658bc8c749e33221a00bf69b148df895
MD5 d83cf13c9a5d7fd7a9b91b25982b8fe7
BLAKE2b-256 0cf42a166b37f5c8a62c99dfb7a3f1032dd21e5488ef2e6eda21752cc0d4c2a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlite_sh-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa480f9a8b6db96dd929013472bd66061e507e8e36173dcac5e1642c62121afc
MD5 f7879da13a8b26ad9515c9a7aa4bd840
BLAKE2b-256 d8a2c26353b2d3f1e09a3b84e96e247052fe20603c44ae5816cc175aeb0f20cf

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