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 | Provenance | Actions |
|---|---|---|---|---|
| diwas-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for diwas-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diwas-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for diwas-0.1.0-py3-none-any.whl |
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
|
Security for diwas 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.