Skip to main content

pijush-calculator

A lightweight, dependency-free Python arithmetic engine for reliable calculator operations and small reusable math utilities.

Current release

v0.1.2 — Python arithmetic engine

The package is independent of the web calculator and exposes a small function-based API designed for Python applications and scripts.

Features

  • Addition, subtraction, multiplication, and division
  • Explicit ZeroDivisionError handling
  • Python 3.9+
  • Zero runtime dependencies
  • Framework-free API

Installation

Install the published package from PyPI:

pip install pijush-calculator

Usage

from pijush_calculator import add, subtract, multiply, divide

print(add(2, 3))
print(subtract(8, 3))
print(multiply(4, 6))
print(divide(20, 5))

Division by zero raises ZeroDivisionError.

API

Function Result
add(a, b) Sum of two values
subtract(a, b) Difference between two values
multiply(a, b) Product of two values
divide(a, b) Quotient; raises on zero divisor

Development

python -m pip install -e .
python -m pytest
python -m build

Publishing

The package is published to PyPI through GitHub Actions using PyPI Trusted Publishing (OIDC) where configured. No long-lived PyPI API token is stored in the repository.

The workflow tests the package, builds source and wheel distributions, and publishes only after a successful build. PyPI releases are immutable, so future releases require a new version.

Package information

Property Value
Package pijush-calculator
Version 0.1.2
PyPI https://pypi.org/project/pijush-calculator/
Repository https://github.com/TEJAS-MK2/Calculator
Runtime dependencies None
Supported Python 3.9+
License MIT

License

MIT

Download files

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

Source Distribution

pijush_calculator-0.1.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

pijush_calculator-0.1.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pijush_calculator-0.1.3.tar.gz.

File metadata

  • Download URL: pijush_calculator-0.1.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pijush_calculator-0.1.3.tar.gz
Algorithm Hash digest
SHA256 877dfd248ead2661eb56a2f5aaae0e72cd4bda2bb0ab87f5a86d029c15b73a52
MD5 ade29e1abce08940a8d8ac47c3ab82e3
BLAKE2b-256 198b5cf039e2f8cad81fd55e656f0cad95baabbdc68c275cea4c1bfaaca3c577

See more details on using hashes here.

Provenance

The following attestation bundles were made for pijush_calculator-0.1.3.tar.gz:

Publisher: publish-python.yml on TEJAS-MK2/Calculator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pijush_calculator-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pijush_calculator-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1703255c74b21207181d643a757c2a2772a1e4ceaf879d6c81daa4a220df441
MD5 c9e55f98a1335fe0fa2a335af107f5d2
BLAKE2b-256 b1f4860dc4deb7c59e3805ded8bbdcfb1bfb0eece5c3c36ddb282ae36c5a602c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pijush_calculator-0.1.3-py3-none-any.whl:

Publisher: publish-python.yml on TEJAS-MK2/Calculator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page