Skip to main content

Исполняемый пакет для управления пользователями и заказами в онлайн-магазине

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

online_store_bertollo-0.1.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

online_store_bertollo-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: online_store_bertollo-0.1.2.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

Hashes for online_store_bertollo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ffa7bf540065b9e6dd342e9663080a4d41e168c26b9bef1992958eb243a7f1e4
MD5 0b10430ddedad4644f77639617403730
BLAKE2b-256 fdbc71c3c7656d880b6414f5441db97bd256b1a8bd6c0663fba8d65209fe5482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for online_store_bertollo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee7f3e99109fee65471d27070b2495d62ab1d36d775839e16ee3341651cb97e2
MD5 3542399bca1833c9d20d9aad18a8a336
BLAKE2b-256 33ccc862754af59bd2c44d59f2cca3bee95f46b4f02c71ba562b0970c1cbc01b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page