Comparison
cf-units vs measurement vs quantities
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Units of measure as required by the Climate and Forecast (CF) metadata conventions
Maintained. Last release 10 months ago, commits in 6 of the last 26 weeks. Weaker on release cadence.
$
pip install cf-unitsEasily use and manipulate unit-aware measurements in Python.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install measurementSupport for physical quantities with units, based on numpy
Maintained. Last release 12 days ago, commits in 5 of the last 26 weeks. Weaker on commit activity.
$
pip install quantitiesIn short
- measurement is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- quantities is the most used: 229.4K downloads a month.
- Maintenance is comparable: quantities 64, cf-units 56 on Pythie’s Index.
- Safe default for a new project: quantities.
Side by side
| Metric | cf-units | measurement | quantities |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 56 | 26 |