Shyamanth Calculator 🧮
A lightweight and beginner-friendly Python calculator library for basic arithmetic operations with built-in error handling.
🚀 Features
- ➕ Addition – Add two numbers
- ➖ Subtraction – Subtract two numbers
- ✖️ Multiplication – Multiply two numbers
- ➗ Division – Divide numbers with zero-division protection
- 🔢 Modulo – Calculate remainder safely
- 🔋 Power – Raise a number to a power
📦 Installation
Install from PyPI:
pip install shyamanth-calculator
🧑💻 Usage
from shyamanth_calculator import add, subtract, multiply, divide, mod, power
Addition
result = add(5, 3)
print(result) # Output: 8
Subtraction
result = subtract(10, 4)
print(result) # Output: 6
Multiplication
result = multiply(6, 7)
print(result) # Output: 42
Division
result = divide(20, 4)
print(result) # Output: 5.0
Division by Zero (Handled)
result = divide(10, 0)
print(result) # Output: Error: Division by zero is not allowed.
Modulo
result = mod(17, 5)
print(result) # Output: 2
Power
result = power(2, 8)
print(result) # Output: 256
Requirements
- Python >= 3.10
Author
Shyamanth Reddy
- 📧 Email: shyamanthreddy.m@gmail.com
- 🔗 GitHub: https://github.com/Shyamanth-2005
📄 License
This project is open source and free to use.
🏷️ Version
Current Version: 0.1.0
Metadata
Release files for shyamanth-calculator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shyamanth_calculator-0.1.0.tar.gz | 1.8 kB | Without provenance | Details for shyamanth_calculator-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shyamanth_calculator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for shyamanth_calculator-0.1.0-py3-none-any.whl |
Total release size: 4.4 kB
Release files / shyamanth_calculator-0.1.0.tar.gz
| Download URL | shyamanth_calculator-0.1.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2105e4ce2fca1188c4bdda056f29c69557a48d080b25b0c801f63c04277c921d
|
|
BLAKE2b-256 checksum How to use checksums |
76ec838fc2d46b69692bf5acff303347f53a05280d1ca181e14d519e1becfab4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.14
|
Release files / shyamanth_calculator-0.1.0-py3-none-any.whl
| Download URL | shyamanth_calculator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d4f43c2738b3dc7b5543d0eed62bdf5e42452609f5c8687907be60831c08497
|
|
BLAKE2b-256 checksum How to use checksums |
3b5c4a1c742936f7fc031e3f2d7cadb76912d3dd35cf9ae0b81d5f0a7f435a01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.14
|
Security for shyamanth-calculator 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.