Metadata-Version: 2.4
Name: pamdays
Version: 0.1.0
Summary: Subject-wise practical-code library for TY B.Tech AI & DS students
Author: Soham
License: MIT
Keywords: education,practical,AI,data science,KKWIEER
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Education
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: ds
Requires-Dist: numpy; extra == "ds"
Requires-Dist: pandas; extra == "ds"
Requires-Dist: matplotlib; extra == "ds"
Requires-Dist: scikit-learn; extra == "ds"
Provides-Extra: nlp
Requires-Dist: nltk; extra == "nlp"
Requires-Dist: gensim; extra == "nlp"
Provides-Extra: nn
Requires-Dist: tensorflow; extra == "nn"
Provides-Extra: spark
Requires-Dist: pyspark; extra == "spark"
Provides-Extra: all
Requires-Dist: numpy; extra == "all"
Requires-Dist: pandas; extra == "all"
Requires-Dist: matplotlib; extra == "all"
Requires-Dist: scikit-learn; extra == "all"
Requires-Dist: nltk; extra == "all"
Requires-Dist: gensim; extra == "all"
Dynamic: license-file

# PAMDays

A lightweight, exam-oriented Python practical library for **TY B.Tech Artificial Intelligence & Data Science** students (K.K. Wagh Institute of Engineering Education and Research, 2023 Pattern).

PAMDays organizes lab practicals by subject and official practical number (`p1`, `p2`, ...), exposes memorable concept aliases (`astar`, `minimax`, `knn`, ...), prints clean source code or workflow guides, displays exam metadata (aim, algorithm, sample I/O, complexity), and executes runnable Python practicals interactively in a child process.

---

## Installation

Install locally in editable mode (requires Python 3.9+):

```bash
pip install -e .
```

Core `import pamdays` has **zero required third-party dependencies**—printing code, viewing metadata, and searching work immediately in a clean Python environment.

### Optional Dependencies

Install optional packages only for the practicals that need them:

```bash
pip install -e ".[ds]"     # numpy, pandas, matplotlib, scikit-learn (aidsbd p7-p11, dstt p3)
pip install -e ".[nlp]"    # nltk, gensim (programming.nlp)
pip install -e ".[nn]"     # tensorflow (programming.nnfl p2)
pip install -e ".[spark]"  # pyspark (dstt p2)
pip install -e ".[all]"    # ds + nlp extras
```

---

## Quick Start

```python
import pamdays

# List available subjects
print(pamdays.subjects())

# Print complete source code
print(pamdays.aidsbd.p1)
print(pamdays.aidsbd.astar)

# Access code string directly
code_str = pamdays.aidsbd.p1.code

# View aim, algorithm, sample I/O, and complexity
pamdays.aidsbd.p1.info()

# View both metadata and code together
pamdays.aidsbd.p1.show()

# Run a Python practical interactively
pamdays.aidsbd.p1.run()
```

---

## Subjects

| Alias | Official Subject | Course Code | Semester | Practicals |
|---|---|---|---|---|
| `pamdays.aidsbd` | Artificial Intelligence & Data Science and Big Data Lab | `2311304` (`2301304` on p.1) | V | `p1`–`p11` |
| `pamdays.dstt` | Data Science Techniques and Tools Lab | `2311313` | VI | `p1`–`p8` |
| `pamdays.programming` | Programming Lab (6 elective tracks) | `2311316` | VI | Track-specific |
| `pamdays.mobile` | Mobile Application Development | `2311319` | VI | `p1`–`p5` |

### Programming Lab Electives

```python
pamdays.programming.uiux           # 2301314A - UI/UX Design (p1-p4)
pamdays.programming.nnfl           # 2311314B - Neural Network and Fuzzy Logic (p1-p4)
pamdays.programming.webtech        # 2311314C - Web Technology (p1-p4)
pamdays.programming.cloud          # 2301315A - Cloud Computing (p1-p4)
pamdays.programming.nlp            # 2301315B - Natural Language Processing (p1-p5)
pamdays.programming.cybersecurity  # 2311315C - Cyber Security (p1-p4)
```

---

## Concept Aliases & Alternatives

Concept aliases point to the exact practical object:

```python
pamdays.aidsbd.astar is pamdays.aidsbd.p1        # True
pamdays.aidsbd.minimax is pamdays.aidsbd.p2      # True
pamdays.programming.nlp.tokenization is pamdays.programming.nlp.p1  # True
```

Where an official practical contains multiple problems or OR-alternatives, official numbering is preserved and alternatives are exposed as child attributes:

```python
pamdays.aidsbd.p4.nqueens
pamdays.aidsbd.p4.graphcoloring
pamdays.aidsbd.p4.sudoku

pamdays.aidsbd.p9.linear
pamdays.aidsbd.p9.logistic

pamdays.aidsbd.p10.svm
pamdays.aidsbd.p10.knn

pamdays.dstt.p2.httpstatus
pamdays.dstt.p2.tophosts
pamdays.dstt.p2.endpoints
pamdays.dstt.p2.errors404
```

---

## Listing & Searching

```python
pamdays.aidsbd.list()
pamdays.aidsbd.list(detailed=True)
pamdays.aidsbd.get(1)
pamdays.aidsbd.get("astar")

pamdays.search("minimax")
pamdays.search("linear regression")
```

---

## Known Limitations (Non-Python Assignments)

Several curriculum practicals are not Python programs—for example, Hadoop study notes (`dstt.p1`), Tableau/Power BI GUI workflows (`dstt.p4`–`p8`), UI/UX Figma design (`programming.uiux`), HTML/JS/Express (`programming.webtech`), CloudSim/KVM/Apex (`programming.cloud`), security audit/ZAP labs (`programming.cybersecurity.p3`–`p4`), and Flutter/Android Studio projects (`mobile.p1`–`p5`).

For these entries:
- `print(practical)` prints clean instructions, checklists, or target-language code (Dart, HTML, JS, Java, Apex).
- `.run()` does not pretend to execute them in Python; it clearly informs the user why and displays the relevant workflow instructions.

---

## Contributing a New Practical

1. Add a module `p<N>.py` inside the target subject folder under `src/pamdays/<subject>/`.
2. Instantiate `Practical(...)` and register it with `register("<subject>", practical, aliases=[...])`.
3. Import and expose `p<N>` and its concept alias(es) in the subject's `__init__.py`.
4. Add unit tests in `tests/` and run `pytest`.
