A CLI tool to generate Operating System algorithm templates.
Project description
goldenkpg 🌟
goldenkpg ("Golden Key Package Generator") is a fully scalable Python CLI tool that generates READY-MADE Python program templates for Operating System algorithms.
Designed for students and developers who need instant access to standard OS algorithms for CPU scheduling (Brain), Disk scheduling (Heart), and Paging (Liver).
🛠 Installation
You can install the package locally:
git clone <repository-url>
cd goldenkpg
pip install .
Or run directly if configured.
🚀 Usage
The CLI uses human-body metaphors as keywords:
- brain → CPU Scheduling Algorithms
- heart → Disk Scheduling Algorithms
- liver → Paging / Memory Management Algorithms
1️⃣ Generate a Template
Run the command with a keyword:
goldenkpg brain
What happens:
- Lists available templates (e.g., FCFS, SJF, Round Robin).
- Asks you to choose one.
- Generates a clean, runnable Python file (e.g.,
fcfs.py) in your current directory.
2️⃣ Other Commands
goldenkpg heart # For disk scheduling
goldenkpg liver # For paging algorithms
goldenkpg help # Show all available commands and descriptions
📂 Available Algorithms
🧠 Brain (CPU Scheduling)
- FCFS (First-Come, First-Served)
- SJF (Shortest Job First)
- Priority Scheduling
- Round Robin
❤️ Heart (Disk Scheduling)
- FCFS (First-Come, First-Served)
- SSTF (Shortest Seek Time First)
- SCAN (Elevator Algorithm)
- C-SCAN (Circular SCAN)
🧪 Liver (Paging Algorithms)
- FIFO (First-In, First-Out)
- LRU (Least Recently Used)
- Optimal Page Replacement
- Clock Algorithm
🏗 Contributing
Adding new templates is easy!
- Create a new folder in
goldenkpg/templates/(e.g.,lungsfor Threading). - Add your Python implementation files there.
- The CLI automatically detects the new category and files!
License: MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goldenkpg-0.1.0.tar.gz.
File metadata
- Download URL: goldenkpg-0.1.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d6c97b7e620fec9fbb24a8ec3b1f9f96249c267507d3e1bbb35dd1fb2b28859
|
|
| MD5 |
383e25de6ab7bad55ba0618f84cbbe6d
|
|
| BLAKE2b-256 |
7d4d087ac95623e17fc16df9f595126038669a217a18c6ac900e66152ead117c
|
File details
Details for the file goldenkpg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: goldenkpg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c2f14c772941013ed872b1ed9f776466b3f9dce8eec3426b0f63a8e200c4ce1
|
|
| MD5 |
38f971488515ce2a906837d803e81652
|
|
| BLAKE2b-256 |
5e42a6279de0ec0336bd96aeba3e43470cc7712b1f04e0ba80a9deb7b3a1d1d0
|