Metadata-Version: 2.4
Name: logorythem
Version: 0.1.0
Summary: A Python library for OS scheduling and page replacement algorithms.
Author-email: Ammaar Bakshi <the.ammaar.ic@gmail.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# LOGORYTHEM

A simple Python library for simulating common Operating System (OS) algorithms, including CPU scheduling and page replacement.

This project is designed to be a clean, importable library for academic use, allowing you to easily run and compare different algorithms.

## Features

`logorythem` includes two main modules:

### 🧠 CPU Scheduling (`scheduling`)
Calculates metrics like waiting time, turnaround time, and completion time for a list of processes.
* **First-Come, First-Served (FCFS)**
* **Round Robin (RR)**
* **Shortest Job First (SJF) Non-Preemptive**
* **Shortest Job First (SJF) Preemptive (SRTF)**

### 💾 Page Replacement (`page_replacement`)
Calculates the total number of page faults for a given reference string.
* **First-In, First-Out (FIFO)**
* **Least Recently Used (LRU)**
* **Optimal (OPT)**

---

## Installation

This project is not on PyPI. You can install it locally from this source code.

1.  Clone or download this repository.
2.  Navigate to the root `LOGORYTHEM` directory (the one with `pyproject.toml`).
3.  Run the local install command:

```bash
# This command builds and installs the library in your Python environment
pip install .
