Skip to main content

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 meters vs. 5 * meters)

  • Added E notation (e.g. 3.43E+2 m/s, which equals 343 m/s)

  • Added support for single underscores in numbers (e.g. 1_000 or 1_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)

Source distribution for calcon 0.3.0
File Size Uploaded
calcon-0.3.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calcon 0.3.0
File Interpreter ABI Platform
calcon-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page