Skip to main content

Calculate string infix expressions following BEDMAS.

Project description

The Might BEDMAS Calculator v2022.7.26.0

A package to calculate infix expressions following BEDMAS.


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://

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

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

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


Getting started

pip install -r requirements_dev.txt

# set up pre-commit hooks
pre-commit install


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.


pytest is used for testing.

# just the unit tests against your current python version

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

Project details

Download files

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

Source Distribution

mighty-bedmas-calculator-2022.7.26.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page