Skip to main content

Unit tests Pylint License: MIT

Desktop Shop

This is a mock shop application, running completely offline on a desktop. The graphical interface connects with a generated, local database of customers, products and transactions (Python / SQLite3). As the application runs completely offline, it does away with any networking or server complexity and showcases a bare implementation of an application interfacing with a production database.

Screenshot of the application GUI

Disclaimer

Any personal information shown in the gui or stored in the database is not related to any natural people. All information was generated automatically. Any names or other user data which coincide with real individuals are pure coincidence.

Getting started

Run the shop application by installing the package using pip, then calling it:

python -m pip install desktop_shop
python -m desktop_shop

Note that the first time the package is called, it automatically generates a fresh database filled with random data. This make take a few seconds.

⚠️ State of the repository ⚠️

This repository is unlikely to receive new features in the future, although maintenance and small fixes will still be done.

This means that some features that are missing now will stay missing (but feel free to submit a pull request to add them!), and non-optimal aspects of the codebase or the application are unlikely to get fixed. Some of these include:

  • No admin panel
  • A user cannot see the transactions that he has placed in the past
  • The application asking for gender is a violation of the EU GDPR, as this user data is not required with the application as is (the same potentially applies to collecting date of birth).
  • The interface to the database is not ideal, as typing is missing for the most part, it is somewhat internally inconsistent, and is using lists or tuples instead of objects.

Contributions

To contribute to this repository, please read the contribution guidelines.

Python

Written in Python 3.8.3.

License

This repository is open-source software available under the MIT License.

Contact

Please raise an issue for code changes. To reach out, please send an email to richard@baltrusch.net.

Metadata

Release files for desktop-shop 1.1.3

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

Source distribution (sdist)

Source distribution for desktop-shop 1.1.3
File Size Uploaded
desktop_shop-1.1.3.tar.gz 29.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for desktop-shop 1.1.3
File Interpreter ABI Platform
desktop_shop-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 69.1 kB

Release files / desktop_shop-1.1.3.tar.gz

Download URL desktop_shop-1.1.3.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7db2279d6020a49f94e7505ff1f1550d7da41d823ecfcbb513cc4ff700dd191d
BLAKE2b-256 checksum
How to use checksums
da31c40bfb343e5d97de682277de7b399a121155db01bb9e4cc2bf5798ce9fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / desktop_shop-1.1.3-py3-none-any.whl

Download URL desktop_shop-1.1.3-py3-none-any.whl
Size 40.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c9ba8e56d881836a9f0f7dd22959d624bcca95a9cb1e0a676944b840fe9eb4c
BLAKE2b-256 checksum
How to use checksums
f18950ffb1ccc4abd544b11dd914a3bbc01f859098e2adc7f4b2e2987b1f1333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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