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
File details
Details for the file stock-management-0.0.1.tar.gz
.
File metadata
- Download URL: stock-management-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a0d9dc0330d1bf78abdb4f66300a83453608c22051b6b1a8cf5a06cb4a369e |
|
MD5 | c819f995d22daed6c8bde0f8ccac0323 |
|
BLAKE2b-256 | ebf1cc6ab73d18cbdefbd26bb491a558c00925d2081f695d0a9166c8b58b69ca |
File details
Details for the file stock_management-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: stock_management-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbfb4832d5ee40b3589557dbf54bea218b78229f65826f8a99793af19a6bf99 |
|
MD5 | 2dd3fd414827bf0874ce9af21520fd6b |
|
BLAKE2b-256 | 576a4e44a1d00042b40f78ad4fb7523e2888573a3f92f8c8d5c1fa98cd1701b2 |