A python package with multiple class and method for stock management
Project description
conversion-units
This package is build for stock managment. It provide a collection of methods and class to mimic approch the problem of stock management. For exemple dealing with different type of items and stocks.
1. Installation
Run the following code in a terminal to install the stock management package in you python environnement
$ pip install stock-management
2. Availables objects
in this package version, you have the ability to generate class of :
- Items : it can be for exemple cars, dors, apple, tomatos, bred, shoes, pen, book . . .etc
- Stocks
3. Import
Here is how you can simply create an instance of item or stock after installing the package
from stock_management.stock_item import Stock_Item
from stock_management.stock_management import Stock_Management
4. Usage
a- MANAGE ITEMS
To create an instance of item you will need to provide two values: the name and the quantity of the item. Here is an exemple of how to create an item name chocolate with 120 units of the item
from stock_management.stock_item import Stock_Item
chocolate = Stock_Item( name = "chocolate" , quantity = 120)
You can make some basic operations like adding 20 units of chocolates
chocolate.augment_quantity(quantity = 20)
b- MANAGE STOCKS
To deal will stock you first have to create an instance of a stock by like this for exemple
from stock_management.stock_management import Stock_Management
stock = Stock_Management( )
After this, you can make many operations like adding some item in you stock. Here for exemple in my stock i add 15 units of orange and 46 units of cars
stock.add_item( name = "orange", quantity = 15)
stock.add_item( name = "car" , quantity = 46)
. . .
5. Author
- Full Name : Brice KENGNI ZANGUIM
- Email : kenzabri2@yahoo.com
6. Contributors
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 Distribution
Built Distribution
Hashes for stock_management-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbfb4832d5ee40b3589557dbf54bea218b78229f65826f8a99793af19a6bf99 |
|
MD5 | 2dd3fd414827bf0874ce9af21520fd6b |
|
BLAKE2b-256 | 576a4e44a1d00042b40f78ad4fb7523e2888573a3f92f8c8d5c1fa98cd1701b2 |