Skip to main content

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

cli_calculator 0.0.3

How to install: You can install the calculator directly from PyPI using pip:

pip install cli_calculator

📦 Features

  • [+] Addition (+ or add)

  • [-] Subtraction (- or subtract)

  • [*] Multiplication (* or multiply)

  • [÷] Division (/ or divide) - 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

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_calculator-0.0.2.post1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file cli_calculator-0.0.2.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for cli_calculator-0.0.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 694c38f33f6f6301b04bbdc209254a2a5bc6dcf50dffea268c1d071ed860fad8
MD5 320581e06d0cfc83e6fa3549089b85dd
BLAKE2b-256 84d29b0baee5e0697cdccfb04d08b49600d0dbd51af051bc6dea922e6145edda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page