Programming Language Final Project
Project description
Inventory Management Library
A simple Python library for managing an inventory of parts, allowing users to add, delete, change descriptions, and update prices of parts efficiently.
Features
- Add Part: Easily add new parts to the inventory with unique part numbers, descriptions, and prices.
- Delete Part: Remove existing parts from the inventory by specifying their part numbers.
- Change Description: Modify the description of a part in the inventory using its part number.
- Change Price: Update the price of a part in the inventory by specifying its part number.
Installation
You can install the library via pip:
pip install inventory-management-library
Usage
from inventory_management_library import Inventory
# Initialize an inventory
inventory = Inventory()
# Add a part
inventory.add_part("P001", "Widget A", 10.99)
# Delete a part
inventory.delete_part("P001")
# Change description
inventory.change_description("P002", "Updated Widget B")
# Change price
inventory.change_price("P002", 15.99)
# Get all parts
all_parts = inventory.get_all_parts()
for part in all_parts:
print(f"Part Number: {part.get_part_number()}, Part Description: {part.get_part_description()}, Price: {part.get_price()}")
License
This project is licensed under the MIT License - see the LICENSE file for details.
Authors
- Jomar C. Geron
- Pyarwin Jake E. Janoras
- 3CS-A
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file Programming_Language_Final_Project-0.1-py3-none-any.whl
.
File metadata
- Download URL: Programming_Language_Final_Project-0.1-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e411b261c30f96c80910b133d4d68506f6114012806932795b4301514d5f367 |
|
MD5 | 88ca87a1f5d2b1ae3ea7c2fc3195b536 |
|
BLAKE2b-256 | d758087cbf0ae060f858eb76f280814c16c00dd6cdbd381d390fba56b44c4311 |