Metadata-Version: 2.4
Name: customcalc
Version: 0.1.0
Summary: A customizable Python calculator with user-defined operators and constants.
Author-email: Adem Can <ademfcan@gmail.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.20
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"

CustomCalc
A small, customizable calculator for Python that lets you define your own operators, constants, and functions. Uses NumPy for math operations.

Install:
pip install customcalc

Example:
``` Python
from customcalc import build_basic_calc
# default operators/expressions
calc = build_basic_calc()
print(calc.calculate("1 + 2 * 3")) # 7
print(calc.calculate("cos(pi / 3)")) # 0.5
print(calc.calculate("3! + 4")) # 10

# Custom operator example:
from customcalc import CalculatorBuilder
import numpy as np

b = CalculatorBuilder()

b.addBinaryOperator("plus", 0, np.add)
b.addConstant("one", 1)
b.addConstant("two", 2)

calc = b.build()
print(calc.calculate("one plus two")) # equals three
```

License: MIT
