English | Français
Formulas as data, not as code.
nomogram does not hard-code functions: it catalogs formulas, each one
- meaningful: QUDT quantity kinds and units, links to CF and Wikidata, its source, its validity domain when stated;
- checked: dimensions and units on loading, equivalences proved symbolically, values cross-checked against references;
- ready to use: compute, compose, invert, plot, and compare with its alternatives.
Built for trust, not for speed: to show that a calculation is right, and where it comes from.
Pure Python, built on SymPy, numpy and pint; it works on an offline workstation (no online engine).
Early stage project (alpha).
Installation
pip install nomogram # core
pip install "nomogram[viz]" # with plots (matplotlib)
Installation from source
git clone https://github.com/miki4iaml/nomogram.git
cd nomogram
uv sync
Python 3.12 or later. Plots need the viz extra (matplotlib):
uv sync --extra viz.
Example
Every saturation vapour pressure formulation of the catalog against the IAPWS reference, from 0 to 60 °C and within 1 %; curves stop where a formulation leaves its stated validity domain, and the figure takes the option set of nomogram's documentation (script):
import numpy as np
import nomogram as nomo
from nomogram.units import Q_
catalog = nomo.catalog.catalog()
formulations = catalog.formulations_of("SaturationVapourPressureOverWater")
reference = catalog.formulations["iapws_sr1_86"]
temperatures = Q_(np.linspace(-60, 110, 341), "degC")
table = nomo.comparison.compare(
formulations, reference, {"ThermodynamicTemperature": temperatures}
)
with nomo.display.display_options(nomo.display.DisplayOptions.DOCUMENTATION):
nomo.plot.plot_deviations(table, xlim=(0, 60), ylim=(-1.0, 1.0)) # extra viz
Usage
The table holds the values and the relative deviations, by formulation;
values outside a formulation's validity domain are NaN unless asked
otherwise (outside="ignore"). Formulations also chain, for instance
the absolute humidity from any saturation vapour pressure formulation:
ha = nomo.comparison.compose(
catalog.formulations["mass_concentration_ideal_gas"], {"e_s": reference}
)
ha.evaluate(RH=Q_(100, "percent"), T=Q_(20, "degC")).to("g/m^3") # 17.29
Formulations are found by words, wildcards and fields, whatever their notation (Finding formulations):
catalog.search(variable="rho*") # ρ in every notation
catalog.search(kind="VapourPressure", source="buck*")
Each formulation keeps its units, validity domain, temperature scale and references. The vocabulary is mapped in docs/rosetta.md; How nomogram earns trust explains what is checked and how, and Displaying formulas shows formulas in notebooks, Markdown and plots. Sea water shows the salinity scales and the vapour pressure of sea water, and what its 2 % lowering changes at the sea surface. The logo is a working nomogram.
Contributing
References to integrate, information or corrections about catalog entries, new formulas and code are all welcome: see the ways to contribute and the catalog guide.
Data sources
nomogram's units come from QUDT, and so do its quantity kinds, except those QUDT lacks, which nomogram defines as specializations of QUDT kinds. nomogram links some kinds to CF standard names, which come, with their canonical units, from the CF standard name table. The package bundles a subset of each source:
- QUDT — Quantities, Units, Dimensions and Types, by QUDT.org (https://qudt.org), release 3.5.2, licensed under CC BY 4.0;
- the CF standard name table, version 95, CC0 1.0;
- the UCUM codes of the units, as QUDT gives them: © Regenstrief Institute, Inc., UCUM License.
What nomogram selects, changes and adds is listed in NOTICE.md.
License
Code: BSD-3-Clause. Bundled data: see Data sources.
Metadata
Release files for nomogram 0.4.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 |
|---|---|---|---|---|
| nomogram-0.4.0.tar.gz | 180.9 kB | With provenance | Details for nomogram-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nomogram-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for nomogram-0.4.0-py3-none-any.whl |
Total release size: 376.0 kB
Release files / nomogram-0.4.0.tar.gz
| Download URL | nomogram-0.4.0.tar.gz |
|---|---|
| Size | 180.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
722943e78d4bb2fd3eb8d3563de97fd8b271e0cc618a2041756908c1d2445bfb
|
|
BLAKE2b-256 checksum How to use checksums |
e470440df61753ce39ff9f7f9426ebf5c2122eb742b2d7a8fe9926b5fef3d892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / nomogram-0.4.0-py3-none-any.whl
| Download URL | nomogram-0.4.0-py3-none-any.whl |
|---|---|
| Size | 195.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef63c94a10f239acf720c9e391b81eb7f7265ec9922a432f72bab9a54e76d8a6
|
|
BLAKE2b-256 checksum How to use checksums |
797b21b50d0b276f1478a72935cf27a940af5380af801e35c747d39f37b69765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for nomogram 0.4.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nomogram-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA 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.