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.1.tar.gz (3.4 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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vara_lib-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 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.1.tar.gz
Algorithm Hash digest
SHA256 215ff0071c182b217da917ac550e4233e59b106d3b6fd88419dbf67f3f6442b0
MD5 7dc48047a22cabed3447ad6a6d6e1c30
BLAKE2b-256 d2e09cc9f00a297d91411588a58400b9e0e93df24979f75beec903e8a9912509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vara_lib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f55cfd33d4e480deeedceaccb4339809867409ed476f4c3ffea4c0a772a85f55
MD5 f24f807cf9d48bc216efcf0c7f4f5393
BLAKE2b-256 fc2c9dc179fc7eca3fc8b8fd7e8cad1d2f1ff96f0a670ce4f17d82c7a19cc463

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

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