Metadata-Version: 2.4
Name: sjec-labs
Version: 0.1.0
Summary: Exam-friendly Python lab programs for SJEC students
Author: SJEC Labs contributors
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: notebook
Requires-Dist: ipython>=8; extra == "notebook"
Dynamic: license-file

# sjec-labs

An expandable collection of exam-friendly Python lab programs for ML, CM and DV.

## Install

```bash
pip install sjec-labs
```

For syntax-highlighted Jupyter output:

```python
%pip install "sjec-labs[notebook]"
```

## Use in Jupyter or Python

```python
from sjec_lab import LabAssistant

lab = LabAssistant()
lab.list_subjects()
lab.list_programs("ML")
lab.get_code("ML", 1)                         # print and return simplified code
lab.show_code("ML", 1)                       # formatted display in Jupyter
lab.get_code("ML", 1, version="original")    # supplied original version
```

Available initial programs:

1. Simple Chatbot
2. Water Jug Problem using BFS
3. A* Search Algorithm
4. N-Queens using Backtracking

CM and DV folders are reserved for future releases. The package will be expanded as more verified programs are added.

## Notes

- `get_code()` returns the source as a string and prints it by default.
- Use `print_code=False` if you only want the returned string.
- The core package has no mandatory third-party dependencies.
- `show_code()` uses IPython when available.
