Metadata-Version: 2.4
Name: smartcalc-prince-arnaud-ishimwe
Version: 0.1.0
Summary: A friendly calculator with a beautiful terminal interface
Author-email: Prince Arnaud Ishimwe <princeishimwe754@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/byishimwe/smartcalc
Keywords: calculator,math,cli,terminal
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich>=13.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# 🧮 smartcalc

A friendly calculator with a clean, colourful terminal interface.

## Install

```bash
pip install smartcalc-prince-arnaud-ishimwe
```

## Use it

```bash
smartcalc                  # interactive calculator
smartcalc --menu           # guided mode: pick an operation from a menu
smartcalc "12 * (3 + 4)"   # one-shot answer
```

Inside the interactive calculator just type:

```
calc › 12 * (3 + 4)
calc › sqrt(144) + 2^3
calc › * 2            # continues from your previous answer
calc › help
```

### What it can do

| Feature | Examples |
| --- | --- |
| Basic operations | `+  -  *  /` |
| Power, remainder, floor division | `2^10`, `17 % 5`, `17 // 5` |
| Brackets | `(2 + 3) * 4` |
| Functions | `sqrt`, `abs`, `round`, `floor`, `ceil`, `factorial`, `log`, `ln`, `sin`, `cos`, `tan`, `min`, `max`, `avg` |
| Constants | `pi`, `e`, `ans` (previous result) |

Friendly errors: dividing by zero or mistyping never crashes the program.

## Use it as a library

```python
import smartcalc

smartcalc.add(10, 25)                 # 35
smartcalc.divide(9, 3)                # 3.0
smartcalc.evaluate("2 + 3 * (4 - 1)") # 11
```

## Development

```bash
pip install -e ".[dev]"
pytest
```

## License

MIT
