Skip to main content

Powerful yet easy command line calculator.

Project description

cli-calc

Build Status codecov Python Version wemake-python-styleguide

Powerful yet easy command line calculator.

Features

Installation

pip install cli-calc

In order to run it from anywhere: Add a symbolic link in ~/bin

cd ~/bin
ln -s ~/path/to/your/install/cli_calc/warpper.sh calc

Then use it anywhere. :-)

calc

Help

Input:
    "q" for quit, "h" for help

    "_float_" and/or "_int_" for last value
    "pi", "tau" and "e" for pi, tau and Euler

    "+f" to add display for fraction, "-f" to suppress display for fraction
        Other letters are:
        he(x), (o)ctal, (b)inary, (i)nteger,
        (f)raction, (t)ruth, i(e)ee, ieee_bi(n), f(r)om_ieee
        "float" is always visible

    See https://docs.python.org/3/library/math.html, use without "math."
        https://www.w3schools.com/python/python_operators.asp

    Try "cos(_pi_/2)", XOR: "0xFF ^ 0b10", "2**8-1", "factorial(42)",
        "help(math)"

Example

Try:

cos(_pi_/2)
0xFF ^ 0b10
2**8-1
factorial(42)

License

MIT

Credits

This project was generated with wemake-python-package. Current template version is: d06993f12e3ffad79652a2aec86189dee92d94dd. See what is updated since then.

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

cli-calc-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

cli_calc-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file cli-calc-0.1.0.tar.gz.

File metadata

  • Download URL: cli-calc-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.5 Darwin/18.6.0

File hashes

Hashes for cli-calc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3bc027cac872d71ba1352200fd7cc8f50785ea25483ea7d7454e7cf24685c041
MD5 0d82bfbe4f98a15356e1e5e13b44819c
BLAKE2b-256 804c539f389c266a02946d975a8c72d8f11596c52e7c72065d792a363c2aa3e8

See more details on using hashes here.

File details

Details for the file cli_calc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cli_calc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.5 Darwin/18.6.0

File hashes

Hashes for cli_calc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04b3acc2efc59a7f4621fb3c193dd4c98a485cbbabb8f514bfa148cd8845f2e5
MD5 84e2ec807928dae84addab29dd272a79
BLAKE2b-256 0a9e3dbee4289df1aa14ae2c022279a8f5855e14474f3b679181ec6a67305d28

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