Metadata-Version: 2.4
Name: coderunnernew
Version: 0.1.4
Summary: Lightweight package to store and retrieve code answers by program number.
Project-URL: Homepage, https://github.com/shriyansnayak/codeprinter
Project-URL: Repository, https://github.com/shriyansnayak/codeprinter
Author-email: Shriyans Nayak <youremail@example.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# codeprinter

Tiny utility package for keeping your solutions in one place and importing them from anywhere.

## Setup

```bash
cd /Users/shriyansnayak/code-printer
pip install -e .
```

The editable install exposes the package globally inside the current Python environment (or virtualenv).

## Usage

```python
import codeprinter as cp

print(cp.ques(1))
```

Add new answers by editing `codeprinter/_answers.py`. Each entry maps a question number to any serialisable value (strings, dicts, callables, etc.). Example:

```python
ANSWERS = {
    1: "print('Hello world')",
    2: lambda: 42,
}
```

Callables are invoked when retrieved so you can lazily compute data.

