Skip to main content

The Might BEDMAS Calculator v2022.7.26.0

A package to calculate infix expressions following BEDMAS.

Features

This will calculate an expression following thr BEDMAS order of operations and the following operators are supported:

  • Add +
  • Subtract -
  • Multiply *
  • Divide /
  • Power of ^
  • Brakcets ()

Usage via the command line

❯ pip install git+ssh://git@github.com/jdboisvert/mightly-bedmas-calculator

❯ mighty-bedmas-calculator calculate "2+2"
4

❯ mighty-bedmas-calculator calculate "2-3"
-1

❯ mighty-bedmas-calculator calculate "(2+3)^4"
625

Development

Getting started

pip install -r requirements_dev.txt

# set up pre-commit hooks
pre-commit install

Pre-commit

A number of pre-commit hooks are set up to ensure all commits meet basic code quality standards.

If one of the hooks changes a file, you will need to git add that file and re-run git commit before being able to continue.

Testing

pytest is used for testing.

# just the unit tests against your current python version
pytest

# just the unit tests with a matching prefix
pytest -k test_some_function

Metadata

Release files for mighty-bedmas-calculator 2022.7.26.0

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

Source distribution (sdist)

Source distribution for mighty-bedmas-calculator 2022.7.26.0
File Size Uploaded
mighty-bedmas-calculator-2022.7.26.0.tar.gz 6.8 kB Details

Release files / mighty-bedmas-calculator-2022.7.26.0.tar.gz

Download URL mighty-bedmas-calculator-2022.7.26.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
714e0cd3be26c19ceb649bc9b25d4c3bc5b5bc680f7632e0881e0b446a28dd9e
BLAKE2b-256 checksum
How to use checksums
1db9d5036e53276fab0abf62bea5ccde006858b2041a78ff75e1d3886a4c21eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.5

Release history Release notifications | RSS feed

This release

2022.7.26.0 This release

1 release file

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