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.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: online_store_bertollo-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4b632cf1a18ef4582bb88f33f30848025cc03886a5400c7f59664426f5e84a87
MD5 77b7d4d530773143fda5abd68957803e
BLAKE2b-256 2db056bb6041345165dd6bb55db1ea22c0b39c06df43f128a6b22038cbece808

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for online_store_bertollo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de8aca5a12ad958893d3f5b99e5ed27e453866def39472537270a1fe1b198b57
MD5 c68b1afc9426289120cf1c564e34d8a2
BLAKE2b-256 95b89c0bc09d7d5dc758f9e3f6863f4da1d8c0e4d777b1a72f44a56c027647ab

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