Metadata-Version: 2.4
Name: aai-lab-exam
Version: 0.1.0
Summary: Print AAI lab exam code (agents, BFS/DFS, A*, logic, Naive Bayes, Bayesian networks) on demand in Jupyter.
Author: Manthan Singh
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Framework :: Jupyter
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# aai-lab-exam

Prints the AAI lab exam code on demand. No dependencies, works in any Jupyter / Colab / Python.

## Install

```python
!pip install aai-lab-exam          # after you publish to PyPI (see below)
```

## Use

```python
import aai_lab_exam as aai

aai.contents()                     # list everything

aai.lab2()                         # all three lab2 scripts
aai.lab2.simple_reflex_agent()
aai.lab2.model_based_reflex_agent()
aai.lab2.vending_machine()

aai.lab3()                         # BFS / DFS
aai.lab4()                         # Greedy Best-First / A*
aai.lab6()                         # Propositional logic, model checking
aai.lab8()                         # Naive Bayes spam classifier
aai.lab9()                         # Bayesian network (pgmpy)
```

Extras:

```python
aai.lab9(4)        # print only cell 4
aai.lab9.load()    # put the whole code into the next Jupyter cell
aai.lab9.load(4)   # put only cell 4 into the next cell
aai.lab9.save()    # write lab9.py to the current folder
aai.show_all()     # print every file
```

From a terminal: `aai-lab-exam lab3`, `aai-lab-exam lab2.vending_machine`, `aai-lab-exam all`.

## Publish to PyPI

1. Create an account at https://pypi.org and make an API token (Account settings → API tokens).
2. In this folder:

```bash
pip install build twine
python -m build                    # creates dist/*.whl and dist/*.tar.gz
twine upload dist/*                # username: __token__   password: your pypi-... token
```

3. Anywhere: `pip install aai-lab-exam`.

To publish an update, bump `version` in `pyproject.toml` (and `__version__` in `src/aai_lab_exam/__init__.py`), delete `dist/`, and repeat step 2.

## Without PyPI

- **From GitHub:** push this folder to a repo, then `!pip install git+https://github.com/<you>/aai-lab-exam.git`
- **From the wheel file:** upload `aai_lab_exam-0.1.0-py3-none-any.whl` to the notebook, then `!pip install aai_lab_exam-0.1.0-py3-none-any.whl`
