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
Metadata
Release files for calcon 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| calcon-0.3.0.tar.gz | 10.2 kB | Without provenance | Details for calcon-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calcon-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for calcon-0.3.0-py3-none-any.whl |
Total release size: 22.4 kB
Release files / calcon-0.3.0.tar.gz
| Download URL | calcon-0.3.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e08245f0a7a29ed9030f39bf70b56f5bed5cb5009969422a59a3c4a2214caa1
|
|
BLAKE2b-256 checksum How to use checksums |
99af7648fb3f269e88a104f66e01ea4911d2be984911898378de345a19d629fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.8 Windows/10
|
Release files / calcon-0.3.0-py3-none-any.whl
| Download URL | calcon-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17a564c66adf92511f9eabf4cfb22a1f9d8df519cd5144b2540cf5f753d7f8e3
|
|
BLAKE2b-256 checksum How to use checksums |
2828ec97f5ae70c6638741ee7fb3820fafb86bead2e8a4fd6aaec7a145fd52c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.8 Windows/10
|
Security for calcon 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.