Install¶
The clincalc CLI is a single self-contained binary with no runtime dependencies, network access, or configuration. A Python package is also available from PyPI. Pick whichever route suits you.
Python package¶
For CPython 3.9 or later:
Verify it with a real BMI calculation:
python -c "import clincalc; result = clincalc.calculate('bmi', {'weight_kg': 70, 'height_cm': 175}); print(result['result'])"
This prints 22.9. See Python package for discovery, input schemas, result fields, and pandas batch calculation.
Release installers¶
The docs site hosts short installer proxies that fetch cargo-dist's latest release installer:
This downloads the latest prebuilt binary for your platform and installs it to Cargo's binary directory ($CARGO_HOME/bin, or ~/.cargo/bin by default).
The short URLs proxy to cargo-dist's real installer assets on the latest GitHub Release. If you need to pin a version or audit the installer first, fetch the release asset directly from GitHub.
With Cargo¶
Install the published crate from crates.io:
This builds and installs the clincalc binary into ~/.cargo/bin. You need a Rust toolchain with edition 2024 support (rustup is the easy way). The package is named clincalc; the installed binary is also clincalc.
From a clone¶
Clone if you want the source, the example input files, or to contribute:
git clone https://github.com/pacharanero/clincalc
cd clincalc
cargo build --release # binary at ./target/release/clincalc
./target/release/clincalc list
To put it on your PATH from the clone:
A clone also gives you examples/ - ready-made JSON inputs used throughout the Walkthrough.
Verify it works¶
$ clincalc list
feverpain FeverPAIN Score
centor Centor / McIsaac Score (Strep Pharyngitis)
alvarado Alvarado Score (Appendicitis)
...
If you see the catalogue, you are ready. Head to the Walkthrough.
Requirements¶
- Python package: CPython 3.9 or later; no Rust toolchain is needed when a wheel is available for your platform.
- CLI via release installer: no runtime dependencies.
- CLI via Cargo: a Rust toolchain with edition 2024 support, installable via rustup.