Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stock-management-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

stock_management-0.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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