diwas
A comprehensive math utility tool for coders. Solve equations, calculate interests, convert temperatures, and more with an animated terminal UI.
Features
- Math Utilities:
add,mul,divide,square_root,greatest,smallest,sum_list. - Calculators:
simple_interest,calculator(expression evaluator). - Converters:
celsius_to_fahrenheit,fahrenheit_to_celsius. - Random Tools:
random(start, end),choice(list). - Algebra Solver:
solve_linear(a, b),solve_quadratic(a, b, c). - UI & Timer:
animate_text,timer,show_banner. - CLI Support: Use
diwascommand directly from your terminal.
Installation
pip install diwas
Usage
In Python
import diwas
# Basic Math
print(diwas.add(5, 10))
print(diwas.square_root(16))
# Random
print(diwas.random(1, 5))
print(diwas.choice(["apple", "banana", "cherry"]))
# UI
diwas.show_banner()
diwas.animate_text("Hello, Diwas!")
diwas.timer(5)
From Terminal
diwas banner
diwas add 10 20
diwas sqrt 25
diwas si 1000 5 2
License
MIT
Metadata
Release files for diwas 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 | |
|---|---|---|---|
| diwas-0.1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diwas-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / diwas-0.1.0.tar.gz
| Download URL | diwas-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
874b5dfd73a73c7f9984371477ce9252e59dd7f8475608e467b62843743c2247
|
|
BLAKE2b-256 checksum How to use checksums |
d1d1b1ef649ce016ac241bcb3557164b81538adefde27f591971aab950198d0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|
Release files / diwas-0.1.0-py3-none-any.whl
| Download URL | diwas-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0427025b134301a639de8d5295e61ca3695e596d1e080a511c3a584196c0f3a3
|
|
BLAKE2b-256 checksum How to use checksums |
6f3890f2b8e1f2e7588a49dc3b5d386d6c6457e1ea9a407c137e6bff411d3133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|