Skip to main content

vara_lib

A simple and lightweight Python utility library created by Vara Prasad.

vara_lib provides useful mathematical utilities with a simple and beginner-friendly API.

Installation

pip install vara-lib

Quick Start

import vara_lib

numbers = [1, 2, 3, 4, 5]

print(vara_lib.add(numbers))
print(vara_lib.product(numbers))
print(vara_lib.hcf(numbers))
print(vara_lib.lcm(numbers))

Current Features

add()

Returns the sum of all numbers in a list.

import vara_lib

result = vara_lib.add([10, 20, 30])

print(result)

Output:

60

product()

Returns the product of all numbers in a list.

import vara_lib

result = vara_lib.product([2, 3, 4])

print(result)

Output:

24

hcf()

Returns the Highest Common Factor (HCF) of all numbers in a list.

import vara_lib

result = vara_lib.hcf([12, 18, 24])

print(result)

Output:

6

lcm()

Returns the Least Common Multiple (LCM) of all numbers in a list.

import vara_lib

result = vara_lib.lcm([4, 6, 8])

print(result)

Output:

24

Example

import vara_lib

numbers = [4, 6, 8]

print("Sum:", vara_lib.add(numbers))
print("Product:", vara_lib.product(numbers))
print("HCF:", vara_lib.hcf(numbers))
print("LCM:", vara_lib.lcm(numbers))

Output:

Sum: 18
Product: 192
HCF: 2
LCM: 24

Why vara_lib?

  • Simple API
  • Beginner friendly
  • Lightweight
  • Easy to use
  • Open source
  • More utilities will be added in future versions

Requirements

Python 3.10 or newer.

Project Status

vara_lib is currently under active development.

More mathematical and utility functions will be added in future releases.

Author

Vara Prasad

License

This project is licensed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vara_lib-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

vara_lib-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vara_lib-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for vara_lib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f1118700f79c724133d4ef57998ea606d2ab4e2287dd1a4edbd11b294e8f5512
MD5 c457b07236522045c53357f7481a95d5
BLAKE2b-256 34bcb63b97271f0fed0530cdf15d56276987d532d8dd63377812a25dc6aa5a3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vara_lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for vara_lib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4221b7aedb3e7ced4fcda23f56d165e99650a0cc80a2f0d10a57c14a7f89d26d
MD5 2eec838fe5379e08cb0b277975ac6b78
BLAKE2b-256 0f901b06b88612dd6b578b43232d981c0a2ef967f49e9f3f780eda983f9804df

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page