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 | |
| Helper |
๐ License
License โ Look at LICENSE.txt in the package files.
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 Distribution
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 calctool_cli-0.1.0.tar.gz.
File metadata
- Download URL: calctool_cli-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a6166342929305ba162a9ca7d447f84217c4cb070096b0f6afaa747b30289c
|
|
| MD5 |
7ec9e0b8c69d7175230188efd19dd938
|
|
| BLAKE2b-256 |
cb2327b7eb1cc00fd3ec74cf9e290044eedced67555bffbfb093a8c20f9b3965
|
File details
Details for the file calctool_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: calctool_cli-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0764d0264938f56115d6a72b78ed2f190126b0a261579f2224b8127ce1daee57
|
|
| MD5 |
f7a776fa90f5fb094f156427ffdda924
|
|
| BLAKE2b-256 |
4316c9f370f61f20ebea0523594227b934e0ba3b7a8acb7f280add3d1d3521e4
|