A simple terminal calculator supporting basic arithmetic operations.
Project description
🧮 CLI Calculator
A simple terminal-based calculator that supports basic arithmetic operations: addition, subtraction, multiplication, and division.
Calculator on PyPI
How to install: You can install the calculator directly from PyPI using pip:
pip install cli_calculator
📦 Features
-
[+] Addition (
+oradd) -
[-] Subtraction (
-orsubtract) -
[*] Multiplication (
*ormultiply) -
[÷] Division (
/ordivide) - includes zero division handling -
User-friendly terminal interface with clear examples
-
Modular structure with organized codebase
🚀 Usage
Run the calculator from the terminal:
cli_calculator
You'll see the operation menu and example inputs:
======================
| + or add |
| - or subtract |
| * or multiply |
| / or divide |
======================
Examples:
1 + 1 or 1 add 1
2 - 2 or 2 subtract 2
3 * 3 or 3 multiply 3
4 / 4 or 4 divide 4
Note: Operations must have a space before and after the operator (e.g., 3 + 2, not 3+2).
📁 Project Structure
cli_calculator/
├── basic_calculator/
│ ├── __init__.py
│ ├── basic.py # Contains add & subtract functions
│ └── medium.py # Contains multiply & divide functions
├── cli_calculator
├──__init__.py
└── main.py # Entry point for the calculator
├── requirements.txt # Project dependencies (currently empty)
├── setup.py # Package configuration
├── .gitignore # Git exclusions
├── LICENSE #
└── README.md # Project documentation
📜 Requirements
-
Python 3.8+
-
No external dependencies currently
👨💻 Author
Developed with care by Robson Barbiere 🧠💻 GitHub: robson-k
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cli_calculator-0.0.2.post1-py3-none-any.whl.
File metadata
- Download URL: cli_calculator-0.0.2.post1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
694c38f33f6f6301b04bbdc209254a2a5bc6dcf50dffea268c1d071ed860fad8
|
|
| MD5 |
320581e06d0cfc83e6fa3549089b85dd
|
|
| BLAKE2b-256 |
84d29b0baee5e0697cdccfb04d08b49600d0dbd51af051bc6dea922e6145edda
|