Skip to main content

A powerful arithmetic and symbolic expressions evaluator

Project description

Calco: A Powerful Expression Evaluator

BSD License Platforms Python v3.7 Build passing

PyCalco or shortly Calco is a powerful command line interface for arithmetic and algebraic or symbolic expressions evaluation. Its power relies on the math module from Python standard library and SymPy module, which is a Python library for symbolic mathematics. If you are new to SymPy or symbolic computation, start with their tutorial, it is a great place where to start from.

Why Another Python Calculator?

There are so many Python calculators or expression evaluators out there for evaluating mathematical expressions; why does PyCalco exist? Well, we acknowledge that question is legitimate, but it is easy to answer: because there is not a single command line utility for expression evaluation in Python out there which ticks the following boxes:

  • is simple, interactive and intuitive
  • supports both arithemetic and algebraic expressions evaluation
  • is highly customizable with the ability to add new scientific modules without too much struggle
  • suppports variable assignment
  • needs no python import statements to use globally available mathematical functions
  • comes with useful common helpers (getting terminal dimensions, ANSI colors, fetching direct keyboard input, screen clearing, command history, various other assignment tools, supporting bang shortcuts, etc.)

PyCalco actually implements its own shell and is designed to be fun and customizable but not overly flexible. To get an understanding of what PyCalco is all about, we strongly recommend looking at the PyCalco Tutorials.

Installation

PyCalco is available on the Python Package Index, which makes its installation quite easy. You just need python3 and its package manager pip3 on your plateform, then you are set to install PyCalco.

Run the following command from the terminal for installation:

pip install pycalco

If that didn't work, try:

python3 -m pip install pycalco

Usage

After installation to run PyCalco interactively just type, again from the terminal, the following command:

pycalco launch

And voilà, you are ready to use PyCalco. You should see the PyCalco shell waiting for you to enter your commands and evaluate expressions. Type help to get help on how to use PyCalco. You can also type directly any valid arithmetic and symbolic expression to get it evaluated.

Documentation

The project documentation is located at https://docs.trabdlkarim.com/projects/pycalco/en/latest/. Please note that the documentation is still a work in progress, so improvements to it are welcome.

Support & Contribution

PyCalco is under BSD 3-Clause Revised License, which means its license is an Open Source Initiative approved license. Being an open source software PyCalco needs your support. Feel free to contribute to this project by forking it and submitting your changes as a pull request. Feel also free to report any bug here that you may find. And we also welcome greatly new feature suggestions. So please do not hesitate to send us your feedback.


For more detailed informations about PyCalco visit the project homepage.

Made with :heart: and Python!!!

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

pycalco-0.9.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

pycalco-0.9.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pycalco-0.9.2.tar.gz.

File metadata

  • Download URL: pycalco-0.9.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pycalco-0.9.2.tar.gz
Algorithm Hash digest
SHA256 4a763c99fc01dde2e0c9ba2dc17387a3bbceeb1709ed15163bdce9c13887333c
MD5 5473e893c9bf1474011602031b123b99
BLAKE2b-256 cd6d46fecf16e595fd64a576d9bd6647f3aa1dc88355be275e780b4363b663a7

See more details on using hashes here.

File details

Details for the file pycalco-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: pycalco-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pycalco-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f5cc39f4d109a29ef66335b18b5de251dfe70faed682d5e94a90cfa2c048ae
MD5 961243a1343ed47e1ed56bfe47aa4a3f
BLAKE2b-256 759e4c1017307109f5513075a811666765fd9a8aedc225c4abf5e3c9131308ad

See more details on using hashes here.

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