Skip to content

Pr1meGG/Pedestal-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python CLI Projects

This repository contains three independent Python command-line projects designed for learning file handling, API integration, and basic inventory management with OOP.


Project 1 – Command-Line Contact Book

Description:
A simple CLI-based contact book that allows adding, viewing, searching, editing, and deleting contacts. Data is stored in JSON for persistence.
Features:

  • Add, view, search, edit, delete contacts
  • Fields: Name, Phone, Email, Address
  • JSON storage
  • Bonus: Export to CSV, phone/email validation
    Files:
  • contacts.json — sample JSON data
  • contacts.csv — optional CSV export
  • main.py — program code

Project 2 – API Data Fetching & Processing

Description:
Fetches and processes public API data (REST Countries API) to display summaries and rankings.
Features:

  • Fetch data using requests
  • Display total stats and top 5 countries by population
  • Save results to CSV or JSON
  • Graceful error handling
    Files:
  • main.py — program code

Project 3 – Mini Inventory Management System

Description:
A CLI inventory manager using OOP principles, with CSV/JSON persistence and stock logs.
Features:

  • Add, view, search, update, delete products
  • Generate total value & low-stock report
  • Stock changes logged with timestamps
  • Exception handling
    Files:
  • inventory.json — initial product data
  • inventory.csv — optional CSV export
  • stock_log.csv — date-wise stock updates
  • main.py — program code

Tech Used:

  • Python 3.x
  • json, csv, argparse, requests, datetime
  • (Optional) pandas for reporting

Usage:
Run any task with:

python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages