A desktop calculator application built with Python (pywebview and sympy). The UI is rendered using HTML/CSS/JS inside a native window, while all the math logic lives on the Python side.
Fully portable: no installation required!
| Standard Mode | Advanced Mode |
|---|---|
![]() |
![]() |
| Layer | Technology |
|---|---|
| Backend | Python, pywebview, sympy |
| Frontend | HTML, CSS, JavaScript |
| Bridge | pywebview JS API (pywebview.api) |
- Standard & Advanced Math: Trigonometric functions (sin, cos, tan), logarithms, square/nth roots, and factorials etc.
- Smart Constants: Built-in support for constants like π and e.
- Unit Conversions: Easily convert length and temperature.
- Keyboard Support: Fully functional keyboard inputs (Press
Enterto calculate).
You don't need to install Python or any dependencies to use Calculus. Just download the ready-to-use file for your operating system from the Latest Release page!
-
Clone the Repo:
git clone https://github.com/safarsin/calculus.git
-
Create and activate a virtual environment:
# Windows python -m venv .venv .venv\Scripts\activate # Linux / macOS python3 -m venv .venv source .venv/bin/activate
-
Install dependencies:
pip install pywebview sympy
-
Run the app:
python main.py
calculus/
├── main.py # Python backend — calculator logic & webview window
├── index.html # Calculator UI
├── styles.css # Styling
├── normalize.css # CSS reset
└── transmitter.js # JS bridge — sends button presses to Python

