calcutils-derfeb
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
📜 Links
- GitHub: https://github.com/Der-Feb/calcutils
- PyPI: https://pypi.org/project/calcutils-derfeb/
- License: https://opensource.org/licenses/MIT
📄 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| calcutils_derfeb-0.1.1.tar.gz | 3.4 kB | Without provenance | Details for calcutils_derfeb-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calcutils_derfeb-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for calcutils_derfeb-0.1.1-py3-none-any.whl |
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
|
Security for calcutils-derfeb 0.1.1
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.