GithubHelp home page GithubHelp logo

cli_project's Introduction

Inventory Management CLI

This is an interactive Command-Line Interface (CLI) application for managing an inventory system. It allows you to perform various operations such as adding, viewing, and deleting products, categories, suppliers, and transactions in your inventory.

Table of Contents

Features

  • Interactive: All commands are interactive, making it easy to input data and manage your inventory.
  • CRUD Operations: Supports Create, Read, Update, and Delete operations for products, categories, suppliers, and transactions.
  • View Details: You can view detailed information about products and transactions.
  • List Data: Lists all products, categories, suppliers, and transactions in your inventory.
  • Data Validation: Provides data validation for numeric input (e.g., quantity, price).
  • Database: Uses a SQLite database to persist inventory data.
  • Easy Setup: Easy to set up and run, no complex configurations required.

Installation

  1. Clone the repository to your local machine:
        git clone https://github.com/Abogeerick/CLI_project
  1. Navigate to the project directory:
    cd CLI_project
  1. Activate virtual environment
    pipenv install

Usage

To run the CLI application, use the following command from the project directory:

    python3 cli.py

This will start the CLI, and you can then use the available commands to manage your inventory.

Commands

The CLI provides the following commands:

list_products: List all products in the inventory.
add_product: Add a new product to the inventory interactively.
view_product: View details of a specific product interactively.
list_categories: List all product categories.
add_category: Add a new product category interactively.
delete_category: Delete an existing category from the inventory interactively.
list_suppliers: List all suppliers.
add_supplier: Add a new supplier interactively.
delete_supplier: Delete an existing supplier from the inventory interactively.
list_transactions: List all transactions.
add_transaction: Add a new transaction interactively.
delete_transaction: Delete an existing transaction from the inventory interactively.
update_product: Update an existing product in the inventory interactively.

Database

The CLI uses an SQLite database named products.db to store inventory data. You can find the database file in the project directory. You can also modify the DATABASE_URL variable in the cli.py file to specify a different database location or use a different database management system.

Contributing

Contributions are welcome! If you have suggestions or want to report issues, please create a GitHub issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

cli_project's People

Contributors

abogeerick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.