Skip to main content

Calculator

This calculator is a library than can be used for simple arithmetic operations. A calculator object should be created from the Calculator class defined inside the module. The object will have a "memory" attribute which will be operated upon and returned by the Calculator methods.

Installation

Use the package manager pip to install ausmints_calculator.

pip install ausmints_calculator

Usage

from ausmints_calculator import Calculator

calc = Calculator()

calc.memory # returns 0
calc.add(5) # returns 5
calc.squared() # returns 25
calc.reset_memory() # returns 0

For more extensive examples see the test file

Docker

A Dockerfile is added that can be used to create python 3.8 environment with the calculator module already installed

Roadmap

  • A functionality that saves and remembers the "memory" variable between sessions could be created.
  • Functionality that allows the user to save various results into a different memory variable (maybe a dict type). These values could be later accessed and set as active.

Changelog

License

MIT

Metadata

Release files for ausmints_calculator 0.2.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 ausmints_calculator 0.2.1
File Size Uploaded Provenance
ausmints_calculator-0.2.1.tar.gz 135.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ausmints_calculator 0.2.1
File Interpreter ABI Platform
ausmints_calculator-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 298.6 kB

Release files / ausmints_calculator-0.2.1.tar.gz

Download URL ausmints_calculator-0.2.1.tar.gz
Size 135.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4a4673bb47286c554f90b3719ccf573897a398dd4fd42514d5a89e35deded891
BLAKE2b-256 checksum
How to use checksums
c1036f13378b840fa78ae2664738a23aa0aa438c5140e50c06a9c330671acdca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release files / ausmints_calculator-0.2.1-py2.py3-none-any.whl

Download URL ausmints_calculator-0.2.1-py2.py3-none-any.whl
Size 163.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2abbe3e9edcfe9e93a12dbed005c59bb5c84ef51da8c3b985e1acc49f678b9b1
BLAKE2b-256 checksum
How to use checksums
21b19475e15d033e495d0d14c9529f45e640270ae2122f9eae134309f2161cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Security for ausmints_calculator 0.2.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.

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