Исполняемый пакет для управления пользователями и заказами в онлайн-магазине
Project description
Online Store
The package is a simple customer management system with the ability to add, modify, delete or search for customers and orders on any of the platforms.
Features
- CLI mode
- Importing package as module
Installation
pip3 install online-store-bertollo
Usage
-
CLI mode
Just run
online_store
in your terminal. You will see a menu with options. The data will be deleted when the session ends -
As module
from online_store import UserManager, OrderManager manager = UserManager() order_manager = OrderManager() # Adding a new customer manager.add_user("user1@example.com", {"name": "John Doe", "age": 30}) # Updating customer data manager.update_user("user1@example.com", {"age": 31}) # Finding a customer print(manager.find_user("user1@example.com")) # Deleting a customer manager.remove_user("user1@example.com") # Attempting to search for a remote customer print(manager.find_user("user1@example.com")) # Creating a new order order_manager.create_order( "order1001", {"user": "Alice", "item": "Smartphone", "price": 799} ) # Updating order data order_manager.update_order("order1001", {"status": "shipped"}) # Order cancellation order_manager.cancel_order("order1001")
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
File details
Details for the file online_store_bertollo-0.1.3.tar.gz
.
File metadata
- Download URL: online_store_bertollo-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b247d11482261a7ce77249ee679ad46fd6faaa48fb56a1fd6a9696fb229b7952 |
|
MD5 | e79b411dd20c0a3e0dc66e21253ff60f |
|
BLAKE2b-256 | 9614ebd7c4bb02f98595788df93f883e79cafbcd63f2f4bc225217d946b7b948 |
File details
Details for the file online_store_bertollo-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: online_store_bertollo-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a30cb2739246f0929fce9e2e8fd0f5158994ecf8cfc15a216913be2ffcd0aaf8 |
|
MD5 | ff30c6b62f07f77523e08f42d75cb596 |
|
BLAKE2b-256 | 6e31355e2e06cc2e7e197f60d6318047cc5612d4364eebbd8c18ef45474b22f0 |