Skip to main content

A comprehensive math utility tool for coders.

Project description

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 diwas command 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

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

diwas-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

diwas-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file diwas-0.1.0.tar.gz.

File metadata

  • Download URL: diwas-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for diwas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 874b5dfd73a73c7f9984371477ce9252e59dd7f8475608e467b62843743c2247
MD5 beffb2053374ed3b764a2239edbf70bc
BLAKE2b-256 d1d1b1ef649ce016ac241bcb3557164b81538adefde27f591971aab950198d0e

See more details on using hashes here.

File details

Details for the file diwas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: diwas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for diwas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0427025b134301a639de8d5295e61ca3695e596d1e080a511c3a584196c0f3a3
MD5 46e219ee484c6cbf8b978da5837a193b
BLAKE2b-256 6f3890f2b8e1f2e7588a49dc3b5d386d6c6457e1ea9a407c137e6bff411d3133

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