Skip to main content

calcutils-derfeb

PyPI version License: MIT Python Version

A lightweight, well-typed Python utility library providing essential arithmetic and statistical helper functions. Built as an educational Python package.

🚀 Installation

Install the package directly from PyPI:

pip install calcutils-derfeb

TestPyPI

To install a development or sandbox version from TestPyPI:

pip install \
  --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple/ \
  calcutils-derfeb

💡 Quick Start

Import the functions directly from calcutils:

from calcutils import add, multiply, average

# Core arithmetic
print(add(10.5, 24.5))
# Output: 35.0

print(multiply(4, 5))
# Output: 20.0

# Statistical calculations
numbers = [10, 20, 30, 40, 50]

print(average(numbers))
# Output: 30.0

🛠️ API Reference

Function Signature Description
add add(a: float, b: float) -> float Returns the sum of two numbers.
multiply multiply(a: float, b: float) -> float Returns the product of two numbers.
average average(numbers: list) -> float Returns the arithmetic mean of a list of numbers. Returns 0.0 if the list is empty.

🔧 Local Development

1. Clone the repository

git clone https://github.com/Der-Feb/calcutils.git
cd calcutils

2. Create a virtual environment

python3 -m venv .venv

Activate it:

Linux/macOS:

source .venv/bin/activate

Windows:

.venv\Scripts\activate

3. Install the package in editable mode

pip install -e .

4. Build the distribution

Make sure the build package is installed:

pip install build

Then build the package:

python -m build

The generated distribution files will be placed in the dist/ directory.

🧪 Testing

If the project contains tests, run them with:

python -m pytest

You can install pytest with:

pip install pytest

📦 Package Information

  • Package name: calcutils-derfeb
  • Python: 3.8+
  • License: MIT
  • Package type: Python utility library

📄 License

This project is distributed under the MIT License.

Metadata

Release files for calcutils-derfeb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calcutils-derfeb 0.1.1
File Size Uploaded
calcutils_derfeb-0.1.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calcutils-derfeb 0.1.1
File Interpreter ABI Platform
calcutils_derfeb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / calcutils_derfeb-0.1.1.tar.gz

Download URL calcutils_derfeb-0.1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bfc265f5a9be5e98a266f4bfc41ca46da39d7cb6cd670325004759b9b42e2579
BLAKE2b-256 checksum
How to use checksums
57fa90873f035ada77d612895cba35fd66e344f25baa0e026b862d78ac50e95f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / calcutils_derfeb-0.1.1-py3-none-any.whl

Download URL calcutils_derfeb-0.1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7dc289c839098ef11dcc26b7f8fe235b9c6b549a65778bc71bca51e38c86df8
BLAKE2b-256 checksum
How to use checksums
f797a57f9e7460488072faf73dc7398af1bbd8fd9ec6054597bb12db732a8c97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release 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