Powerful yet easy command line calculator.
Project description
cli-calc
Powerful yet easy command line calculator.
Features
- Fully typed with annotations and checked with mypy, PEP561 compatible
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
Credits
This project was generated with wemake-python-package
. Current template version is: d06993f12e3ffad79652a2aec86189dee92d94dd. See what is updated since then.
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(8.9 kB
view details)
Built Distribution
cli_calc-0.1.1-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file cli-calc-0.1.1.tar.gz
.
File metadata
- Download URL: cli-calc-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.5 Darwin/18.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 009171d906e2a431941f79a1220b9352070867fb1a97c67e69187381dfc3f757 |
|
MD5 | 584a88eb9345611a16264b1825231f44 |
|
BLAKE2b-256 | 4cb993aeb88f7868cbdf1a0e6650ebb583ee292098907eccace425a887aed63a |
File details
Details for the file cli_calc-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cli_calc-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | be486195d866933fbbd776ab5da42d4ac89b2d71ed9977ecc0e3464e9c60e4db |
|
MD5 | f35ae75c902302016ed6c92df1b0a0ca |
|
BLAKE2b-256 | 0819bbf7ebf5942f1058c893c71b2735e21abfa70e4b99708e61c4f820a9d68d |