Calculator with physical quantities.
Project description
Calcon - Calculator with physical quantities
This is a calculator with support for physical quantities, coded in Python.
Installation
pip install calcon
Usage
Use calcon --help to show help.
Use calcon EXPR to calculate an expression.
Example output for calcon "5 * kilogram + 5 * gram":
((5 * kilogram) + (5 * gram))
= 5.005 * kilogram
Currently, there are only a limited number of units supported, but more will be supported in the future.
Changelog
0.1.1
-
Added this changelog
-
Fixed parsing numbers with leading period (
.)
0.2.0
-
Added adjacent multiplication (e.g.
5 metersvs.5 * meters) -
Added E notation (e.g.
3.43E+2 m/s, which equals343 m/s) -
Added support for single underscores in numbers (e.g.
1_000or1_000_000) -
Added comments (Python-style) (e.g.
5 meters # this is a comment) -
Added more units
0.3.0
-
Added unit prefixes (e.g.
kilo-,centi-) -
Units can be appended with -s (e.g.
meters,liters) -
Results now display as their unit symbols
-
Bug fixes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calcon-0.3.0.tar.gz.
File metadata
- Download URL: calcon-0.3.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.8 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e08245f0a7a29ed9030f39bf70b56f5bed5cb5009969422a59a3c4a2214caa1
|
|
| MD5 |
d19d674734de9abfd73f49efe51ada7c
|
|
| BLAKE2b-256 |
99af7648fb3f269e88a104f66e01ea4911d2be984911898378de345a19d629fc
|
File details
Details for the file calcon-0.3.0-py3-none-any.whl.
File metadata
- Download URL: calcon-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.8 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17a564c66adf92511f9eabf4cfb22a1f9d8df519cd5144b2540cf5f753d7f8e3
|
|
| MD5 |
5e98a10089e9dc7c9e277a5ed99db1e4
|
|
| BLAKE2b-256 |
2828ec97f5ae70c6638741ee7fb3820fafb86bead2e8a4fd6aaec7a145fd52c3
|