Skip to main content

Calculations tool

Project description

๐Ÿงฎ Calctool CLI

A feature-rich command-line calculator built with Python. Navigate through tools using intuitive arrow-key menus โ€” no mouse needed.


โœจ Features

Tool Description
Basic Calculator Add, subtract, multiply, and divide two numbers
Power & Square Root Raise numbers to a power or calculate their square root
Percentage Calculator Convert a percentage to its decimal value
Fraction Calculator Divide a numerator by a denominator
Random Number Generate a random number between a min and max
Number Compare Compare two numbers to see which is larger

๐Ÿ“ฆ Installation

Make sure you have Python 3 installed, then run:

pip install calctool_cli

๐Ÿš€ Usage

After installation, launch the app from any terminal with:

calctool

You'll be greeted with the main menu:

 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘        โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘
โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•‘   โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
 โ•šโ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•   โ•šโ•โ•    โ•šโ•โ•โ•โ•โ•โ•  โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•

[?] Choose a tool: (Navigate with arrow keys, enter to submit.):
โฏ Basic Calculator (1)
  Pow and sqrt (2)
  Percentage calculator (3)
  Fraction calculator (4)
  Random numb (5)
  Number compare (6)
  Quit

Use the โ†‘ โ†“ arrow keys to navigate and Enter to select.


๐Ÿ› ๏ธ Tool Guide

1. Basic Calculator

Select an operator (+, -, *, /), then enter two numbers. The result is printed instantly.

2. Power & Square Root

Choose between:

  • Pow โ€” enter a base number and an exponent
  • Sqrt โ€” enter a number to find its square root

3. Percentage Calculator

Enter a percentage value (without the % sign) and get its decimal equivalent.
Example: 25 โ†’ 0.25

4. Fraction Calculator

Enter a numerator and a denominator to calculate the fraction's value.
Example: 3 / 4 โ†’ 0.75

5. Random Number

Enter a minimum and maximum value to generate a random integer in that range.

6. Number Compare

Enter two numbers to find out which one is greater, or if they're equal.


๐Ÿ” Navigation

After every operation you'll see three options:

  • Again โ€” repeat the current tool
  • Back โ€” return to the main menu
  • Quit โ€” exit the application

๐Ÿ“‹ Requirements

These are installed automatically when you use pip install calctool_cli.


๐Ÿ™ Credits

Role Name
Developer Becool
Helper v011dz

๐Ÿ“„ License

License โ€” Look at LICENSE.txt in the package files.

Project details


Download files

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

Source Distribution

calctool_cli-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

calctool_cli-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file calctool_cli-0.1.1.tar.gz.

File metadata

  • Download URL: calctool_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.2 Windows/11

File hashes

Hashes for calctool_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba9c8680a6d127fefa97c9284ddcf6566f336780d165c3fe7aa9a1f35d8b4fa2
MD5 90ca9423d936880826e99922db7e2513
BLAKE2b-256 e771abc3118552b1486a9221494902a709eb0df0427acaaea002cf678867d2d3

See more details on using hashes here.

File details

Details for the file calctool_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: calctool_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.2 Windows/11

File hashes

Hashes for calctool_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b302d8cff96d03b9ca6c2833c07507339a1c3f598541bd374290d96803f91d0
MD5 470bdf4e77d046c2b6174de474062337
BLAKE2b-256 42f0abed6401e7857078c3d1ddd36dc88bb962f98962409f3cbdfac302140eca

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